Skip to content

Commit 601eb80

Browse files
committed
Add syntax highlighting for @plugin options
1 parent 0e8578d commit 601eb80

File tree

1 file changed

+64
-1
lines changed

1 file changed

+64
-1
lines changed

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

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,26 @@
160160
"patterns": [
161161
{
162162
"include": "source.css#string"
163+
},
164+
{
165+
"begin": "{",
166+
"beginCaptures": {
167+
"0": {
168+
"name": "punctuation.section.plugin.begin.bracket.curly.tailwind"
169+
}
170+
},
171+
"end": "}",
172+
"endCaptures": {
173+
"0": {
174+
"name": "punctuation.section.plugin.end.bracket.curly.tailwind"
175+
}
176+
},
177+
"name": "meta.at-rule.plugin.body.tailwind",
178+
"patterns": [
179+
{
180+
"include": "#property-list"
181+
}
182+
]
163183
}
164184
]
165185
},
@@ -384,5 +404,48 @@
384404
}
385405
]
386406
}
387-
]
407+
],
408+
"repository": {
409+
"property-list": {
410+
"patterns": [
411+
{
412+
"begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])",
413+
"end": "$|(?![-a-zA-Z])",
414+
"name": "meta.property-name.css",
415+
"patterns": [
416+
{
417+
"include": "source.css#property-names"
418+
}
419+
]
420+
},
421+
{
422+
"begin": "(:)\\s*",
423+
"beginCaptures": {
424+
"1": {
425+
"name": "punctuation.separator.key-value.css"
426+
}
427+
},
428+
"end": "\\s*(;)|\\s*(?=}|\\))",
429+
"endCaptures": {
430+
"1": {
431+
"name": "punctuation.terminator.rule.css"
432+
}
433+
},
434+
"contentName": "meta.property-value.css",
435+
"patterns": [
436+
{
437+
"include": "source.css#comment-block"
438+
},
439+
{
440+
"include": "source.css#property-values"
441+
}
442+
]
443+
},
444+
{
445+
"match": ";",
446+
"name": "punctuation.terminator.rule.css"
447+
}
448+
]
449+
}
450+
}
388451
}

0 commit comments

Comments
 (0)