summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parse/expr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse/expr.cpp b/src/parse/expr.cpp
index 17a40364..f9088f10 100644
--- a/src/parse/expr.cpp
+++ b/src/parse/expr.cpp
@@ -254,7 +254,9 @@ ExprNodeP Parse_ExprBlockLine(TokenStream& lex, bool *add_silence)
case TOK_RWORD_BREAK: {
PUTBACK(tok, lex);
auto ret = Parse_Stmt(lex);
- if( GET_TOK(tok, lex) != TOK_SEMICOLON ) {
+ if( LOOK_AHEAD(lex) == TOK_EOF ) {
+ }
+ else if( GET_TOK(tok, lex) != TOK_SEMICOLON ) {
CHECK_TOK(tok, TOK_BRACE_CLOSE);
PUTBACK(tok, lex);
}