From f302044742122ff4c057ea2017fa7ec03c9a00ef Mon Sep 17 00:00:00 2001 From: Tayfun Bocek Date: Thu, 30 Oct 2025 12:15:50 +0300 Subject: [PATCH] add gdshader tests --- tests/query/highlights/gdshader/test.gdshader | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/query/highlights/gdshader/test.gdshader diff --git a/tests/query/highlights/gdshader/test.gdshader b/tests/query/highlights/gdshader/test.gdshader new file mode 100644 index 000000000..db1459028 --- /dev/null +++ b/tests/query/highlights/gdshader/test.gdshader @@ -0,0 +1,26 @@ +shader_type spatial; + +render_mode unshaded, wireframe; +// <- @keyword +// ^^^^^^^^ @keyword +// ^^^^^^^^^ @keyword + +/** My Doc comment*/ +//^^^^^^^^^^^^^^^^^^ @comment.documentation +uniform float MY_VALUE: interesting_hint = 1.0; +//<- @keyword +// ^^^^^ type.builtin +// ^^^^^^^^ constant +// ^ @punctuation.delimiter +// ^^^^^^^^^^^^^^^^ @attribute +// ^ @operator +// ^^^ @number.float +// ^ punctuation.delimiter + +void vertex() { +// <- type.builtin +// ^^^^^^ @function + do {} while (123< 2231); +//^^ keyword.repeat +// ^^^^^ keyword.repeat +}