on aef00a3 help sign in
helix/runtime/queries/gdscript/highlights.scm
93 lines 1.1 kB history raw
1; Identifier naming conventions
3((identifier) @constant
4 (#match? @constant "^[A-Z][A-Z_]*$"))
6; Function calls
8(attribute_call (identifier) @function)
10(base_call (identifier) @function)
12(call (identifier) @function)
14; Function definitions
16(function_definition (name) @function)
18(constructor_definition "_init" @function)
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
29;; Literals
31 (true)
32 (false)
33 (null)
34] @constant.builtin
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
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