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 (feature_name)
39] @property
40
41(property_name) @constant
42
43(function_name) @function
44
45(
46 [
47 (property_name)
48 (plain_value)
49 ] @variable.special
50 (#match? @variable.special "^--")
51)
52
53[
54 "@media"
55 "@import"
56 "@charset"
57 "@namespace"
58 "@supports"
59 "@keyframes"
60 (at_keyword)
61 (to)
62 (from)
63 (important)
64] @keyword
65
66(string_value) @string
67(color_value) @string.special
68
69[
70 (integer_value)
71 (float_value)
72] @number
73
74(unit) @type
75
76[
77 ","
78 ":"
79 "."
80 "::"
81 ";"
82 "#"
83] @punctuation.delimiter
84
85[
86 "{"
87 ")"
88 "("
89 "}"
90 "["
91 "]"
92] @punctuation.bracket