Debian Codegraph @

runtime/queries/gotmpl/highlights.scm

raw symbols SCIP
1 ; Identifiers
2
3 [
4 (field)
5 (field_identifier)
6 ] @variable.other.member
7
8 (variable) @variable
9
10 ; Function calls
11
12 (function_call
13 function: (identifier) @function)
14
15 (method_call
16 method: (selector_expression
17 field: (field_identifier) @function))
18
19 ; Operators
20
21 "|" @operator
22 "=" @operator
23 ":=" @operator
24
25 ; Builtin functions
26
27 ((identifier) @function.builtin
28 (#match? @function.builtin "^(and|call|html|index|slice|js|len|not|or|print|printf|println|urlquery|eq|ne|lt|ge|gt|ge)$"))
29
30 ; Delimiters
31
32 "." @punctuation.delimiter
33 "," @punctuation.delimiter
34
35 "{{" @punctuation.bracket
36 "}}" @punctuation.bracket
37 "{{-" @punctuation.bracket
38 "-}}" @punctuation.bracket
39 ")" @punctuation.bracket
40 "(" @punctuation.bracket
41
42 ; Actions
43
44 (if_action
45 [
46 "if"
47 "else"
48 "end"
49 ] @keyword.control.conditional)
50
51 (range_action
52 [
53 "range"
54 "else"
55 "end"
56 ] @keyword.control.conditional)
57
58 (template_action
59 "template" @function.builtin)
60
61 (block_action
62 [
63 "block"
64 "end"
65 ] @keyword.directive)
66
67 (define_action
68 [
69 "define"
70 "end"
71 ] @keyword.directive)
72
73 (with_action
74 [
75 "with"
76 "else"
77 "end"
78 ] @keyword.control.conditional)
79
80 ; Literals
81
82 [
83 (interpreted_string_literal)
84 (raw_string_literal)
85 (rune_literal)
86 ] @string
87
88 (escape_sequence) @string.special
89
90 [
91 (int_literal)
92 (imaginary_literal)
93 ] @constant.numeric.integer
94
95 (float_literal) @constant.numeric.float
96
97 [
98 (true)
99 (false)
100 ] @constant.builtin.boolean
101
102 (nil) @constant.builtin
103
104 (comment) @comment