[vim/vim] Wrong highlighting in latex (#2433)

88 views
Skip to first unread message

Urbain Vaes

unread,
Dec 11, 2017, 9:11:37 AM12/11/17
to vim/vim, Subscribed

Hi!

When I edit the following document with vim -N -u NONE,

\documentclass{article} 
\usepackage{amsmath} 
 
\begin{document} 
\begin{subequations} 
    \begin{align} 
        &1 + 1 = 2 \\
        &2 + 2 = 4
    \end{align} 
\end{subequations} 
\end{document}

and use :syntax on, the line \end{subequations} appears as an error, although I believe this is correct latex code.

Best, Urbain


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Charles E Campbell

unread,
Dec 11, 2017, 1:33:32 PM12/11/17
to vim...@googlegroups.com
Urbain Vaes wrote:
>
> Hi!
>
> When I edit the following document with |vim -N -u NONE|,
>
> |\documentclass{article} \usepackage{amsmath} \begin{document}
> \begin{subequations} \begin{align} &1 + 1 = 2 \\ &2 + 2 = 4
> \end{align} \end{subequations} \end{document} |
>
> and use |:syntax on|, the line |\end{subequations}| appears as an
> error, although I believe this is correct latex code.
>
>
Hello:

Looks like a "leftover" problem. I've been trying to remove all package
related information from syntax/tex.vim. Instead, you should use add-on
syntax highlighting for packages.

* you can get an updated syntax/tex.vim from my website:
http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX .
* you can get an add-on syntax package for amsmath also from my
website: http://www.drchip.org/astronaut/vim/index.html#LATEXPKGS

Regards,
Chip Campbell


K.Takata

unread,
Dec 11, 2017, 6:08:43 PM12/11/17
to vim/vim, Subscribed

Dr. Chip commented at https://groups.google.com/d/msg/vim_dev/Q1YYNLNNes4/E0UC9zQvBwAJ .
(I don't know why his comment is reflected here.)

Charles E Campbell

unread,
Dec 12, 2017, 10:21:48 AM12/12/17
to vim...@googlegroups.com
K.Takata wrote:
>
> Dr. Chip commented at
> https://groups.google.com/d/msg/vim_dev/Q1YYNLNNes4/E0UC9zQvBwAJ .
> (I don't know why his comment is reflected here.)
>
>
Because the email showed up as email to the vim mailing list.

lacygoill

unread,
Jun 21, 2020, 7:54:37 PM6/21/20
to vim/vim, Subscribed

Fixed by f0b03c4#diff-9aa7419d9504f85f995d943175f49e46.


You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or unsubscribe.

Christian Brabandt

unread,
Jun 22, 2020, 2:38:22 AM6/22/20
to vim/vim, Subscribed

Closed #2433.


You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or unsubscribe.

Reply all
Reply to author
Forward
0 new messages