Debian Codegraph @

runtime/queries/awk/highlights.scm

raw symbols SCIP
1 ; tree-sitter-awk v0.5.1
2
3 ; Order matters
4
5 [
6 ";"
7 ","
8 "("
9 ")"
10 "["
11 "]"
12 "{"
13 "}"
14 ] @operator
15
16 (piped_io_statement [
17 "|"
18 "|&"
19 ] @operator)
20
21 (redirected_io_statement [
22 ">"
23 ">>"
24 ] @operator)
25
26 (update_exp [
27 "++"
28 "--"
29 ] @operator)
30
31 (ternary_exp [
32 "?"
33 ":"
34 ] @operator)
35
36 (assignment_exp [
37 "="
38 "+="
39 "-="
40 "*="
41 "/="
42 "%="
43 "^="
44 ] @operator)
45
46 (unary_exp [
47 "!"
48 "+"
49 "-"
50 ] @operator)
51
52 (binary_exp [
53 "^"
54 "**"
55 "*"
56 "/"
57 "%"
58 "+"
59 "-"
60 "<"
61 ">"
62 "<="
63 ">="
64 "=="
65 "!="
66 "~"
67 "!~"
68 "in"
69 "&&"
70 "||"
71 ] @operator)
72
73 [
74 "@include"
75 "@load"
76 "@namespace"
77 (pattern)
78 ] @namespace
79
80 [
81 "function"
82 "func"
83 "print"
84 "printf"
85 "if"
86 "else"
87 "do"
88 "while"
89 "for"
90 "in"
91 "delete"
92 "return"
93 "exit"
94 "switch"
95 "case"
96 "default"
97 (break_statement)
98 (continue_statement)
99 (next_statement)
100 (nextfile_statement)
101 (getline_input)
102 (getline_file)
103 ] @keyword
104
105 (comment) @comment
106 (regex) @string.regexp
107 (number) @constant.numeric
108 (string) @string
109
110 [
111 (identifier)
112 (field_ref)
113 ] @variable
114
115 (func_call name: (identifier) @function)
116 (func_def name: (identifier) @function)
117
118 (field_ref (_) @variable)
119
120 (ns_qualified_name "::" @operator)
121 (ns_qualified_name (namespace) @namespace)