From d56ed0f7f90d6492ce422f5e0a9cb36d3169eb96 Mon Sep 17 00:00:00 2001 From: Tayfun Bocek Date: Thu, 27 Nov 2025 12:35:21 +0300 Subject: feat(gdshader): update highlight queries (#8299) * use uniform scope node instead of literal matching This avoids the need to refactor if other scope types are added. Maybe helps performance as well. * add method expression highlight --- runtime/queries/gdshader/highlights.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/runtime/queries/gdshader/highlights.scm b/runtime/queries/gdshader/highlights.scm index b4bb46ea1..0e29d53e7 100644 --- a/runtime/queries/gdshader/highlights.scm +++ b/runtime/queries/gdshader/highlights.scm @@ -1,6 +1,4 @@ [ - "global" - "instance" "group_uniforms" "uniform" "const" @@ -10,6 +8,8 @@ "shader_type" ] @keyword +(scope) @keyword + [ "if" "else" @@ -213,6 +213,9 @@ (call_expression function: (identifier) @function.call) +(method_expression + method: (_) @function.method.call) + (field_expression field: (_) @property) -- cgit v1.2.3-70-g09d2