Update matchcompiler after change in Token::Match (#2653)

The change in token.cpp was done in f6788c047
This should fix the failures in travis.

Co-authored-by: Ken-Patrick Lehrmann <kp.lehrmann@gmail.com>
This commit is contained in:
Ken-Patrick Lehrmann 2020-05-20 21:33:29 +02:00 committed by GitHub
parent fb1afe2345
commit 9a5e53032d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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%':