mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat(locals)!: switch to upstream captures
This commit is contained in:
parent
306367a7f4
commit
8fb218dbfd
95 changed files with 1154 additions and 1154 deletions
|
|
@ -4,24 +4,24 @@
|
|||
(code_block)
|
||||
(function_block)
|
||||
(control_structure)
|
||||
] @scope
|
||||
] @local.scope
|
||||
|
||||
; Definitions
|
||||
(argument
|
||||
name: (identifier) @definition.parameter
|
||||
name: (identifier) @local.definition.parameter
|
||||
(#set! "definition.var.scope" "local")
|
||||
)
|
||||
|
||||
(variable_definition
|
||||
name: (variable (local_var (identifier) @definition.var
|
||||
name: (variable (local_var (identifier) @local.definition.var
|
||||
)))
|
||||
|
||||
(variable_definition
|
||||
name: (variable (environment_var (identifier) @definition.var))
|
||||
name: (variable (environment_var (identifier) @local.definition.var))
|
||||
(#set! "definition.var.scope" "global"))
|
||||
|
||||
(function_definition name: (variable) @definition.var
|
||||
(function_definition name: (variable) @local.definition.var
|
||||
(#set! "definition.var.scope" "parent")
|
||||
)
|
||||
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue