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
The expected token at this point is one of closing ')', ']', '}'. I do not see why we could not eat everything up to a closing token, maybe treating layout as taking priority.
In haskell-indentation-parse-to-indentations: top level problem.
It seems to be a variation on the same, as top level list is a layout delimited list.
Solution seems to be:
React to leading keywords only if, let, import, case etc.
React to following keywords only in context of a leading keyword, so then and else only as part of if.
Allow partial statements, that is if that is not followed by then
The text was updated successfully, but these errors were encountered:
There are two places where 'Illegal token' can be triggered in haskell-indentation:
haskell-indentation-with-starter
: the case there seems to be when a lexical structure expect a closing token/keyword and the token is not present:The expected token at this point is one of closing ')', ']', '}'. I do not see why we could not eat everything up to a closing token, maybe treating layout as taking priority.
haskell-indentation-parse-to-indentations
: top level problem.It seems to be a variation on the same, as top level list is a layout delimited list.
Solution seems to be:
if
,let
,import
,case
etc.then
andelse
only as part ofif
.if
that is not followed bythen
The text was updated successfully, but these errors were encountered: