Skip to content

Commit 53081e6

Browse files
committed
Add syntax highlighting for long form of @variant
1 parent 3019e27 commit 53081e6

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

packages/vscode-tailwindcss/syntaxes/at-rules.tmLanguage.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,44 @@
289289
}
290290
]
291291
},
292+
{
293+
"begin": "(?i)((@)variant)(?=[\\s{]|/\\*|$)",
294+
"beginCaptures": {
295+
"1": {
296+
"name": "keyword.control.at-rule.variant.tailwind"
297+
},
298+
"2": {
299+
"name": "punctuation.definition.keyword.css"
300+
}
301+
},
302+
"end": "(?<=})(?!\\G)",
303+
"patterns": [
304+
{
305+
"match": "[^\\s{,]+?",
306+
"name": "variable.parameter.variant.tailwind"
307+
},
308+
{
309+
"begin": "{",
310+
"beginCaptures": {
311+
"0": {
312+
"name": "punctuation.section.variant.begin.bracket.curly.tailwind"
313+
}
314+
},
315+
"end": "}",
316+
"endCaptures": {
317+
"0": {
318+
"name": "punctuation.section.variant.end.bracket.curly.tailwind"
319+
}
320+
},
321+
"name": "meta.at-rule.variant.body.tailwind",
322+
"patterns": [
323+
{
324+
"include": "source.css"
325+
}
326+
]
327+
}
328+
]
329+
},
292330
{
293331
"begin": "(?i)((@)responsive)(?=[\\s{]|/\\*|$)",
294332
"beginCaptures": {

0 commit comments

Comments
 (0)