diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-02-05 10:10:18 -0800 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-06 10:29:09 +0100 |
| commit | 127cf25737300c7cd5ea74d387576008a9eafe2a (patch) | |
| tree | 9b09d71491fa31430282d2fc51aa0a657fbee7d6 /queries/latex | |
| parent | fix(latex): give comments higher precedence (diff) | |
| download | nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.tar nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.tar.gz nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.tar.bz2 nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.tar.lz nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.tar.xz nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.tar.zst nvim-treesitter-127cf25737300c7cd5ea74d387576008a9eafe2a.zip | |
feat(latex): pre-compiled header highlights, tests
Also moves comment highlights to the very end to make them more
future-proof.
Diffstat (limited to 'queries/latex')
| -rw-r--r-- | queries/latex/highlights.scm | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index a249d04bb..9649b5dd6 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -298,15 +298,6 @@ (_) @markup.link.url)) (#any-of? @_name "\\url" "\\href")) -[ - (line_comment) - (block_comment) - (comment_environment) -] @comment @spell - -((line_comment) @keyword.directive - (#lua-match? @keyword.directive "^%% !TeX")) - ; File inclusion commands (class_include command: _ @keyword.import @@ -369,3 +360,15 @@ (displayed_equation) (inline_formula) ] @markup.math + +[ + (line_comment) + (block_comment) + (comment_environment) +] @comment @spell + +((line_comment) @keyword.directive + (#lua-match? @keyword.directive "^%% !TeX")) + +((line_comment) @keyword.directive + (#lua-match? @keyword.directive "^%%&")) |
