forked from mirror/openmw-tes3mp
allow the use of keywords as variable names in more places
This commit is contained in:
parent
b1b0877122
commit
c0a6acfe6c
1 changed files with 6 additions and 0 deletions
|
@ -219,6 +219,12 @@ namespace Compiler
|
||||||
|
|
||||||
bool LineParser::parseKeyword (int keyword, const TokenLoc& loc, Scanner& scanner)
|
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)
|
if (mState==BeginState || mState==ExplicitState)
|
||||||
{
|
{
|
||||||
switch (keyword)
|
switch (keyword)
|
||||||
|
|
Loading…
Reference in a new issue