feat!(gdshader): replace gdshader parser and queries (#8244)

Switch parser to https://github.com/airblast-dev/tree-sitter-gdshader
This commit is contained in:
Tayfun Bocek 2025-10-30 16:59:19 +03:00 committed by GitHub
parent fd2880e8bc
commit 64f4755b9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 250 additions and 102 deletions

View file

@ -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
}