Parse integer format arguments as variable names

This commit is contained in:
Evil Eye 2021-10-24 17:23:15 +02:00
parent 31aa19574b
commit fef902617a
5 changed files with 13 additions and 6 deletions

View file

@ -632,7 +632,7 @@ namespace Compiler
}
int ExprParser::parseArguments (const std::string& arguments, Scanner& scanner,
std::vector<Interpreter::Type_Code>& code, int ignoreKeyword)
std::vector<Interpreter::Type_Code>& code, int ignoreKeyword, bool expectNames)
{
bool optional = false;
int optionalCount = 0;
@ -717,6 +717,8 @@ namespace Compiler
if (optional)
parser.setOptional (true);
if(expectNames)
scanner.enableExpectName();
scanner.scan (parser);