diff options
Diffstat (limited to 'lib/Parser/ParserFunction.cc')
| -rw-r--r-- | lib/Parser/ParserFunction.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Parser/ParserFunction.cc b/lib/Parser/ParserFunction.cc index f4e39de..25375f2 100644 --- a/lib/Parser/ParserFunction.cc +++ b/lib/Parser/ParserFunction.cc @@ -224,7 +224,8 @@ std::unique_ptr<StmtAST> Parser::ParseReturnStmt() { // A bare RETURN is recognized right before any block terminator. if (CurTok != tok_endif && CurTok != tok_else && CurTok != tok_endfunction && CurTok != tok_endprocedure && CurTok != tok_endwhile && CurTok != tok_until && - CurTok != tok_next && CurTok != tok_eof) { + CurTok != tok_next && CurTok != tok_catch && CurTok != tok_endtry && + CurTok != tok_eof) { Expr = ParseExpression(); if (!Expr) return nullptr; } |
