From 225e074a1ac335374a0ca9643a121b19aa6effa6 Mon Sep 17 00:00:00 2001 From: Tayfun Bocek Date: Mon, 24 Nov 2025 00:20:01 +0300 Subject: [PATCH] refactor(gdshader): 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. --- runtime/queries/gdshader/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/queries/gdshader/highlights.scm b/runtime/queries/gdshader/highlights.scm index b4bb46ea1..bd0bd01e0 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"