From 3754ee533e23d1450135d5743d5fa6d20f86aaaa Mon Sep 17 00:00:00 2001 From: jcs090218 <8685505+jcs090218@users.noreply.github.com> Date: Sun, 28 Sep 2025 02:04:12 +0000 Subject: [PATCH 1/4] chore: Bump gdscript grammar --- repos/gdscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/gdscript b/repos/gdscript index 9686853b6..55d1b51f9 160000 --- a/repos/gdscript +++ b/repos/gdscript @@ -1 +1 @@ -Subproject commit 9686853b696db07118ad110e440d6de0ca6498b4 +Subproject commit 55d1b51f9ab6c60c21098935014b5431f0ec7ef0 From d8ad19e72b3fee29dea1107bf7c69809b50f04fe Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sun, 28 Sep 2025 00:44:15 -0700 Subject: [PATCH 2/4] Remove the "tool" statement from Godot 3 --- queries/gdscript/highlights.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm index fc37eac46..2c9dbb180 100644 --- a/queries/gdscript/highlights.scm +++ b/queries/gdscript/highlights.scm @@ -15,7 +15,6 @@ (set_body "set" @keyword) (get_body "get" @keyword) (static_keyword) @type.qualifier -(tool_statement) @keyword (breakpoint_statement) @debug (inferred_type) @operator [(true) (false)] @boolean @@ -188,7 +187,7 @@ "export_flags_3d_physics" "export_flags_3d_render" "export_global_dir" "export_global_file" "export_group" "export_multiline" "export_node_path" "export_placeholder" "export_range" "export_subgroup" "icon" "onready" - "rpc" "tool" "warning_ignore" + "rpc" "warning_ignore" )) ;; Builtin Types From a7f2f919f4d64f8ea685b7fb8205652094b18cf5 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sun, 28 Sep 2025 01:48:24 -0700 Subject: [PATCH 3/4] Update highlights.scm --- queries/gdscript/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm index 2c9dbb180..77ab0a18c 100644 --- a/queries/gdscript/highlights.scm +++ b/queries/gdscript/highlights.scm @@ -58,8 +58,8 @@ ; We'll use @property since that's the term Godot uses. ; But, should (source (variable_statement (name))) be @property, too? Since a ; script file is a class in gdscript. -(class_definition - (body (variable_statement (name) @property))) +;(class_definition +; (body (variable_statement (name) @property))) ; Same question but for methods? (class_definition From a52fab3dfa88f7afd59f31e75373f9af45c27865 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sun, 28 Sep 2025 15:46:17 -0700 Subject: [PATCH 4/4] Update highlights.scm --- queries/gdscript/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm index 77ab0a18c..31686c8ab 100644 --- a/queries/gdscript/highlights.scm +++ b/queries/gdscript/highlights.scm @@ -62,8 +62,8 @@ ; (body (variable_statement (name) @property))) ; Same question but for methods? -(class_definition - (body (function_definition (name) @method))) +;(class_definition +; (body (function_definition (name) @method))) (attribute_call (identifier) @method.call) (attribute (_) (identifier) @property)