Skip to content

- lexer.rl: don't perform lookahead after tASSOC. #764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

iliabylich
Copy link
Collaborator

It fixes parsing of

1 => foo
bar
1 => A(foo)

and basically all single line patterns that consist of multiple tokens.
The second token of exprinpattern => expr` was interpreted in EXPR_BEG state instead of EXPR_ARG.

Closes #763

It fixes parsing `1 => foo\nbar`, `1 => A(foo)` and
basically all singleton line patterns that consist of multiple tokens.
The second token of expr` in `pattern => expr` was interpreted in a EXPR_BEG state
instead of EXPR_ARG.
@iliabylich iliabylich merged commit 008d6c1 into whitequark:master Nov 23, 2020
@iliabylich iliabylich deleted the remove-lookahead-after-tassoc branch November 23, 2020 18:18
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.

Single-line pattern matching fails to parse
1 participant