Skip to content

Conversation

@doorgan
Copy link
Contributor

@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
Contributor 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
@mhanberg mhanberg merged commit 792e9c9 into elixir-tools:main Jan 19, 2026
37 checks passed
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.

3 participants