Haskell Guard and SublimeText 3

I switched to Sublime Text 3, but now that I have encoded some Haskell in ST3, I noticed something rather strange, this is the syntax highlighting logic for guards.

As you can see, when I write it this way, it highlights the first guard of white color and different icons in the form of a combination of white / magenta:

Correct guards, incorrect highlighting.

Only when I use this syntax incorrectly (with an equal sign after the argument) does it display correctly.

Incorrect guards, correct highlighting.

Does anyone know how to fix this?

+4
source share
2 answers

, Haskell . Haskell SublimeHaskell. , , otherwise "" ( Prelude, ).

Haskell, , , Ctrl Alt Shift P. , . , . source.haskell meta.function.type-declaration.haskell, source.haskell keyword.operator.haskell. SublimeHaskell, source.haskell keyword.operator.haskell . , SublimeHaskell ( module Name where), . , SublimeHaskell , , , , Haskell SublimeHaskell.

+4

( !!!) , , , ST3, , -exaustive .

exaustive: http://i.imgur.com/74o4sgp.png

Exaustive: http://i.imgur.com/M9a4TTL.png

0

All Articles