Skip to content
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

Fix regression in #line directives #561

Merged
merged 1 commit into from
May 13, 2024

Conversation

MatthewFluet
Copy link
Member

Prior to a2606d0, MLton (in concert with SML/NJ) accepted line directives like:

(*#line 407 "lazyparse.nw"*)

with an implicit column of 1. With a2606d0, the lexer was refactored and mistakenly changed to require a column number.

Thanks to Norman Ramsey for the bug report.

Closes #557.

Prior to a2606d0, MLton (in concert with SML/NJ) accepted line
directives like:

    (*#line 407 "lazyparse.nw"*)

with an implicit column of 1.  With a2606d0, the lexer was refactored
and mistakenly changed to require a column number.

Thanks to Norman Ramsey for the bug report.

Closes MLton#557.
@MatthewFluet MatthewFluet merged commit b20e542 into MLton:master May 13, 2024
6 of 9 checks passed
@MatthewFluet MatthewFluet deleted the line-directive-fix branch May 13, 2024 23:30
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.

Formal comments for line directives are parsed too strictly in 20210117
1 participant