Debian Codegraph @

runtime/queries/tolk/highlights.scm

raw symbols SCIP
1
2 (type_identifier) @type
3 ((type_identifier) @type.builtin (#any-of? @type.builtin "int" "bool" "cell" "slice" "builder" "continuation" "tuple" "coins" "address" "void" "self"))
4
5 (identifier) @variable
6 ((identifier) @constant
7 (#match? @constant "^[A-Z][A-Z\\d_]*$"))
8 ((identifier) @variable.builtin
9 (#eq? @variable.builtin "self"))
10
11 (comment) @comment
12
13 [
14 "(" ")"
15 "{" "}"
16 ] @punctuation.bracket
17
18 [
19 ; "::"
20 "."
21 ";"
22 ","
23 ":"
24 ] @punctuation.delimiter
25
26 [
27 "do"
28 "if"
29 "as"
30 "fun"
31 "asm"
32 "get"
33 "try"
34 "var"
35 "val"
36 "else"
37 "true"
38 "tolk"
39 "const"
40 "false"
41 "throw"
42 "redef"
43 "while"
44 "catch"
45 "return"
46 "assert"
47 "import"
48 "global"
49 "repeat"
50 "mutate"
51 "struct"
52 "type"
53 "match"
54 "lazy"
55 (null_literal)
56 (builtin_specifier)
57 ] @keyword
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 ] @operator
102
103 (string_literal) @string
104 (number_literal) @constant.numeric
105 (boolean_literal) @constant.builtin.boolean
106
107 (annotation) @attribute
108
109 (function_declaration
110 name: (identifier) @function)
111 (method_declaration
112 name: (identifier) @function)
113 (get_method_declaration
114 name: (identifier) @function)
115 (function_call
116 callee: (identifier) @function)
117 (function_call
118 callee: (dot_access (identifier) @type "." (identifier) @function))
119 (dot_access
120 field: (identifier) @variable)
121
122
123 (struct_declaration
124 "struct"
125 name: (identifier) @type)
126 (struct_field_declaration
127 name: (identifier) @variable.other.member)
128 (instance_argument
129 name: (identifier) @variable.other.member)