matchcompiler.py: Added missing parantheses

This commit is contained in:
PKEuS 2015-01-31 12:36:22 +01:00
parent 18b0e14590
commit 688d5d5c54
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class MatchCompiler:
elif tok == '%name%':
return 'tok->isName()'
elif tok == '%var%':
return 'tok->varId() != 0'
return '(tok->varId() != 0)'
elif tok == '%varid%':
return '(tok->isName() && tok->varId()==varid)'
elif (len(tok) > 2) and (tok[0] == "%"):