This commit is contained in:
Kovid Goyal 2018-05-04 08:02:33 +05:30
parent cd56a25bb9
commit 78d6bbe25e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -221,8 +221,7 @@ class Parser(object):
return ['and', lhs, self.and_expression()]
# Account for the optional 'and'
if ((self.token_type() in [self.WORD, self.QUOTED_WORD] or self.token() == '(')
and self.lcase_token() != 'or'):
if ((self.token_type() in [self.WORD, self.QUOTED_WORD] or self.token() == '(') and self.lcase_token() != 'or'):
return ['and', lhs, self.and_expression()]
return lhs