allow declaration of local variables with keywords as names

actorid
Marc Zinnschlag 11 years ago
parent 32860a05e3
commit 2b2ac6f62b

@ -370,6 +370,12 @@ namespace Compiler
mState = EndState;
return true;
}
else if (mState==ShortState || mState==LongState || mState==FloatState)
{
// allow keywords to be used as local variable names. MW script compiler, you suck!
/// \todo option to disable this atrocity.
return parseName (loc.mLiteral, loc, scanner);
}
if (mAllowExpression)
{

Loading…
Cancel
Save