You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\documentclass{article}
\usepackage{comment}
\begin{document}
\begin{comment}
text text text text text text text text text text text text text
$a=b$
text text text text text text text text text text text text text
\end{comment}
\begin{comment}
text text text text text text text text text text text text text
\begin{equation}
a=b\end{equation}
text text text text text text text text text text text text text
\begin{empheq}[box=\widefbox]{align*}
c_1 &= a\\
c_2 &= b\\
c_3 &= c
\end{empheq}
text text text text text text text text text text text text text
\end{comment}
\end{document}
appears in neovim 0.8.2 with vimtex installed as following
Describe the solution you'd like
Lines 15, 17, 19, and 23 should also be greyed out.
The text was updated successfully, but these errors were encountered:
kiryph
changed the title
Syntax for package "comment": \begin{env} and \end{env} appears as not being commented
Syntax for package "comment": \begin{env}[options] and \end{env} appear as not being commented
Feb 2, 2023
Thanks, I've fixed this now. It will still break on the following edge case, but I think that's ok:
\begin{comment}
\begin{comment}
text text text text text text text text text text text text text
\end{comment}
text text text text text text text text text text text text text
\end{comment}
It would probably not be impossible to fix that, but it would be much harder because I would have to find another technique entirely. And it seems very unlikely that anyone would actually do this in real life?
And it seems very unlikely that anyone would actually do this in real life?
I would not do this. I could imagine that other people are doing it, but I am not one of them.
IMHO the edge case of nested comment environments is not important enough to find a completely new technique.
Following LaTeX file
appears in neovim 0.8.2 with vimtex installed as following
Describe the solution you'd like
Lines 15, 17, 19, and 23 should also be greyed out.
The text was updated successfully, but these errors were encountered: