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