Martin Ueding wrote:
>
> In my setup of Vim, |verbatim| environments get highlighted just fine.
> The |lstlisting| environments do not have any special syntax
> highlighting. Characters like |$| or |_| screw up the syntax
> highlighting of all the following LaTeX code although they are not
> supposed to be interpreted as LaTeX.
>
> From the source it seems that support for |lstlisting| is built-in, but
> for some reason only when |g:tex_verbspell| is available and enabled.
> The only difference between the two blocks seems to be the
> |contains=@Spell|, so I have just copied the |lstlisting| line to the
> other branch.
>
Actually, the correct thing to do here is to remove lstlisting entirely
from syntax/tex.vim.  Its defined via a package, and package syntax
should not be supported inside syntax/tex.vim.

To get lstlisting highlighted correctly, see:
http://www.drchip.org/astronaut/vim/index.html#LATEXPKGS .

Regards,
Chip Campbell

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui