mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -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
|
|
@ -4,36 +4,36 @@
|
|||
(block)
|
||||
(declaration)
|
||||
(statement)
|
||||
] @scope
|
||||
] @local.scope
|
||||
|
||||
; References
|
||||
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(package_declaration (identifier) @definition.namespace)
|
||||
(package_declaration (identifier) @local.definition.namespace)
|
||||
|
||||
(import_declaration alias: (identifier) @definition.namespace)
|
||||
(import_declaration alias: (identifier) @local.definition.namespace)
|
||||
|
||||
(procedure_declaration (identifier) @definition.function)
|
||||
(procedure_declaration (identifier) @local.definition.function)
|
||||
|
||||
(struct_declaration (identifier) @definition.type "::")
|
||||
(struct_declaration (identifier) @local.definition.type "::")
|
||||
|
||||
(enum_declaration (identifier) @definition.enum "::")
|
||||
(enum_declaration (identifier) @local.definition.enum "::")
|
||||
|
||||
(union_declaration (identifier) @definition.type "::")
|
||||
(union_declaration (identifier) @local.definition.type "::")
|
||||
|
||||
(variable_declaration (identifier) @definition.var ":=")
|
||||
(variable_declaration (identifier) @local.definition.var ":=")
|
||||
|
||||
(const_declaration (identifier) @definition.constant "::")
|
||||
(const_declaration (identifier) @local.definition.constant "::")
|
||||
|
||||
(const_type_declaration (identifier) @definition.type ":")
|
||||
(const_type_declaration (identifier) @local.definition.type ":")
|
||||
|
||||
(parameter (identifier) @definition.parameter ":"?)
|
||||
(parameter (identifier) @local.definition.parameter ":"?)
|
||||
|
||||
(default_parameter (identifier) @definition.parameter ":=")
|
||||
(default_parameter (identifier) @local.definition.parameter ":=")
|
||||
|
||||
(field (identifier) @definition.field ":")
|
||||
(field (identifier) @local.definition.field ":")
|
||||
|
||||
(label_statement (identifier) @definition ":")
|
||||
(label_statement (identifier) @local.definition ":")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue