Add sample docs for liquid.
This commit is contained in:
parent
5e87f9b60a
commit
0a9ff4f55d
3 changed files with 90 additions and 10 deletions
|
|
@ -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"
|
||||
}, ]
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue