purescript-language-cst-parser
purescript-language-cst-parser copied to clipboard
Recovery needs to alter the layout stack
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.