nvim-treesitter/tests/query/highlights/latex/test.tex
Riley Bruins 127cf25737 feat(latex): pre-compiled header highlights, tests
Also moves comment highlights to the very end to make them more
future-proof.
2024-02-06 10:29:09 +01:00

33 lines
800 B
TeX

% vim:ft=latex
% !TeX
% ^ @keyword.directive
%& filename
% ^ @keyword.directive
\begin{equation} \frac{4}{2} + 128 \text{hello} \sum_{n=1}^{\text{hi\_hi\^hi}} n \end{equation}
% ^ @markup.math ^ @none ^ @function
\begin{equation}
a = b % Comment here
% ^ @comment
% ^ @markup.math
\end{equation}
\begin{equation}
a = b % Comment here
% ^ @comment
b = c
\end{equation}
\text{
hi $here$ is some text % with a comment
% ^ @comment
% ^ @markup.math
}
\textbf{
here is some text $5 + 2$ % with a comment
% ^ @comment
% ^ @markup.math
}
\textit{
here is some text $5 + 2$ % with a comment
% ^ @comment
% ^ @markup.math
}