On Sat, Dec 03, 2011 at 11:29:10PM +0100, Connor Lane Smith wrote: > On 1 December 2011 02:29, James McCoy <james...@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 <james...@debian.org>
signature.asc
Description: Digital signature