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

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