Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
Make no-newline after if an error again, cf JuliaLang/julia#15813
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Apr 10, 2016
1 parent 215c58b commit 24b724a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ function parse_resword(ps::ParseState, ts::TokenStream, word, chain = nothing)
if chain == nothing && ¬word == :elseif
throw(diag(word,"\"elseif\" without preceeding if"))
end
if ¬word == :elseif && Lexer.isnewline(¬peek_token(ps, ts))
if Lexer.isnewline(¬peek_token(ps, ts))
D = diag(word, "missing condition in \"$(¬word)\"")
diag(D, chain, "previous \"$(¬chain)\" was here")
throw(D)
Expand Down

0 comments on commit 24b724a

Please sign in to comment.