From 86741e4c2fc3d904e69abb534cea8aaed3f91312 Mon Sep 17 00:00:00 2001 From: Tayfun Bocek Date: Thu, 30 Oct 2025 00:27:56 +0300 Subject: [PATCH] replace match with lua match --- 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 c3046fc1c..988f11dba 100644 --- a/runtime/queries/gdshader/highlights.scm +++ b/runtime/queries/gdshader/highlights.scm @@ -229,7 +229,7 @@ (declaration) (function_definition) ] - (#match? @comment.documentation "/\\*\\*[\\s\\S]*?\\*/")) + (#lua-match? @comment.documentation "^/%*%*.*%*/$")) (parameter_declaration declarator: [ @@ -278,7 +278,7 @@ ; assume all uppercase variables as constants ((identifier) @constant - (#match? @constant "^[A-Z][A-Z_0-9]*$")) + (#lua-match? @constant "^[A-Z][A-Z0-9_]+$")) ((identifier) @constant.builtin (#any-of? @constant.builtin