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

@ -1,28 +1,28 @@
;; Definitions
(function_signature
name: (identifier) @definition.function)
name: (identifier) @local.definition.function)
(formal_parameter
name: (identifier) @definition.parameter)
name: (identifier) @local.definition.parameter)
(initialized_variable_definition
name: (identifier) @definition.var)
name: (identifier) @local.definition.var)
(initialized_identifier
(identifier) @definition.var)
(identifier) @local.definition.var)
(static_final_declaration
(identifier) @definition.var)
(identifier) @local.definition.var)
;; References
(identifier) @reference
(identifier) @local.reference
;; Scopes
(class_definition
body: (_) @scope)
body: (_) @local.scope)
[
(block)
(if_statement)
@ -31,4 +31,4 @@
(try_statement)
(catch_clause)
(finally_clause)
] @scope
] @local.scope