Why do double newlines throw an error when parsing a string?
I had problems with this when running files using DaemonMode.
julia> Meta.parse("begin end")
quote
#= none:1 =#
end
julia> Meta.parse("begin end\n")
quote
#= none:1 =#
end
julia> Meta.parse("begin end\n\n")
ERROR: Base.Meta.ParseError("extra token after end of expression")
Stacktrace:
[1] parse(::String) at ./meta.jl:215
[2] top-level scope at REPL[73]:1
[3] run_repl(::REPL.AbstractREPL, ::Any) at /build/julia/src/julia-1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288