Skip to content

Commit d8cd065

Browse files
committed
Add FIXME
1 parent 7b6ad27 commit d8cd065

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parser.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ function parse_cond(ps::ParseState)
642642
# a ? b :c ==> (if a [ ] [?] [ ] b [ ] [:] (error-t) c)
643643
bump_invisible(ps, K"error", TRIVIA_FLAG, error="space required after `:` in `?` expression")
644644
end
645+
646+
# FIXME: This is a very specific case. Error recovery should be handled mor
647+
# generally elsewhere.
645648
if is_block_continuation_keyword(kind(t))
646649
# a "continuaton keyword" is likely to belong to the surrounding code, so
647650
# we abort early

0 commit comments

Comments
 (0)