rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Missing syntax highlighting in list comprehension #603

Closed TiziG closed 4 years ago

TiziG commented 4 years ago

The syntax highlighting fails for some list comprehensions

Sample code:

fooA = [x == x | x <- [1]]
fooB = [     x | x <- [1]]

Expected:

Syntax highlighting should be equal in both lines.

Actual:

image First line: Vertical Bar gets highlighted in italic font style and '1' gets highlighted in blue. Second line: Nothing gets highlighted.

Also, I would recommend against styling the vertical bar symbol in italic, as it becomes nearly indistinguishable (depending on the font used) from the forward slash: image

rikvdkleij commented 4 years ago

Thanks for reporting!

Looks similar as https://github.com/rikvdkleij/intellij-haskell/issues/522

rikvdkleij commented 4 years ago

I will fix the difference in behavior.

rikvdkleij commented 4 years ago

Should be fixed in beta79.

rikvdkleij commented 4 years ago

Please reopen if still an issue.