matchcompiler.py: Added missing parantheses
This commit is contained in:
parent
18b0e14590
commit
688d5d5c54
|
@ -119,7 +119,7 @@ class MatchCompiler:
|
||||||
elif tok == '%name%':
|
elif tok == '%name%':
|
||||||
return 'tok->isName()'
|
return 'tok->isName()'
|
||||||
elif tok == '%var%':
|
elif tok == '%var%':
|
||||||
return 'tok->varId() != 0'
|
return '(tok->varId() != 0)'
|
||||||
elif tok == '%varid%':
|
elif tok == '%varid%':
|
||||||
return '(tok->isName() && tok->varId()==varid)'
|
return '(tok->isName() && tok->varId()==varid)'
|
||||||
elif (len(tok) > 2) and (tok[0] == "%"):
|
elif (len(tok) > 2) and (tok[0] == "%"):
|
||||||
|
|
Loading…
Reference in New Issue