mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
feat(latex): pre-compiled header highlights, tests
Also moves comment highlights to the very end to make them more future-proof.
This commit is contained in:
parent
8d6192baa9
commit
127cf25737
2 changed files with 45 additions and 9 deletions
|
|
@ -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 "^%%&"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue