Skip to content

Commit

Permalink
Allow multiple expressions at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Jan 28, 2021
1 parent 2ac185c commit b0f6617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/Parse.jl
Expand Up @@ -20,7 +20,7 @@ function parse_custom(notebook::Notebook, cell::Cell)::Expr
if (ex isa Expr) && (ex.head == :toplevel)
# if there is more than one expression:
if count(a -> !(a isa LineNumberNode), ex.args) > 1
Expr(:error, "extra token after end of expression\n\nBoundaries: $(expression_boundaries(cell.code))")
Expr(:toplevel, Expr(:toplevel, ex.args...))
else
ex
end
Expand Down

0 comments on commit b0f6617

Please sign in to comment.