JuliaLang / JuliaSyntax.jl

The Julia compiler frontend
Other
266 stars 32 forks source link

Parsing regression for string macro with boolean suffix #401

Open pfitzseb opened 6 months ago

pfitzseb commented 6 months ago

flisp (on 1.9)

julia> Meta.parse("""test"asd"true""")
:(test"asd"true)

JuliaSyntax#main:

julia> JuliaSyntax.parse(Expr, """test"asd"true""")
:(test"asd" * true)

Note that this is different from other Numbers:

julia> JuliaSyntax.parse(Expr, """test"asd"0.0""")
:(test"asd"0.0)

julia> JuliaSyntax.parse(Expr, """test"asd"0x0""")
:(test"asd"0)

julia> JuliaSyntax.parse(Expr, """test"asd"0f0""")
:(test"asd"0.0)