We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
global <expr>
julia> ast = Meta.parse(s) :(global a = (2, b)) julia> s "global a=2,b" julia> cst = CSTParser.parse(s) 1:12 global 1:3 1:1 OP: = 1:1 a 2:2 INTEGER: 2 4:4 b julia> ast = Meta.parse(s) :(global a = (2, b))
The ast is parsed as
global binary op a = tuple 2 b
Where as the cst is parsed as
global binary op a = 2 b
ref domluna/JuliaFormatter.jl#431
The text was updated successfully, but these errors were encountered:
julia> cst = CSTParser.parse("local a = 2, b") 1:14 local 1:5 1:2 OP: = 1:2 a 3:3 INTEGER: 2 6:6 b julia> cst = CSTParser.parse("const a = 2, b") 1:14 const 1:8 1:2 OP: = 1:2 a 3:6 tuple 3:3 INTEGER: 2 4:4 b julia> cst = CSTParser.parse("outer a = 2, b") 1:14 errortoken 1:6 outer 7:14 1:2 OP: = 7:8 a 9:12 tuple 9:9 INTEGER: 2 10:10 b julia> cst = CSTParser.parse("return a = 2, b") 1:15 return 1:8 1:2 OP: = 1:2 a 3:6 tuple 3:3 INTEGER: 2 4:4 b
Looks like local is the other 1 that's broken. Not sure about outer (never seen that used anywhere so ???)
local
outer
Sorry, something went wrong.
I think outer is only allowed in for loop iteration-expressions. Will take a look at the other cases.
for
Successfully merging a pull request may close this issue.
The ast is parsed as
Where as the cst is parsed as
ref domluna/JuliaFormatter.jl#431
The text was updated successfully, but these errors were encountered: