Skip to content

Commit adcdcee

Browse files
committed
actually fix some more trycatch stuff
1 parent 9c824f1 commit adcdcee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/keywords.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ function parse_try(ps::ParseState)
422422
has_finally = false
423423
if kindof(ps.nt) === Tokens.FINALLY
424424
has_finally = true
425-
if isempty(catchblock.args)
426-
args[3] = EXPR(:block, 0, 0, "")
425+
if isempty(catchblock.args) && else_trivia === nothing
426+
args[3] = EXPR(:FALSE, 0, 0, "")
427427
end
428428
push!(trivia, EXPR(next(ps)))
429429
push!(args, EXPR(:block, parse_block(ps)))

0 commit comments

Comments
 (0)