mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ada(highlights,folds,locals): update to parser changes
This commit is contained in:
parent
ad9ae9e7de
commit
4db6696672
4 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ada": {
|
||||
"revision": "e9e2ec9d3b6302e9b455901bec00036e29d1c121"
|
||||
"revision": "42cc2eb141529b03a91c18ec8646a0a58fb111ba"
|
||||
},
|
||||
"agda": {
|
||||
"revision": "80ea622cf952a0059e168e5c92a798b2f1925652"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
;; za toggles folding a package, subprogram, if statement or loop
|
||||
|
||||
[
|
||||
(package_specification)
|
||||
(package_declaration)
|
||||
(generic_package_declaration)
|
||||
(package_body)
|
||||
(subprogram_body)
|
||||
(block_statement)
|
||||
|
|
|
|||
|
|
@ -105,9 +105,10 @@
|
|||
;; Highlight the name of subprograms
|
||||
(procedure_specification name: (_) @function)
|
||||
(function_specification name: (_) @function)
|
||||
(package_specification name: (_) @function)
|
||||
(package_declaration name: (_) @function)
|
||||
(package_body name: (_) @function)
|
||||
(generic_instantiation name: (_) @function)
|
||||
(entry_declaration . (identifier) @function)
|
||||
|
||||
;; Some keywords should take different categories depending on the context
|
||||
(use_clause "use" @include "type" @include)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
;; See https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables
|
||||
|
||||
(compilation) @scope
|
||||
(package_specification) @scope
|
||||
(package_declaration) @scope
|
||||
(package_body) @scope
|
||||
(subprogram_declaration) @scope
|
||||
(subprogram_body) @scope
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
(with_clause (identifier) @definition.import)
|
||||
(procedure_specification name: (_) @definition.function)
|
||||
(function_specification name: (_) @definition.function)
|
||||
(package_specification name: (_) @definition.var)
|
||||
(package_declaration name: (_) @definition.var)
|
||||
(package_body name: (_) @definition.var)
|
||||
(generic_instantiation . name: (_) @definition.var)
|
||||
(component_declaration . (identifier) @definition.var)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue