Skip to content

Commit dba6024

Browse files
committed
Highlight @import “…” source(…)
1 parent c81abf5 commit dba6024

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

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

+41
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,47 @@
44
"injectionSelector": "L:source.css -comment -source.css.scss",
55
"name": "TailwindCSS",
66
"patterns": [
7+
{
8+
"begin": "(?i)((@)import)(?:\\s+|$|(?=['\"]|/\\*))",
9+
"beginCaptures": {
10+
"1": {
11+
"name": "keyword.control.at-rule.import.css"
12+
},
13+
"2": {
14+
"name": "punctuation.definition.keyword.css"
15+
}
16+
},
17+
"end": ";",
18+
"endCaptures": {
19+
"0": {
20+
"name": "punctuation.terminator.rule.css"
21+
}
22+
},
23+
"name": "meta.at-rule.import.css",
24+
"patterns": [
25+
{
26+
"begin": "\\G\\s*(?=/\\*)",
27+
"end": "(?<=\\*/)\\s*",
28+
"patterns": [
29+
{
30+
"include": "source.css#comment-block"
31+
}
32+
]
33+
},
34+
{
35+
"include": "source.css#string"
36+
},
37+
{
38+
"include": "source.css#url"
39+
},
40+
{
41+
"include": "#source-fn"
42+
},
43+
{
44+
"include": "source.css#media-query-list"
45+
}
46+
]
47+
},
748
{
849
"begin": "(?i)((@)tailwind)(?=\\s|/\\*|$)",
950
"beginCaptures": {

0 commit comments

Comments
 (0)