Re: [Haskell-cafe] Missing comment highlighting in vim syntax script
On 14 dec 2008, at 19:04, Claus Reinke wrote: The Haskell syntax script for vim mentions this mailing list as the maintainer. Perhaps one of you could fix this bug. Comments on the same line as import declarations don't get highlighted: I don't know how this list-as-maintainer idea is going to work, but the fix seems straightforward: find the line in $VIMRUNTIME/ syntax/haskell.vim that says syn match hsImport "\.*"he=s+6 contains=hsImportMod and change it to syn match hsImport "\.*"he=s+6 contains=hsImportMod,hsLineComment,hsBlockComment See :help syn-contains. Good fix. Have also modified my copy and forwarded the patch to the vim maintainer. With kind regards, Arthur van Leeuwen. -- Arthur van Leeuwen arthu...@cs.uu.nl ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Missing comment highlighting in vim syntax script
The Haskell syntax script for vim mentions this mailing list as the maintainer. Perhaps one of you could fix this bug. Comments on the same line as import declarations don't get highlighted: I don't know how this list-as-maintainer idea is going to work, but the fix seems straightforward: find the line in $VIMRUNTIME/syntax/haskell.vim that says syn match hsImport "\.*"he=s+6 contains=hsImportMod and change it to syn match hsImport "\.*"he=s+6 contains=hsImportMod,hsLineComment,hsBlockComment See :help syn-contains. Claus ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Missing comment highlighting in vim syntax script
On Sat, Dec 13, 2008 at 9:10 AM, Ori Avtalion wrote: > Comments on the same line as import declarations don't get highlighted: > import A -- This comment isn't highlighted > import B {- Neither is this -} > import C {- and >this -} I think the way vim tries to do syntax highlighting is fundamentally busted. That's why there are the problems like the ones you're talking about and a million others. I plan to use vim and work on my yi configs until I can switch. It's sad. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Missing comment highlighting in vim syntax script
Hi all, The Haskell syntax script for vim mentions this mailing list as the maintainer. Perhaps one of you could fix this bug. Comments on the same line as import declarations don't get highlighted: import A -- This comment isn't highlighted import B {- Neither is this -} import C {- and this -} I'm using this version of the syntax file: (the only version) http://vim.svn.sourceforge.net/viewvc/vim/vim7/runtime/syntax/haskell.vim?revision=1296&view=markup Thanks, Ori ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe