Fix `@layer` syntax highlighting (#637)
parent
802c15d5d3
commit
6c47780242
|
@ -91,7 +91,7 @@
|
||||||
"name": "punctuation.definition.keyword.css"
|
"name": "punctuation.definition.keyword.css"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"end": "(?<=})(?!\\G)",
|
"end": "(?<=}|;)(?!\\G)",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"include": "source.css#comment-block"
|
"include": "source.css#comment-block"
|
||||||
|
@ -100,9 +100,17 @@
|
||||||
"include": "source.css.postcss#double-slash"
|
"include": "source.css.postcss#double-slash"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "[^\\s{]+?",
|
"match": "[^\\s{;,]+?",
|
||||||
"name": "variable.parameter.layer.tailwind"
|
"name": "variable.parameter.layer.tailwind"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"match": ",",
|
||||||
|
"name": "punctuation.separator.list.comma.css"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"match": ";",
|
||||||
|
"name": "punctuation.terminator.rule.css"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"begin": "{",
|
"begin": "{",
|
||||||
"beginCaptures": {
|
"beginCaptures": {
|
||||||
|
|
|
@ -65,14 +65,22 @@
|
||||||
"name": "punctuation.definition.keyword.css"
|
"name": "punctuation.definition.keyword.css"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"end": "\\s*(?={)",
|
"end": "\\s*(?={|;)",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"include": "source.css#comment-block"
|
"include": "source.css#comment-block"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "[^\\s{]+?",
|
"match": "[^\\s{;,]+?",
|
||||||
"name": "entity.name.function.scss"
|
"name": "entity.name.function.scss"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"match": ",",
|
||||||
|
"name": "punctuation.separator.delimiter.scss"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"match": ";",
|
||||||
|
"name": "punctuation.terminator.rule.scss"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -85,15 +85,23 @@
|
||||||
"name": "punctuation.definition.keyword.css"
|
"name": "punctuation.definition.keyword.css"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"end": "(?<=})(?!\\G)",
|
"end": "(?<=}|;)(?!\\G)",
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"include": "source.css#comment-block"
|
"include": "source.css#comment-block"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"match": "[^\\s{]+?",
|
"match": "[^\\s{;,]+?",
|
||||||
"name": "variable.parameter.layer.tailwind"
|
"name": "variable.parameter.layer.tailwind"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"match": ",",
|
||||||
|
"name": "punctuation.separator.list.comma.css"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"match": ";",
|
||||||
|
"name": "punctuation.terminator.rule.css"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"begin": "{",
|
"begin": "{",
|
||||||
"beginCaptures": {
|
"beginCaptures": {
|
||||||
|
|
Loading…
Reference in New Issue