mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -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
|
|
@ -10,42 +10,42 @@
|
|||
(foreach)
|
||||
(if)
|
||||
(let)
|
||||
] @scope
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
[
|
||||
(var)
|
||||
(identifier)
|
||||
] @reference
|
||||
] @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(instruction
|
||||
(identifier) @definition.field)
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
(let_instruction
|
||||
(identifier) @definition.field)
|
||||
(identifier) @local.definition.field)
|
||||
|
||||
(include_directive
|
||||
(string) @definition.import)
|
||||
(string) @local.definition.import)
|
||||
|
||||
(template_arg (identifier) @definition.parameter)
|
||||
(template_arg (identifier) @local.definition.parameter)
|
||||
|
||||
(class
|
||||
name: (identifier) @definition.type)
|
||||
name: (identifier) @local.definition.type)
|
||||
|
||||
(multiclass
|
||||
name: (identifier) @definition.type)
|
||||
name: (identifier) @local.definition.type)
|
||||
|
||||
(def
|
||||
name: (value (_) @definition.type))
|
||||
name: (value (_) @local.definition.type))
|
||||
|
||||
(defm
|
||||
name: (value (_) @definition.type))
|
||||
name: (value (_) @local.definition.type))
|
||||
|
||||
(defset
|
||||
name: (identifier) @definition.type)
|
||||
name: (identifier) @local.definition.type)
|
||||
|
||||
(def_var
|
||||
name: (identifier) @definition.var)
|
||||
name: (identifier) @local.definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue