Synchronize queries with nvim-treesitter repository

This commit is contained in:
Emmanuel Briot 2023-08-22 08:23:52 +02:00
parent 1296a692cc
commit f67bc6622a

View File

@ -94,11 +94,9 @@
[ [
"exception" "exception"
"raise" "raise"
] @exception ] @exception
(comment) @comment (comment) @comment @spell
(comment) @spell ;; spell-check comments (string_literal) @string
(string_literal) @string
(string_literal) @spell ;; spell-check strings
(character_literal) @string (character_literal) @string
(numeric_literal) @number (numeric_literal) @number
@ -173,6 +171,24 @@
; ] @function.spec ; ] @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 ;; 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. ;; be highlighted as user types, and the error could be elsewhere in the code.
;; This also requires defining :hi @error guifg=Red for instance. ;; This also requires defining :hi @error guifg=Red for instance.