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 layout mechanism adjust columns of subsequent tokens on the same line when inserting braces and semicolons. This leads to misalignment and subsequent parse errors.
E.g. this parses in haskell but is rejected by the grammar of #344:
f = g + h where g =3; h = i where i = j
j =2
Suggested fix: just remove the incrGlobal mechanism, simplifying addToken:
The layout mechanism adjust columns of subsequent tokens on the same line when inserting braces and semicolons. This leads to misalignment and subsequent parse errors.
E.g. this parses in haskell but is rejected by the grammar of #344:
Suggested fix: just remove the
incrGlobal
mechanism, simplifyingaddToken
:bnfc/source/src/BNFC/Backend/Haskell/CFtoLayout.hs
Lines 206 to 212 in 71ebcee
bnfc/source/src/BNFC/Backend/Haskell/CFtoLayout.hs
Lines 225 to 235 in 71ebcee
The text was updated successfully, but these errors were encountered: