From 816a1733dcf6adc8edf17ed5ebd9c1d16daed7e6 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 12 Jun 2018 15:29:28 +0200 Subject: [PATCH] Allow comma after Begin and End script instruction (Fixes #4451) --- components/compiler/fileparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/compiler/fileparser.cpp b/components/compiler/fileparser.cpp index 52a9a63f1..c9e205b8a 100644 --- a/components/compiler/fileparser.cpp +++ b/components/compiler/fileparser.cpp @@ -119,6 +119,11 @@ namespace Compiler return false; } } + else if (code==Scanner::S_comma && (mState==NameState || mState==EndNameState)) + { + // ignoring comma (for now) + return true; + } return Parser::parseSpecial (code, loc, scanner); }