@@ -1,7 +1,8 @@
1; Identifier naming conventions
1; Identifier naming conventions
3−((identifier) @constant
4+ (identifier) @constant
4− (#match? @constant "^[A-Z][A-Z_]*$"))
5+ (#match? @constant "^[A-Z][A-Z\\d_]+$"))
7(class_name_statement (name) @type)
8(class_name_statement (name) @type)
@@ -11,32 +12,35 @@
11; Function calls
12; Function calls
13(attribute_call (identifier) @function)
14(attribute_call (identifier) @function)
15(base_call (identifier) @function)
15(base_call (identifier) @function)
17(call (identifier) @function)
16(call (identifier) @function)
19; Function definitions
18; Function definitions
21(function_definition (name) @function)
20(function_definition (name) @function)
23(constructor_definition "_init" @function)
21(constructor_definition "_init" @function)
25;; Literals
24;; Literals
26−(integer) @constant.numeric.integer
27−(float) @constant.numeric.float
28(comment) @comment
25(comment) @comment
29(string) @string
26(string) @string
30−(escape_sequence) @constant.character.escape
27+
31−(identifier) @variable
32(type) @type
28(type) @type
29+(expression_statement (array (identifier) @type))
30+(binary_operator (identifier) @type)
34−;; Literals
32+(variable_statement (identifier) @variable)
35+(const_statement (name) @constant)
36+(integer) @constant.numeric.integer
37+(float) @constant.numeric.float
38+(escape_sequence) @constant.character.escape
38− (null)
42+] @constant.builtin.boolean
39−] @constant.builtin
43+(null) @constant.builtin
@@ -62,37 +66,67 @@
68] @operator
69] @operator
71+(annotation (identifier) @keyword.storage.modifier)
77+] @keyword.control.conditional
82+] @keyword.control.repeat
87 "continue"
88 "continue"
88− "pass"
89+] @keyword.control.return
93+] @keyword.control.function
97+] @keyword.control.import
91 "class_name"
112 "class_name"
114+] @keyword.storage.type
123+] @keyword.storage.modifier
94 "onready"
127 "onready"
96 "extends"
128 "extends"
98] @keyword
131] @keyword