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

Disallow tuples as atoms in interpolation syntax #305

Closed
c42f opened this issue Jun 9, 2023 · 0 comments · Fixed by #306
Closed

Disallow tuples as atoms in interpolation syntax #305

c42f opened this issue Jun 9, 2023 · 0 comments · Fixed by #306

Comments

@c42f
Copy link
Member

c42f commented Jun 9, 2023

There's an error reporting inconsistency with the reference parser for commas in brackets in interpolations:

julia> JuliaSyntax.parsestmt(Expr, "\"\$(x, digits=1)\"")
:("$((x, digits = 1))")

julia> JuliaSyntax.fl_parse(Expr, "\"\$(x, digits=1)\"")
ERROR: ParseError("invalid interpolation syntax")
Stacktrace:
 [1] fl_parse(str::String, pos::Int64; greedy::Bool, raise::Bool, depwarn::Bool)
   @ JuliaSyntax ~/.julia/dev/JuliaSyntax/src/hooks.jl:379 [inlined]

Found in JuliaLang/julia#18703 (comment)

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 a pull request may close this issue.

1 participant