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.
2 parents 71e3f31 + 492aea8 commit cd40c69Copy full SHA for cd40c69
src/components/internals.jl
@@ -305,7 +305,7 @@ function parse_macrocall(ps::ParseState)
305
end
306
push!(args, a)
307
308
- if valof(mname) == "@doc" && ps.t.endpos[1] + 1 == ps.nt.startpos[1] && length(args) == 3
+ if valof(mname) == "@doc" && ps.t.endpos[1] + 1 == ps.nt.startpos[1] && length(args) == 3 && kindof(ps.nt) !== Tokens.ENDMARKER
309
a = parse_expression(ps)
310
311
break
test/parser.jl
@@ -968,6 +968,9 @@ end
968
@test """
969
@doc(foo)
970
""" |> test_expr
971
+ @test """
972
+ @doc foo
973
+ """ |> test_expr
974
975
976
@testset "braces" begin
0 commit comments