FS#16803 - [vim] haskell syntax highlight bug

Attached to Project: Arch Linux
Opened by Henrique Abreu (hgabreu) - Friday, 23 October 2009, 15:32 GMT
Last edited by Tobias Kieslich (tobias) - Friday, 23 October 2009, 15:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Kieslich (tobias)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Vim is not highlighting haskell code correctly.
Comments started in import's line are not highlighted.

Additional info:
vim 7.2.266-1

Steps to reproduce:
1-Create a haskell file with vim
vim test.hs
2-Enable syntax highlighting
:syntax on
3-Enter 'Insert' mode
i
4-Type the following lines
import test --comment
--another comment

Result:
'--comment' text should be highlighted as '--another comment', but it isn't.

Solution:
Edit line 70 of file '/usr/share/vim/vim72/syntax/haskell.vim' as follows:
syn match hsImport "\<import\>.*"he=s+6 contains=hsImportMod,hsLineComment,hsBlockComment
This task depends upon

Closed by  Tobias Kieslich (tobias)
Friday, 23 October 2009, 15:48 GMT
Reason for closing:  Upstream
Additional comments about closing:  This is pretty much the definition of an upstream bug. Please report it to the vim folks. Thank you!

Loading...