Add sample docs for liquid.

This commit is contained in:
Bernie Telles 2012-04-05 09:29:45 -07:00
commit 0a9ff4f55d
3 changed files with 90 additions and 10 deletions

View file

@ -142,8 +142,15 @@ var LiquidHighlightRules = function() {
regex : ".+"
} ] ,
liquid_start : [
{
liquid_start : [{
token: "variable",
regex: "}}",
next: "start"
}, {
token: "variable",
regex: "%}",
next: "start"
}, {
token : "string", // single line
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, {
@ -184,14 +191,6 @@ var LiquidHighlightRules = function() {
}, {
token : "text",
regex : "\\s+"
}, {
token: "variable",
regex: "%}",
next: "start"
}, {
token: "variable",
regex: "}}",
next: "start"
}, ]
};