You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
and the highlighting here seems to be incorrect. The function name is not highlighted as usual, and the third line (-> Type2) is not coloured correctly.
Atom's grammar model limitation. See #57, #81, #89, #101, and probably a few others. I will keep this open to increase visibility, since these reports get extremely redundant after a while.
Actually, I managed to come up with a reasonably effective band-aid (finally?). Not a solution, not by any stretch, but should help with the most common case.
It basically works by asserting that Haskell statements can't start with :: operator, hence successive lines having the same indentation level as :: have to be part of a signature.
So this works (somewhat, identifier isn't highlighted as a signature declaration):
this still doesn't, but such formatting is rather rare, I reckon:
Best results are still achieved with something like this:
Activity
lierdakil commentedon Apr 18, 2017
Atom's grammar model limitation. See #57, #81, #89, #101, and probably a few others. I will keep this open to increase visibility, since these reports get extremely redundant after a while.
lierdakil commentedon Dec 29, 2017
Relevant: lspitzner/brittany#94
lierdakil commentedon Dec 29, 2017
Actually, I managed to come up with a reasonably effective band-aid (finally?). Not a solution, not by any stretch, but should help with the most common case.
It basically works by asserting that Haskell statements can't start with
::operator, hence successive lines having the same indentation level as::have to be part of a signature.So this works (somewhat, identifier isn't highlighted as a signature declaration):

this still doesn't, but such formatting is rather rare, I reckon:

Best results are still achieved with something like this:
