haskell-mode
haskell-mode copied to clipboard
Syntax highlighting confused by lack of spaces
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.