Skip to content

Commit

Permalink
fixes #140 import liquid output token + Liquid tag comment
Browse files Browse the repository at this point in the history
  • Loading branch information
panoply committed Dec 23, 2022
1 parent 3f26073 commit 65cbb28
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions syntax/liquid.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@
{ "include": "source.liquid#output" }
]
},
"L:entity.other.attribute-name.class.html": {
"L:string - (string.quoted.*.html)": {
"patterns": [
{ "include": "source.liquid#tags" },
{ "include": "source.liquid#output" }
]
},
"L:string - (string.quoted.*.html)": {
"L:source.js": {
"patterns": [
{ "include": "source.liquid#tags" },
{ "include": "source.liquid#output" }
{
"match": "(?<=import)\\s+(?={[{%]-?)",
"name": "punctuation.output.liquid"
}
]
}
},
Expand Down Expand Up @@ -69,7 +71,7 @@
},
"liquid-tag": {
"name": "punctuation.output.liquid",
"begin": "({%)(-)\\s*\\b(liquid)\\s+",
"begin": "({%)(-)?\\s*\\b(liquid)\\s+",
"beginCaptures": {
"1": {
"name": "punctuation.definition.tag.begin.liquid"
Expand Down Expand Up @@ -416,7 +418,7 @@
},
{
"name": "comment.line.liquid",
"begin": "\\#\\s+",
"begin": "^\\s*\\#\\s+",
"end": "\\Z"
}
]
Expand Down

0 comments on commit 65cbb28

Please sign in to comment.