18 lines
646 B
Scheme
18 lines
646 B
Scheme
;; Better highlighting by referencing to the definition, for variable
|
|
;; references. However, this is not yet supported by neovim
|
|
;; See https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables
|
|
|
|
(package_specification) @scope
|
|
(subprogram_specification) @scope
|
|
(block_statement) @scope
|
|
|
|
(procedure_specification (name) @definition.var)
|
|
(function_specification (name) @definition.var)
|
|
(package_specification name: (name) @definition.var)
|
|
(package_body (name) @definition.var)
|
|
(generic_instantiation . (name) @definition.var)
|
|
(defining_identifier_list (identifier) @definition.var)
|
|
|
|
(identifier) @reference
|
|
(name) @reference
|