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

parser error for invalid : after imports #34694

Merged

Conversation

simeonschaub
Copy link
Member

I wasn't quite sure, whether this should throw during parsing or lowering. I chose to have it throw during parsing, because I can't really see a situation, where the current parsing of expressions like using A, B: x as (:)((using A, B;), x) would be useful and we might eventually want to support this syntax and make this behave like users would expect it to.

Fix #34650

src/julia-parser.scm Outdated Show resolved Hide resolved
src/julia-parser.scm Outdated Show resolved Hide resolved
src/julia-parser.scm Outdated Show resolved Hide resolved
@simeonschaub simeonschaub force-pushed the parser_error_colon_after_imports branch from dd232d1 to d69df30 Compare February 12, 2020 22:47
@simeonschaub simeonschaub force-pushed the parser_error_colon_after_imports branch from d69df30 to 8d65c22 Compare February 13, 2020 00:26
@simeonschaub
Copy link
Member Author

Just a friendly bump. Should be ready to merge now.

@simeonschaub
Copy link
Member Author

@JeffBezanson Have you had time to take another look at this?

@JeffBezanson JeffBezanson merged commit ddf904c into JuliaLang:master Mar 3, 2020
ravibitsgoa pushed a commit to ravibitsgoa/julia that referenced this pull request Apr 9, 2020
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.

Parsing of import/using statements like using A, B: x
2 participants