mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue