mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -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
|
|
@ -2,32 +2,32 @@
|
|||
;; references. However, this is not yet supported by neovim
|
||||
;; See https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables
|
||||
|
||||
(compilation) @scope
|
||||
(package_declaration) @scope
|
||||
(package_body) @scope
|
||||
(subprogram_declaration) @scope
|
||||
(subprogram_body) @scope
|
||||
(block_statement) @scope
|
||||
(compilation) @local.scope
|
||||
(package_declaration) @local.scope
|
||||
(package_body) @local.scope
|
||||
(subprogram_declaration) @local.scope
|
||||
(subprogram_body) @local.scope
|
||||
(block_statement) @local.scope
|
||||
|
||||
(with_clause (identifier) @definition.import)
|
||||
(procedure_specification name: (_) @definition.function)
|
||||
(function_specification name: (_) @definition.function)
|
||||
(package_declaration name: (_) @definition.var)
|
||||
(package_body name: (_) @definition.var)
|
||||
(generic_instantiation . name: (_) @definition.var)
|
||||
(component_declaration . (identifier) @definition.var)
|
||||
(exception_declaration . (identifier) @definition.var)
|
||||
(formal_object_declaration . (identifier) @definition.var)
|
||||
(object_declaration . (identifier) @definition.var)
|
||||
(parameter_specification . (identifier) @definition.var)
|
||||
(full_type_declaration . (identifier) @definition.type)
|
||||
(private_type_declaration . (identifier) @definition.type)
|
||||
(private_extension_declaration . (identifier) @definition.type)
|
||||
(incomplete_type_declaration . (identifier) @definition.type)
|
||||
(protected_type_declaration . (identifier) @definition.type)
|
||||
(formal_complete_type_declaration . (identifier) @definition.type)
|
||||
(formal_incomplete_type_declaration . (identifier) @definition.type)
|
||||
(task_type_declaration . (identifier) @definition.type)
|
||||
(subtype_declaration . (identifier) @definition.type)
|
||||
(with_clause (identifier) @local.definition.import)
|
||||
(procedure_specification name: (_) @local.definition.function)
|
||||
(function_specification name: (_) @local.definition.function)
|
||||
(package_declaration name: (_) @local.definition.var)
|
||||
(package_body name: (_) @local.definition.var)
|
||||
(generic_instantiation . name: (_) @local.definition.var)
|
||||
(component_declaration . (identifier) @local.definition.var)
|
||||
(exception_declaration . (identifier) @local.definition.var)
|
||||
(formal_object_declaration . (identifier) @local.definition.var)
|
||||
(object_declaration . (identifier) @local.definition.var)
|
||||
(parameter_specification . (identifier) @local.definition.var)
|
||||
(full_type_declaration . (identifier) @local.definition.type)
|
||||
(private_type_declaration . (identifier) @local.definition.type)
|
||||
(private_extension_declaration . (identifier) @local.definition.type)
|
||||
(incomplete_type_declaration . (identifier) @local.definition.type)
|
||||
(protected_type_declaration . (identifier) @local.definition.type)
|
||||
(formal_complete_type_declaration . (identifier) @local.definition.type)
|
||||
(formal_incomplete_type_declaration . (identifier) @local.definition.type)
|
||||
(task_type_declaration . (identifier) @local.definition.type)
|
||||
(subtype_declaration . (identifier) @local.definition.type)
|
||||
|
||||
(identifier) @reference
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue