[patch] tex syntax: supports comment in environment options

1 view
Skip to first unread message

Johann Felix Soden

unread,
Dec 28, 2009, 8:23:26 AM12/28/09
to vim...@googlegroups.com
The TeX-syntax highlighting does not detect comments in optional
arguments to environments, e.g.:

\begin{myenv}[ % here the options
]
\end{myenv}

The attached patch solves the problem.

support_comment_in_sectionModifier.diff

Charles Campbell

unread,
Dec 28, 2009, 11:34:53 AM12/28/09
to vim...@googlegroups.com
Thank you for the patch! I went through syntax/tex.vim and included
texComment in a few more places, too. Please try
http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
(tex.vim.gz) out.

Regards,
Chip Campbell

Johann Felix Soden

unread,
Dec 28, 2009, 12:27:18 PM12/28/09
to vim...@googlegroups.com

Thank you very much. I could not find any problem with the new version.

But I found one more missing comment possibility:
\includegraphics[% comment..
is not supported yet. Adding texInputFileOpt to the "contains" list of
the related "syn match texInputFile" solves the problem.


Best regards,
Johann Felix Soden

Reply all
Reply to author
Forward
0 new messages