summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse/expr.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse/expr.cpp b/src/parse/expr.cpp
index 8bcde31e..88e11262 100644
--- a/src/parse/expr.cpp
+++ b/src/parse/expr.cpp
@@ -958,6 +958,13 @@ ExprNodeP Parse_ExprVal(TokenStream& lex)
lex.putback(tok);
return Parse_ExprBlockNode(lex);
+ // TODO: Return/break/continue/... here?
+ case TOK_RWORD_RETURN:
+ case TOK_RWORD_CONTINUE:
+ case TOK_RWORD_BREAK:
+ lex.putback(tok);
+ return Parse_Stmt(lex);
+
case TOK_RWORD_LOOP:
return NEWNODE( AST::ExprNode_Loop, "", Parse_ExprBlockNode(lex) );
case TOK_RWORD_WHILE: