Skip to content

When using in REPL, JuliaSyntax.jl does not seem to work well with multiline parsing? #42

@singularitti

Description

@singularitti

When I want to type

map(1:10) do x
    2x
end

after I type map(1:10) do x and hit return, I got

julia> map(1:10) do
ERROR: ParseError:
Error: premature end of input
@ REPL[11]:2:1
map(1:10) do
Error: premature end of input
@ REPL[11]:2:1
map(1:10) do
Error: Expected `end` but got unexpected tokens
@ REPL[11]:2:1
map(1:10) do

Or if I want to type

 w = u +
     v +
     1

I got

julia> w = u +
ERROR: ParseError:
Error: premature end of input
@ REPL[14]:2:1
w = u +

But I can do them with copy-paste:

image

Can we make the REPL-mode tolerate multiline code a little bit more?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions