purescript-language-cst-parser icon indicating copy to clipboard operation
purescript-language-cst-parser copied to clipboard

Recovery needs to alter the layout stack

Open natefaubion opened this issue 2 years ago • 0 comments

Recovery is somewhat terrible right now, and may actually produce worse errors in some cases because it is not attempting to recover the layout stack, it's only eating tokens. If the error pertains to a delimiter that affects the layout stack (such as a missing closing paren), then lack of layout stack recovery effectively means any attempt to resume from a recovered parse will still fail because the layout context is essentially poisoned.

natefaubion avatar Mar 02 '22 21:03 natefaubion