mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 01:36:44 +00:00
ignore stray else and endif in scripts
This commit is contained in:
parent
697bda6371
commit
6a5d88b640
1 changed files with 12 additions and 0 deletions
|
@ -332,6 +332,18 @@ namespace Compiler
|
||||||
Generator::stopScript (mCode);
|
Generator::stopScript (mCode);
|
||||||
mState = EndState;
|
mState = EndState;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case Scanner::K_else:
|
||||||
|
|
||||||
|
getErrorHandler().warning ("stay else (ignoring it)", loc);
|
||||||
|
mState = EndState;
|
||||||
|
return true;
|
||||||
|
|
||||||
|
case Scanner::K_endif:
|
||||||
|
|
||||||
|
getErrorHandler().warning ("stay endif (ignoring it)", loc);
|
||||||
|
mState = EndState;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mState==SetLocalVarState && keyword==Scanner::K_to)
|
else if (mState==SetLocalVarState && keyword==Scanner::K_to)
|
||||||
|
|
Loading…
Reference in a new issue