mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Treat commas in scripts as whitespace
This commit is contained in:
parent
9a00984561
commit
bee94e2afc
12 changed files with 36 additions and 101 deletions
|
@ -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));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue