mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
check for premature end of scripts more consistently
This commit is contained in:
parent
7cc1ebc05b
commit
375d426dd0
@ -387,10 +387,9 @@ namespace Compiler
|
|||||||
if (get (c))
|
if (get (c))
|
||||||
{
|
{
|
||||||
/// \todo hack to allow a space in comparison operators (add option to disable)
|
/// \todo hack to allow a space in comparison operators (add option to disable)
|
||||||
if (c==' ')
|
if (c==' ' && !get (c))
|
||||||
get (c);
|
special = S_cmpEQ;
|
||||||
|
else if (c=='=')
|
||||||
if (c=='=')
|
|
||||||
special = S_cmpEQ;
|
special = S_cmpEQ;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -471,10 +470,9 @@ namespace Compiler
|
|||||||
if (get (c))
|
if (get (c))
|
||||||
{
|
{
|
||||||
/// \todo hack to allow a space in comparison operators (add option to disable)
|
/// \todo hack to allow a space in comparison operators (add option to disable)
|
||||||
if (c==' ')
|
if (c==' ' && !get (c))
|
||||||
get (c);
|
special = S_cmpLT;
|
||||||
|
else if (c=='=')
|
||||||
if (c=='=')
|
|
||||||
{
|
{
|
||||||
special = S_cmpLE;
|
special = S_cmpLE;
|
||||||
|
|
||||||
@ -495,10 +493,9 @@ namespace Compiler
|
|||||||
if (get (c))
|
if (get (c))
|
||||||
{
|
{
|
||||||
/// \todo hack to allow a space in comparison operators (add option to disable)
|
/// \todo hack to allow a space in comparison operators (add option to disable)
|
||||||
if (c==' ')
|
if (c==' ' && !get (c))
|
||||||
get (c);
|
special = S_cmpGT;
|
||||||
|
else if (c=='=')
|
||||||
if (c=='=')
|
|
||||||
{
|
{
|
||||||
special = S_cmpGE;
|
special = S_cmpGE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user