Treat commas in scripts as whitespace

This commit is contained in:
Evil Eye 2021-11-13 14:06:21 +01:00
parent 9a00984561
commit bee94e2afc
12 changed files with 36 additions and 101 deletions

View file

@ -427,6 +427,16 @@ set 1 to 42
End)mwscript";
const std::string sIssue6380 = R"mwscript(,Begin,issue6380,
,short,a
,set,a,to,,,,(a,+1)
messagebox,"this is a %g",a
,End,)mwscript";
TEST_F(MWScriptTest, mwscript_test_invalid)
{
EXPECT_THROW(compile("this is not a valid script", true), Compiler::SourceException);
@ -831,4 +841,9 @@ End)mwscript";
FAIL();
}
}
TEST_F(MWScriptTest, mwscript_test_6380)
{
EXPECT_FALSE(!compile(sIssue6380));
}
}