allow use of IDs as function arguments, even if the ID matches a keyword (Fixes #2830)

This commit is contained in:
Marc Zinnschlag 2015-08-05 17:20:01 +02:00
parent 8c8c5328dc
commit cbf9f83b85
4 changed files with 48 additions and 2 deletions

View file

@ -353,7 +353,10 @@ namespace Compiler
if (extensions->isInstruction (keyword, argumentType, hasExplicit))
{
// pretend this is not a keyword
return parseName (loc.mLiteral, loc, scanner);
std::string name = loc.mLiteral;
if (name.size()>=2 && name[0]=='"' && name[name.size()-1]=='"')
name = name.substr (1, name.size()-2);
return parseName (name, loc, scanner);
}
}