Debian Codegraph @

runtime/queries/ghostty/highlights.scm

raw symbols SCIP
1 ; Comments
2 (comment) @comment
3
4 ; Keys
5 (property) @variable
6
7 ; Values
8 (boolean) @constant.builtin.boolean
9
10
11 [
12 (number)
13 (adjustment)
14 ] @constant.numeric
15
16 [
17 "+"
18 "="
19 (keybind_trigger ">")
20 (chain_operator)
21 ] @operator
22
23 (":") @punctuation.delimiter
24
25 [
26 (string)
27 (color)
28 ] @string
29
30 ; (color) are hex values
31 (color "#" @punctuation.special
32 (#eq? @punctuation.special "#"))
33
34 (path_value "?" @keyword.control.conditional
35 (#eq? @keyword.control.conditional "?"))
36
37 ; `palette`
38 (palette_index) @variable.other.member
39
40 ; `path_directive`
41 (path_directive (property) @keyword.control.import)
42 (path_directive (path_value (string) @string.special.path ))
43
44
45 (action_name) @function.builtin
46 (action_argument (string) @variable.parameter )
47
48 ; (tuple)
49 (tuple "," @punctuation.delimiter.special
50 (#eq? @punctuation.delimiter.special ","))
51
52 ; `keybind`
53 (keybind_value) @string.special
54
55 ; clear is a special keyword that clear all existing keybind up to that point
56 ((keybind_value) @keyword
57 (#eq? @keyword "clear"))
58
59 ; NOTE: The order here matters!
60 [
61 (key_qualifier)
62 (keybind_modifier)
63 (theme_variant)
64 (command_modifier)
65 ] @attribute
66
67 [
68 (modifier_key)
69 (key)
70 ] @constant.builtin
71
72 (keybind_table) @namespace