diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index 412d5d250..6e333cffe 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -108,7 +108,7 @@ class MatchCompiler: elif tok == '%str%': return '(tok->tokType()==Token::eString)' elif tok == '%type%': - return '(tok->isName() && tok->varId()==0U && !tok->isKeyword())' + return '(tok->isName() && tok->varId()==0U && (tok->str() != "delete" || !tok->isKeyword()))' elif tok == '%name%': return 'tok->isName()' elif tok == '%var%':