@@ -0,0 +1,93 @@
1+; Identifier naming conventions
2+
3+((identifier) @constant
4+ (#match? @constant "^[A-Z][A-Z_]*$"))
5+
6+; Function calls
7+
8+(attribute_call (identifier) @function)
9+
10+(base_call (identifier) @function)
11+
12+(call (identifier) @function)
13+
14+; Function definitions
15+
16+(function_definition (name) @function)
17+
18+(constructor_definition "_init" @function)
19+
20+;; Literals
21+(integer) @constant.numeric.integer
22+(float) @constant.numeric.float
23+(comment) @comment
24+(string) @string
25+(escape_sequence) @constant.character.escape
26+(identifier) @variable
27+(type) @type
28+
29+;; Literals
30+[
31+ (true)
32+ (false)
33+ (null)
34+] @constant.builtin
35+
36+[
37+ "+"
38+ "-"
39+ "*"
40+ "/"
41+ "%"
42+ "=="
43+ "!="
44+ ">"
45+ "<"
46+ ">="
47+ "<="
48+ "="
49+ "+="
50+ "-="
51+ "*="
52+ "/="
53+ "%="
54+ "&"
55+ "|"
56+ "^"
57+ "~"
58+ "<<"
59+ ">>"
60+ "and"
61+ "or"
62+ "not"
63+] @operator
64+
65+[
66+ (static_keyword)
67+ (remote_keyword)
68+ (tool_statement)
69+ "var"
70+ "func"
71+ "setget"
72+ "in"
73+ "is"
74+ "as"
75+ "if"
76+ "else"
77+ "elif"
78+ "while"
79+ "for"
80+ "return"
81+ "break"
82+ "continue"
83+ "pass"
84+ "match"
85+ "class"
86+ "class_name"
87+ "enum"
88+ "signal"
89+ "onready"
90+ "export"
91+ "extends"
92+ "const"
93+] @keyword