Matchcompiler: Add missing makeConstString (#4179)
This commit is contained in:
parent
e43d2b8a80
commit
e7b5a776bd
|
@ -108,7 +108,7 @@ class MatchCompiler:
|
|||
elif tok == '%str%':
|
||||
return '(tok->tokType() == Token::eString)'
|
||||
elif tok == '%type%':
|
||||
return '(tok->isName() && tok->varId() == 0U && (tok->str() != "delete" || !tok->isKeyword()))'
|
||||
return '(tok->isName() && tok->varId() == 0U && (tok->str() != MatchCompiler::makeConstString("delete") || !tok->isKeyword()))'
|
||||
elif tok == '%name%':
|
||||
return 'tok->isName()'
|
||||
elif tok == '%var%':
|
||||
|
|
Loading…
Reference in New Issue