Treat commas in scripts as whitespace

This commit is contained in:
Evil Eye 2021-11-13 14:06:21 +01:00
parent 9a00984561
commit bee94e2afc
12 changed files with 36 additions and 101 deletions

View file

@ -244,7 +244,6 @@ namespace Compiler
}
else
{
// no comma was used between arguments
scanner.putbackInt (value, loc);
return false;
}
@ -267,7 +266,6 @@ namespace Compiler
}
else
{
// no comma was used between arguments
scanner.putbackFloat (value, loc);
return false;
}
@ -343,7 +341,6 @@ namespace Compiler
}
else
{
// no comma was used between arguments
scanner.putbackName (name, loc);
return false;
}
@ -452,7 +449,6 @@ namespace Compiler
}
else
{
// no comma was used between arguments
scanner.putbackKeyword (keyword, loc);
return false;
}
@ -487,22 +483,6 @@ namespace Compiler
return Parser::parseSpecial (code, loc, scanner);
}
if (code==Scanner::S_comma)
{
mTokenLoc = loc;
if (mFirst)
{
// leading comma
mFirst = false;
return true;
}
// end marker
scanner.putbackSpecial (code, loc);
return false;
}
mFirst = false;
if (code==Scanner::S_newline)
@ -539,7 +519,6 @@ namespace Compiler
}
else
{
// no comma was used between arguments
scanner.putbackSpecial (code, loc);
return false;
}