Tokenizer::setVarIdNew: variable declarations dont start with NOT/goto/return/delete/etc
This commit is contained in:
parent
46bfe27831
commit
b0dc708b4d
|
@ -2911,7 +2911,8 @@ void Tokenizer::setVarIdNew()
|
|||
break;
|
||||
|
||||
// Variable declaration can't start with "return", etc
|
||||
if (tok2->str() == "return")
|
||||
if (tok2->str() == "return" || tok2->str() == "NOT" || tok2->str() == "goto" ||
|
||||
tok2->str() == "delete" || tok2->str() == "throw")
|
||||
continue;
|
||||
|
||||
const bool decl = setVarIdParseDeclaration(&tok2, variableId, executableScope.top());
|
||||
|
|
Loading…
Reference in New Issue