We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b9daad commit 47a1122Copy full SHA for 47a1122
1 file changed
tools/matchcompiler.py
@@ -113,8 +113,7 @@ def _compileCmd(self, tok):
113
return '(tok->type()==Token::eString)'
114
elif tok == '%type%':
115
return (
116
- '(tok->isName() && tok->varId()==0U && (tok->str() != ' +
117
- self._insertMatchStr('delete') + '/* delete */ || !Token::isCPP()))'
+ '(tok->isName() && tok->varId()==0U && !tok->isKeyword())'
118
)
119
elif tok == '%var%':
120
return 'tok->isName()'
0 commit comments