aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/kitty/highlights.scm
blob: 93e5d31a48ea651a562116c19345f62b37a511e8 (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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
(line_continuation) @comment

(comment
  (comment_content) @spell) @comment

[
  (pixel)
  (percentage)
  (number)
] @number

[
  "steps"
  "cubic-bezier"
] @function.call

(boolean) @boolean

(color) @constant

(string) @string

[
  (ctrl)
  (alt)
  (shift)
  (function)
  (super)
  (mouse_button)
  (up)
  (left)
  (right)
  (middle)
  (down)
] @constant.builtin

[
  "+"
  ">"
  ":"
  "-"
  (separator)
  "="
  ","
  "'"
] @punctuation.delimiter

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

(special) @variable.builtin

(key) @character

(path) @string.special.path

(label) @label

(constant) @constant

(direction) @constant

(pattern) @string.regexp

(flag) @constant

((string) @constant
  (#lua-match? @constant "^-"))

(generic_action) @function.call

(action_name) @function.call

[
  "pt"
  "px"
  "%"
  "ratio"
  (signal_name)
  (clear_target)
  (ligature_target)
  (window_location)
  (stdin_source)
  (marker_type)
  (window_state)
  (logo_position)
  (mouse_selection_type)
  (window_layout)
  (os_window)
  "ignore-shell"
  (detach_into)
  "@selection"
  (kitty_shell_open_as)
  (mouse_event)
  (font_modification_type)
  (ease_step_position)
  "c"
  (filter_element_type)
  "all"
  (ligature_disabled)
  (clipboard_action)
  (shell_feature)
  (source_strategy)
  (notification_time)
  (paste_action)
  (pointer)
  (layout)
  (launch_type_value)
  (os_window_class)
  (layout_type)
  (time_suffix)
  (cursor)
  (spacing_type)
  (remote_action)
  (font_feature)
] @type

(kitten
  target: (string) @type)

[
  (color_option_name)
  "map"
  "mouse_map"
  (option_name)
] @keyword

(open_url
  value: (string) @string.special.url)

(handle_click_actions
  _ @type)

(title) @string.special

(font_change_amount
  sign: (font_change_sign) @operator)

(aliased_action
  name: (string) @function.call)

(set_colors
  "set_colors" @function.call)

(include
  environment_variable: (string) @variable.builtin)

(key_focus_on
  condition: (string) @string.special)

(mouse_mode
  [
    "grabbed"
    "ungrabbed"
  ] @variable.parameter)

(font_property
  name: (string) @variable.parameter)

(url_excluded_characters
  value: (string) @character)

(transparent_color
  "@" @punctuation.special
  (alpha) @number)

(env
  variable: (string) @variable.builtin)

(boolean_operator) @keyword.operator

(notification_action) @function.call