mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
refactor(gdshader): 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.
This commit is contained in:
parent
c5871d9d87
commit
225e074a1a
1 changed files with 2 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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue