mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user