basic: ON statement, DO with GOTO at the end will work now

This commit is contained in:
minjaesong
2020-12-16 11:44:01 +09:00
parent 615db3b2ad
commit 5b3d569d06
3 changed files with 41 additions and 6 deletions

View File

@@ -530,7 +530,7 @@ bF._parseIfMode = function(lnum, tokens, states, recDepth, exprMode) {
if ("IF" == headTkn && "lit" == headSta) {
// "THEN" not found, raise error!
if (thenPos == -1) throw new ParserError("IF without THEN in " + lnum);
if (thenPos == -1) throw lang.syntaxfehler(lnum, "IF without THEN");
treeHead.astValue = "IF";
treeHead.astType = "function";