Updated matchcompiler to latest changes

This commit is contained in:
PKEuS 2014-06-14 10:56:12 +02:00
parent 8b9daadd25
commit 47a1122eb8
1 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,7 @@ class MatchCompiler:
return '(tok->type()==Token::eString)'
elif tok == '%type%':
return (
'(tok->isName() && tok->varId()==0U && (tok->str() != ' +
self._insertMatchStr('delete') + '/* delete */ || !Token::isCPP()))'
'(tok->isName() && tok->varId()==0U && !tok->isKeyword())'
)
elif tok == '%var%':
return 'tok->isName()'