mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:23:51 +00:00
allowed the use of keywords as script names (*sigh*)
This commit is contained in:
parent
a61b2c39f0
commit
5786addab5
1 changed files with 9 additions and 0 deletions
|
@ -59,6 +59,15 @@ namespace Compiler
|
||||||
return true;
|
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);
|
return Parser::parseKeyword (keyword, loc, scanner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue