mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04: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:
parent
c5871d9d87
commit
d56ed0f7f9
1 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
[
|
[
|
||||||
"global"
|
|
||||||
"instance"
|
|
||||||
"group_uniforms"
|
"group_uniforms"
|
||||||
"uniform"
|
"uniform"
|
||||||
"const"
|
"const"
|
||||||
|
|
@ -10,6 +8,8 @@
|
||||||
"shader_type"
|
"shader_type"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
(scope) @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"if"
|
"if"
|
||||||
"else"
|
"else"
|
||||||
|
|
@ -213,6 +213,9 @@
|
||||||
(call_expression
|
(call_expression
|
||||||
function: (identifier) @function.call)
|
function: (identifier) @function.call)
|
||||||
|
|
||||||
|
(method_expression
|
||||||
|
method: (_) @function.method.call)
|
||||||
|
|
||||||
(field_expression
|
(field_expression
|
||||||
field: (_) @property)
|
field: (_) @property)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue