From 47a1122eb8deaadc9400efbcef0a9944fbf6d192 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 14 Jun 2014 10:56:12 +0200 Subject: [PATCH] Updated matchcompiler to latest changes --- tools/matchcompiler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index 87ea1f868..80aedfc6f 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -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()'