haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

Syntax highlighting confused by lack of spaces

Open aberent opened this issue 3 years ago • 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.

aberent avatar Aug 26 '22 14:08 aberent

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

purcell avatar Aug 26 '22 15:08 purcell