mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(gotmpl,helm): add locals (wip)
This commit is contained in:
parent
dfd047d15f
commit
4075376a25
2 changed files with 13 additions and 0 deletions
12
queries/gotmpl/locals.scm
Normal file
12
queries/gotmpl/locals.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[
|
||||||
|
(if_action)
|
||||||
|
(range_action)
|
||||||
|
(block_action)
|
||||||
|
(with_action)
|
||||||
|
(define_action)
|
||||||
|
] @local.scope
|
||||||
|
|
||||||
|
(variable_definition
|
||||||
|
variable: (variable) @local.definition.var)
|
||||||
|
|
||||||
|
(variable) @local.reference
|
||||||
1
queries/helm/locals.scm
Normal file
1
queries/helm/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: gotmpl
|
||||||
Loading…
Add table
Add a link
Reference in a new issue