mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
add gdshader tests
This commit is contained in:
parent
dc22c518d8
commit
f302044742
1 changed files with 26 additions and 0 deletions
26
tests/query/highlights/gdshader/test.gdshader
Normal file
26
tests/query/highlights/gdshader/test.gdshader
Normal 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
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue