1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 18:39:55 +00:00

allow the use of keywords as variable names in more places

This commit is contained in:
Marc Zinnschlag 2014-02-12 09:23:23 +01:00
parent b1b0877122
commit c0a6acfe6c

View file

@ -219,6 +219,12 @@ namespace Compiler
bool LineParser::parseKeyword (int keyword, const TokenLoc& loc, Scanner& scanner)
{
if (mState==SetState)
{
// allow keywords to be used as variable names when assigning a value to a variable.
return parseName (loc.mLiteral, loc, scanner);
}
if (mState==BeginState || mState==ExplicitState)
{
switch (keyword)