Synchronize queries with nvim-treesitter repository
This commit is contained in:
parent
1296a692cc
commit
f67bc6622a
|
|
@ -94,11 +94,9 @@
|
|||
[
|
||||
"exception"
|
||||
"raise"
|
||||
] @exception
|
||||
(comment) @comment
|
||||
(comment) @spell ;; spell-check comments
|
||||
(string_literal) @string
|
||||
(string_literal) @spell ;; spell-check strings
|
||||
] @exception
|
||||
(comment) @comment @spell
|
||||
(string_literal) @string
|
||||
(character_literal) @string
|
||||
(numeric_literal) @number
|
||||
|
||||
|
|
@ -173,6 +171,24 @@
|
|||
; ] @function.spec
|
||||
;)
|
||||
|
||||
((comment) @comment.documentation
|
||||
. [
|
||||
(entry_declaration)
|
||||
(subprogram_declaration)
|
||||
(parameter_specification)
|
||||
])
|
||||
|
||||
(compilation_unit
|
||||
. (comment) @comment.documentation)
|
||||
|
||||
(component_list
|
||||
(component_declaration)
|
||||
. (comment) @comment.documentation)
|
||||
|
||||
(enumeration_type_definition
|
||||
(identifier)
|
||||
. (comment) @comment.documentation)
|
||||
|
||||
;; Highlight errors in red. This is not very useful in practice, as text will
|
||||
;; be highlighted as user types, and the error could be elsewhere in the code.
|
||||
;; This also requires defining :hi @error guifg=Red for instance.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user