Skip to content

Commit 62eabe6

Browse files
committed
Add highlighting for --spacing and --alpha
1 parent f88baaf commit 62eabe6

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

packages/vscode-tailwindcss/syntaxes/screen-fn.tmLanguage.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,64 @@
3232
"name": "variable.parameter.screen.tailwind"
3333
}
3434
]
35+
},
36+
{
37+
"begin": "(?i)(?<![\\w-])(--spacing)(\\()",
38+
"beginCaptures": {
39+
"1": {
40+
"name": "support.function.spacing.tailwind"
41+
},
42+
"2": {
43+
"name": "punctuation.section.function.begin.bracket.round.css"
44+
}
45+
},
46+
"end": "\\)",
47+
"endCaptures": {
48+
"0": {
49+
"name": "punctuation.section.function.end.bracket.round.css"
50+
}
51+
},
52+
"patterns": [
53+
{
54+
"include": "source.css#comment-block"
55+
},
56+
{
57+
"include": "source.css#string"
58+
},
59+
{
60+
"match": "[^\\s\\)]+?",
61+
"name": "variable.parameter.spacing.tailwind"
62+
}
63+
]
64+
},
65+
{
66+
"begin": "(?i)(?<![\\w-])(--alpha)(\\()",
67+
"beginCaptures": {
68+
"1": {
69+
"name": "support.function.alpha.tailwind"
70+
},
71+
"2": {
72+
"name": "punctuation.section.function.begin.bracket.round.css"
73+
}
74+
},
75+
"end": "\\)",
76+
"endCaptures": {
77+
"0": {
78+
"name": "punctuation.section.function.end.bracket.round.css"
79+
}
80+
},
81+
"patterns": [
82+
{
83+
"include": "source.css#comment-block"
84+
},
85+
{
86+
"include": "source.css#string"
87+
},
88+
{
89+
"match": "[^\\s\\)]+?",
90+
"name": "variable.parameter.alpha.tailwind"
91+
}
92+
]
3593
}
3694
]
3795
}

0 commit comments

Comments
 (0)