1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00

allowed the use of keywords as script names (*sigh*)

This commit is contained in:
Marc Zinnschlag 2010-07-05 10:58:10 +02:00
parent a61b2c39f0
commit 5786addab5

View File

@ -59,6 +59,15 @@ namespace Compiler
return true;
}
if (mState==NameState)
{
// keywords can be used as script names too. Thank you Morrowind for another
// syntactic perversity :(
mName = loc.mLiteral;
mState = BeginCompleteState;
return true;
}
return Parser::parseKeyword (keyword, loc, scanner);
}