From f43d22a298a79bdbe9e7627aaafc52d4213c1c28 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sun, 9 Jul 2017 21:39:47 +0900 Subject: [PATCH] Fix PRINT parser --- SMILEBASIC/parser.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index bf72829..c91d4f2 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -1745,7 +1745,9 @@ class Parser while(true) { //3号から厳密になって必ずいる - if(token.type == TokenType.Colon || token.type == TokenType.NewLine) + if(token.type == TokenType.Colon || token.type == TokenType.NewLine || + token.type == TokenType.Else || token.type == TokenType.Endif || + token.type == TokenType.Elseif || token.type == TokenType.Print) { if(addline) print.addLine(); break;