mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12: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
|
|
@ -13,7 +13,7 @@
|
|||
(case_statement)
|
||||
(hash)
|
||||
(array)
|
||||
] @scope
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
|
|
@ -21,26 +21,26 @@
|
|||
(identifier)
|
||||
(class_identifier)
|
||||
(variable)
|
||||
] @reference
|
||||
] @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(attribute [(identifier) (variable)] @definition.field)
|
||||
(attribute [(identifier) (variable)] @local.definition.field)
|
||||
|
||||
(function_declaration
|
||||
[(identifier) (class_identifier)] @definition.function)
|
||||
[(identifier) (class_identifier)] @local.definition.function)
|
||||
|
||||
(include_statement [(identifier) (class_identifier)] @definition.import)
|
||||
(include_statement [(identifier) (class_identifier)] @local.definition.import)
|
||||
|
||||
(parameter (variable) @definition.parameter)
|
||||
(parameter (variable) @local.definition.parameter)
|
||||
|
||||
(class_definition
|
||||
[(identifier) (class_identifier)] @definition.type)
|
||||
[(identifier) (class_identifier)] @local.definition.type)
|
||||
|
||||
(node_definition
|
||||
(node_name (identifier) @definition.type))
|
||||
(node_name (identifier) @local.definition.type))
|
||||
|
||||
(resource_declaration
|
||||
[(identifier) (class_identifier)] @definition.type)
|
||||
[(identifier) (class_identifier)] @local.definition.type)
|
||||
|
||||
(assignment . (variable) @definition.var)
|
||||
(assignment . (variable) @local.definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue