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

Parsing error on valid Julia code #194

Closed
ThomasBreuer opened this issue Feb 28, 2020 · 3 comments
Closed

Parsing error on valid Julia code #194

ThomasBreuer opened this issue Feb 28, 2020 · 3 comments

Comments

@ThomasBreuer
Copy link

With JuliaFormatter v0.3.4 and Julia 1.3.0,
I get a Parsing error when I call format for a file that contains the following code.

function mystr( str::String )
    return SubString( str, 1:
    3 )
end

The error disappears when I remove the line break after the :.

@domluna
Copy link
Owner

domluna commented Feb 28, 2020

Looks like this is a bug with CSTParser

@StefanKarpinski
Copy link
Contributor

It does. Would be great to file an upstream issue there.

@domluna
Copy link
Owner

domluna commented Feb 29, 2020

This will be fixed in the next release of CSTParser

domluna added a commit that referenced this issue Mar 1, 2020
@domluna domluna closed this as completed in a5ea954 Mar 1, 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

No branches or pull requests

3 participants