feat(locals)!: switch to upstream captures

This commit is contained in:
Christian Clason 2023-07-22 15:29:32 +02:00
parent 306367a7f4
commit 8fb218dbfd
95 changed files with 1154 additions and 1154 deletions

View file

@ -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)