We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a0aa04 commit 87fcdf0Copy full SHA for 87fcdf0
src/parser.jl
@@ -462,6 +462,7 @@ function parse_toplevel(ps::ParseState)
462
bump_trivia(ps)
463
break
464
else
465
+ bump_trivia(ps)
466
parse_stmts(ps)
467
end
468
test/expr.jl
@@ -65,6 +65,21 @@
65
:body,
66
),
67
)
68
+
69
+ @test parseall("a\n\nx") ==
70
+ Expr(:toplevel,
71
+ LineNumberNode(1),
72
+ :a,
73
+ LineNumberNode(3),
74
+ :x
75
+ )
76
+ @test parseall("a\n\nx;y") ==
77
78
79
80
81
+ Expr(:toplevel, :x, :y)
82
83
84
85
@testset "Function definition lines" begin
0 commit comments