Skip to content

Commit 3019e27

Browse files
committed
Add syntax highlighting for @utility
1 parent 7e6a7f7 commit 3019e27

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
@@ -251,6 +251,44 @@
251251
}
252252
]
253253
},
254+
{
255+
"begin": "(?i)((@)utility)(?=[\\s{]|/\\*|$)",
256+
"beginCaptures": {
257+
"1": {
258+
"name": "keyword.control.at-rule.utility.tailwind"
259+
},
260+
"2": {
261+
"name": "punctuation.definition.keyword.css"
262+
}
263+
},
264+
"end": "(?<=})(?!\\G)",
265+
"patterns": [
266+
{
267+
"match": "[^\\s{,]+?",
268+
"name": "variable.parameter.utility.tailwind"
269+
},
270+
{
271+
"begin": "{",
272+
"beginCaptures": {
273+
"0": {
274+
"name": "punctuation.section.utility.begin.bracket.curly.tailwind"
275+
}
276+
},
277+
"end": "}",
278+
"endCaptures": {
279+
"0": {
280+
"name": "punctuation.section.utility.end.bracket.curly.tailwind"
281+
}
282+
},
283+
"name": "meta.at-rule.utility.body.tailwind",
284+
"patterns": [
285+
{
286+
"include": "source.css#rule-list"
287+
}
288+
]
289+
}
290+
]
291+
},
254292
{
255293
"begin": "(?i)((@)responsive)(?=[\\s{]|/\\*|$)",
256294
"beginCaptures": {

0 commit comments

Comments
 (0)