mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
feat(parsers): add zsh support (#8240)
Co-authored-by: Christian Clason <c.clason@uni-graz.at> Co-authored-by: Riley Bruins <ribru17@hotmail.com> Co-authored-by: Tayfun Bocek <tayfunbocek@live.ca>
This commit is contained in:
parent
896e92a7f6
commit
1ddb266477
7 changed files with 762 additions and 0 deletions
14
runtime/queries/zsh/locals.scm
Normal file
14
runtime/queries/zsh/locals.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
; Scopes
|
||||
(function_definition) @local.scope
|
||||
|
||||
; Definitions
|
||||
(variable_assignment
|
||||
name: (variable_name) @local.definition.var)
|
||||
|
||||
(function_definition
|
||||
name: (word) @local.definition.function)
|
||||
|
||||
; References
|
||||
(variable_name) @local.reference
|
||||
|
||||
(word) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue