feat(gdshader): update highlight queries (#8299)

* 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.

* add method expression highlight
This commit is contained in:
Tayfun Bocek 2025-11-27 12:35:21 +03:00 committed by GitHub
parent c5871d9d87
commit d56ed0f7f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,4 @@
[
"global"
"instance"
"group_uniforms"
"uniform"
"const"
@ -10,6 +8,8 @@
"shader_type"
] @keyword
(scope) @keyword
[
"if"
"else"
@ -213,6 +213,9 @@
(call_expression
function: (identifier) @function.call)
(method_expression
method: (_) @function.method.call)
(field_expression
field: (_) @property)