1(comment) @comment
2
3[
4 (tag_name)
5 (nesting_selector)
6 (universal_selector)
7] @tag
8
9[
10 "~"
11 ">"
12 "+"
13 "-"
14 "*"
15 "/"
16 "="
17 "^="
18 "|="
19 "~="
20 "$="
21 "*="
22 "and"
23 "or"
24 "not"
25 "only"
26] @operator
27
28(attribute_selector (plain_value) @string)
29
30(attribute_name) @attribute
31(pseudo_element_selector (tag_name) @attribute)
32(pseudo_class_selector (class_name) @attribute)
33
34[
35 (class_name)
36 (id_name)
37 (namespace_name)
38 (property_name)
39 (feature_name)
40] @property
41
42(function_name) @function
43
44(
45 [
46 (property_name)
47 (plain_value)
48 ] @variable.special
49 (#match? @variable.special "^--")
50)
51
52[
53 "@media"
54 "@import"
55 "@charset"
56 "@namespace"
57 "@supports"
58 "@keyframes"
59 (at_keyword)
60 (to)
61 (from)
62 (important)
63] @keyword
64
65(string_value) @string
66(color_value) @string.special
67
68[
69 (integer_value)
70 (float_value)
71] @number
72
73(unit) @type
74
75[
76 ","
77 ":"
78] @punctuation.delimiter