diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-02 08:06:35 -0500 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-05 17:15:32 -0500 |
| commit | 5a87bc98dabd0d38152a6fa774005f7ecbd40f1b (patch) | |
| tree | 941f6fdcddf4468c10212dd170bae3ff361f867c /queries/ada | |
| parent | docs: add `@comment.documentation` (diff) | |
| download | nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.gz nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.bz2 nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.lz nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.xz nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.zst nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.zip | |
feat: add `@comment.documentation` where applicable
Diffstat (limited to 'queries/ada')
| -rw-r--r-- | queries/ada/highlights.scm | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/queries/ada/highlights.scm b/queries/ada/highlights.scm index 884203791..bcd041d5a 100644 --- a/queries/ada/highlights.scm +++ b/queries/ada/highlights.scm @@ -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 @spell (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. |
