diff options
Diffstat (limited to 'src/parser.cpp')
-rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index d39d9ef..17a11b9 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -936,7 +936,9 @@ StateStart::custom(gchar chr) if (IS_FAILURE(rc)) { expressions.discard_args(); - g_assert(expressions.pop_op() == Expressions::OP_LOOP); + if (expressions.pop_op() != Expressions::OP_LOOP) + /* FIXME: what does standard teco say to this */ + throw Error("Cannot break from loop without loop"); expressions.pop_num(); /* pc */ expressions.pop_num(); /* counter */ |