mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10: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
|
|
@ -31,61 +31,61 @@
|
|||
|
||||
(array_literal)
|
||||
(object_literal)
|
||||
] @scope
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(field
|
||||
name: (identifier) @definition.field)
|
||||
name: (identifier) @local.definition.field)
|
||||
|
||||
(use_statement
|
||||
(identifier) @definition.import)
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(constructor
|
||||
(identifier) @definition.method)
|
||||
(identifier) @local.definition.method)
|
||||
|
||||
(method
|
||||
(identifier) @definition.method)
|
||||
(identifier) @local.definition.method)
|
||||
|
||||
(behavior
|
||||
(identifier) @definition.method)
|
||||
(identifier) @local.definition.method)
|
||||
|
||||
(actor_definition
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(type_alias
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(class_definition
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(primitive_definition
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(interface_definition
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(trait_definition
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(struct_definition
|
||||
(identifier) @definition.type)
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(parameter
|
||||
name: (identifier) @definition.parameter)
|
||||
name: (identifier) @local.definition.parameter)
|
||||
|
||||
(variable_declaration
|
||||
(identifier) @definition.var)
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(for_statement
|
||||
[
|
||||
(identifier) @definition.var
|
||||
(tuple_expression (identifier) @definition.var)
|
||||
(identifier) @local.definition.var
|
||||
(tuple_expression (identifier) @local.definition.var)
|
||||
])
|
||||
|
||||
(with_elem
|
||||
(identifier) @definition.var)
|
||||
(identifier) @local.definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue