aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/rasi/highlights.scm
blob: d095cef633e48b0acd9073746e1a1ed6c03720a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
(comment) @comment @spell

"@media" @keyword

"@import" @keyword.import

"@theme" @keyword.import

(string_value) @string

[
  (integer_value)
  (float_value)
  "0"
] @number

(boolean_value) @boolean

[
  (feature_name)
  (url_image_scale)
  (direction)
  (text_style_value)
  (line_style_value)
  (position_value)
  (orientation_value)
  (cursor_value)
  "inherit"
] @keyword

(url_image
  "url" @function.builtin)

(gradient_image
  "linear-gradient" @function.builtin)

(distance_calc
  "calc" @function.builtin)

(rgb_color
  [
    "rgb"
    "rgba"
  ] @function.builtin)

(hsl_color
  [
    "hsl"
    "hsla"
  ] @function.builtin)

(hwb_color
  [
    "hwb"
    "hwba"
  ] @function.builtin)

(cmyk_color
  "cmyk" @function.builtin)

[
  "("
  ")"
  "{"
  "}"
  "["
  "]"
] @punctuation.bracket

(distance_op) @operator

[
  ";"
  ","
  ":"
  "."
] @punctuation.delimiter

[
  (angle_unit)
  (integer_distance_unit)
  (float_distance_unit)
] @string

(percentage) @number

(percentage
  "%" @string)

(global_selector) @character.special

(id_selector) @constant

(id_selector_view
  [
    "normal"
    "selected"
    "alternate"
  ] @attribute)

(id_selector_state
  [
    "normal"
    "urgent"
    "active"
  ] @keyword.modifier)

(hex_color) @number

(hex_color
  "#" @punctuation.special)

(named_color
  (identifier) @string.special)

(named_color
  "/" @operator)

(reference_value
  "@" @punctuation.special
  (identifier) @variable)

(reference_value
  "var" @function.builtin
  (identifier) @variable)

(list_value
  (identifier) @variable)

(environ_value
  "$" @punctuation.special
  (identifier) @variable)

(environ_value
  "env" @function.builtin
  (identifier) @variable)

(property_name) @property