Debian Codegraph @

runtime/queries/ohm/highlights.scm

raw symbols SCIP
1 ; See: https://docs.helix-editor.com/master/themes.html#syntax-highlighting
2
3 ; attribute
4 ; ---------
5
6 (case_name) @attribute
7
8 ; comment.line
9 ; ------------
10
11 [
12 (singleline_comment)
13 (rule_descr)
14 ] @comment.line
15
16 ; comment.block
17 ; -------------
18
19 (multiline_comment) @comment.block
20
21 ; function.method
22 ; ---------------
23
24 (rule
25 name: (identifier) @function.method)
26
27 ; function.builtin
28 ; ----------------
29
30 ; Lexical
31 ((identifier) @function.builtin
32 (#any-of? @function.builtin
33 "any"
34 "alnum"
35 "end"
36 "digit" "hexDigit"
37 "letter"
38 "space"
39 "lower" "upper" "caseInsensitive"
40 "listOf" "nonemptyListOf" "emptyListOf"
41 "applySyntactic")
42 (#is-not? local))
43
44 ; Syntactic
45 ((identifier) @function.builtin
46 (#any-of? @function.builtin "ListOf" "NonemptyListOf" "EmptyListOf")
47 (#is-not? local))
48
49 ; function.method (continuing)
50 ; ---------------
51
52 (term
53 base: (identifier) @function.method)
54
55 ; string.special
56 ; --------------
57
58 (escape_char) @constant.character.escape
59
60 ; string
61 ; ------
62
63 [
64 (terminal_string)
65 (one_char_terminal)
66 ] @string
67
68 ; type
69 ; ----
70
71 (super_grammar
72 name: (identifier) @type)
73
74 (grammar
75 name: (identifier) @type)
76
77 ; operator
78 ; --------
79
80 [
81 ; "=" ":=" "+="
82 (define) (override) (extend)
83
84 ; "&" "~"
85 (lookahead) (negative_lookahead)
86
87 ; "#"
88 (lexification)
89
90 ; "*" "+" "?"
91 (zero_or_more) (one_or_more) (zero_or_one)
92
93 ; "..."
94 (super_splice)
95
96 "<:" ".." "|"
97 ] @operator
98
99 ; punctuation.bracket
100 ; -------------------
101
102 [
103 "<"
104 ">"
105 "{"
106 "}"
107 ] @punctuation.bracket
108
109 (alt
110 "(" @punctuation.bracket
111 ")" @punctuation.bracket)
112
113 ; punctuation.delimiter
114 ; ---------------------
115
116 "," @punctuation.delimiter
117
118 ; variable.parameter
119 ; ------------------
120
121 (formals
122 (identifier) @variable.parameter)