mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 11:39:41 +00:00
allow <== and >== as alternative for <= and >= in scripts
This commit is contained in:
parent
6f0ccb6e38
commit
63407a662c
1 changed files with 10 additions and 0 deletions
|
@ -428,7 +428,12 @@ namespace Compiler
|
||||||
if (get (c))
|
if (get (c))
|
||||||
{
|
{
|
||||||
if (c=='=')
|
if (c=='=')
|
||||||
|
{
|
||||||
special = S_cmpLE;
|
special = S_cmpLE;
|
||||||
|
|
||||||
|
if (get (c) && c!='=') // <== is a allowed as an alternative to <= :(
|
||||||
|
putback (c);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
putback (c);
|
putback (c);
|
||||||
|
@ -443,7 +448,12 @@ namespace Compiler
|
||||||
if (get (c))
|
if (get (c))
|
||||||
{
|
{
|
||||||
if (c=='=')
|
if (c=='=')
|
||||||
|
{
|
||||||
special = S_cmpGE;
|
special = S_cmpGE;
|
||||||
|
|
||||||
|
if (get (c) && c!='=') // >== is a allowed as an alternative to >= :(
|
||||||
|
putback (c);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
putback (c);
|
putback (c);
|
||||||
|
|
Loading…
Reference in a new issue