Fix `@layer` syntax highlighting (#637)

master
Brad Cornes 2022-10-20 11:44:33 +01:00 committed by GitHub
parent 802c15d5d3
commit 6c47780242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 6 deletions

View File

@ -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": {

View File

@ -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"
}
]
},

View File

@ -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": {