Skip to content

Commit a932589

Browse files
chore: Bump gdscript grammar (#1194)
* chore: Bump gdscript grammar * Remove the "tool" statement from Godot 3 * Update highlights.scm * Update highlights.scm --------- Co-authored-by: jcs090218 <8685505+jcs090218@users.noreply.github.com> Co-authored-by: Jen-Chieh Shen <jcs090218@gmail.com>
1 parent 4df2dcb commit a932589

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

queries/gdscript/highlights.scm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
(set_body "set" @keyword)
1616
(get_body "get" @keyword)
1717
(static_keyword) @type.qualifier
18-
(tool_statement) @keyword
1918
(breakpoint_statement) @debug
2019
(inferred_type) @operator
2120
[(true) (false)] @boolean
@@ -59,12 +58,12 @@
5958
; We'll use @property since that's the term Godot uses.
6059
; But, should (source (variable_statement (name))) be @property, too? Since a
6160
; script file is a class in gdscript.
62-
(class_definition
63-
(body (variable_statement (name) @property)))
61+
;(class_definition
62+
; (body (variable_statement (name) @property)))
6463

6564
; Same question but for methods?
66-
(class_definition
67-
(body (function_definition (name) @method)))
65+
;(class_definition
66+
; (body (function_definition (name) @method)))
6867

6968
(attribute_call (identifier) @method.call)
7069
(attribute (_) (identifier) @property)
@@ -188,7 +187,7 @@
188187
"export_flags_3d_physics" "export_flags_3d_render" "export_global_dir"
189188
"export_global_file" "export_group" "export_multiline" "export_node_path"
190189
"export_placeholder" "export_range" "export_subgroup" "icon" "onready"
191-
"rpc" "tool" "warning_ignore"
190+
"rpc" "warning_ignore"
192191
))
193192

194193
;; Builtin Types

0 commit comments

Comments
 (0)