Tokenizer::setVarIdNew: handle c++ keyword 'using'

This commit is contained in:
Daniel Marjamäki 2012-04-15 18:29:35 +02:00
parent c58d02f146
commit 8f866c6e4c
1 changed files with 1 additions and 1 deletions

View File

@ -2912,7 +2912,7 @@ void Tokenizer::setVarIdNew()
// Variable declaration can't start with "return", etc
if (tok2->str() == "return" || tok2->str() == "NOT" || tok2->str() == "goto" ||
(!isC() && (tok2->str() == "delete" || tok2->str() == "throw")))
(!isC() && (tok2->str() == "delete" || tok2->str() == "throw" || tok2->str() == "using")))
continue;
const bool decl = setVarIdParseDeclaration(&tok2, variableId, executableScope.top());