Skip to content

Commit 47a1122

Browse files
committed
Updated matchcompiler to latest changes
1 parent 8b9daad commit 47a1122

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tools/matchcompiler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ def _compileCmd(self, tok):
113113
return '(tok->type()==Token::eString)'
114114
elif tok == '%type%':
115115
return (
116-
'(tok->isName() && tok->varId()==0U && (tok->str() != ' +
117-
self._insertMatchStr('delete') + '/* delete */ || !Token::isCPP()))'
116+
'(tok->isName() && tok->varId()==0U && !tok->isKeyword())'
118117
)
119118
elif tok == '%var%':
120119
return 'tok->isName()'

0 commit comments

Comments
 (0)