Bug#648053: vim-runtime: Broken syntax highlighting for multi-line Haskell comments

James McCoy jamessan at debian.org
Mon May 7 01:46:29 UTC 2012


On Sat, Dec 03, 2011 at 11:29:10PM +0100, Connor Lane Smith wrote:
> On 1 December 2011 02:29, James McCoy <jamessan at debian.org> wrote:
> > If you save the attached file to ~/.vim/syntax/haskell.vim, does the
> > highlighting work better?
> 
> No, that doesn't seem to have had any effect...

This looks like the usual "issue" with syntax files in Vim.  There's a
tradeoff between accuracy and performance.  If you want full accuracy,
then use "syn sync fromstart".

This is discussed in the reference manual at the :syn-sync help topic
and in the bullet just above the 06.3 help topic in the user manual.

If you always want this to happen for this filetype, then put the sync
command in ~/.vim/after/syntax/haskell.vim.

-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20120506/c6110e8b/attachment.pgp>


More information about the pkg-vim-maintainers mailing list