haskell/haskell-mode

Syntax highlighting confused by lack of spaces

aberent opened this issue · 1 comments

If I have the following code in a file:

bad xs = [x|x <- xs]
good xs = [ x | x <- xs] 

the syntax highlighting gives up after the first '[x'.

If I remove or comment out 'bad' then it highlights correctly.

Presumably related to TemplateHaskell using the [quoter| ...|] syntax. You should prefer the good syntax above for list comprehensions.