mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
bash: add locals.scm for use with definition highlighting
This commit is contained in:
parent
dee2dd65ee
commit
45a1c3998d
1 changed files with 13 additions and 0 deletions
13
queries/bash/locals.scm
Normal file
13
queries/bash/locals.scm
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
; Scopes
|
||||
(function_definition) @scope
|
||||
|
||||
; Definitions
|
||||
(variable_assignment
|
||||
name: (variable_name) @definition.var)
|
||||
|
||||
(function_definition
|
||||
name: (word) @definition.function)
|
||||
|
||||
; References
|
||||
(variable_name) @reference
|
||||
(word) @reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue