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

handle import .. as .. syntax #220

Merged
merged 2 commits into from
Jan 12, 2021
Merged

handle import .. as .. syntax #220

merged 2 commits into from
Jan 12, 2021

Conversation

ZacLN
Copy link
Contributor

@ZacLN ZacLN commented Jan 12, 2021

No description provided.

pfitzseb
pfitzseb previously approved these changes Jan 12, 2021
@@ -387,6 +387,13 @@ function parse_dot_mod(ps::ParseState, is_colon = false)
pushtotrivia!(ret, EXPR(:DOT, 1, 1))
ps.nt = RawToken(kindof(ps.nt), ps.nt.startpos, ps.nt.endpos, ps.nt.startbyte + 1, ps.nt.endbyte, ps.nt.token_error, false, ps.nt.suffix)
else
@static if VERSION > v"1.6-"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should check against an internal CSTParser.SYNTAX_VERSION instead so we can parse newer syntax with old Julia versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, lets open a separate issue on this.

test/parser.jl Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Pfitzner <pfitzseb@gmail.com>
@pfitzseb pfitzseb merged commit ecb7efd into master Jan 12, 2021
@ZacLN ZacLN deleted the import-as branch January 12, 2021 14:04
@oppo-source oppo-source removed the request for review from a team April 16, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants