mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Parse integer format arguments as variable names
This commit is contained in:
parent
31aa19574b
commit
fef902617a
5 changed files with 13 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue