mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -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
|
|
@ -7,41 +7,41 @@
|
|||
(for_statement)
|
||||
(match_expression)
|
||||
(switch_expression)
|
||||
] @scope
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
[
|
||||
(identifier)
|
||||
(scoped_type_identifier)
|
||||
] @reference
|
||||
] @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(global_binding
|
||||
(identifier) @definition.constant . ":" (_))
|
||||
(identifier) @local.definition.constant . ":" (_))
|
||||
|
||||
(const_declaration
|
||||
"const" (identifier) @definition.constant . "=")
|
||||
"const" (identifier) @local.definition.constant . "=")
|
||||
|
||||
(field
|
||||
. (identifier) @definition.field)
|
||||
. (identifier) @local.definition.field)
|
||||
|
||||
(field_assignment
|
||||
. (identifier) @definition.field)
|
||||
. (identifier) @local.definition.field)
|
||||
|
||||
(function_declaration
|
||||
"fn" . (identifier) @definition.function)
|
||||
"fn" . (identifier) @local.definition.function)
|
||||
|
||||
(parameter
|
||||
(_) @definition.parameter . ":")
|
||||
(_) @local.definition.parameter . ":")
|
||||
|
||||
(type_declaration
|
||||
"type" (identifier) @definition.type . "=")
|
||||
"type" (identifier) @local.definition.type . "=")
|
||||
|
||||
(type_declaration
|
||||
"type" (identifier) @definition.enum . "=" (enum_type))
|
||||
"type" (identifier) @local.definition.enum . "=" (enum_type))
|
||||
|
||||
(let_declaration
|
||||
"let" . (identifier) @definition.variable ","?)
|
||||
"let" . (identifier) @local.definition.variable ","?)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue