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:
parent
fb1afe2345
commit
9a5e53032d
|
@ -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%':
|
||||
|
|
Loading…
Reference in New Issue