Skip to content

Conversation

@doorgan
Copy link

@doorgan doorgan commented Jan 17, 2026

Fixes a lot of scenarios where the parser would crash on unexpected semicolons, or report the wrong error message.
Some of the errors were originally reported in #48

This PR supercedes part of #56

@lukaszsamson
Copy link
Contributor

Per elixir grammar a lot of those are actually expected semicolons. Elixir uses eol, ; or eol; as eoe. Also stab parens allow semicolons as separators

@doorgan
Copy link
Author

doorgan commented Jan 17, 2026

@lukaszsamson good call, thanks!

rename eat_* helpers to use `eoe` when it eats eol and ;
@doorgan doorgan force-pushed the doorgan/semicolon-crashes branch from ff6fd39 to 577de80 Compare January 17, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants