Fixed missing XPathLexer.STRING case

This commit is contained in:
João Henrique 2019-09-04 15:33:24 -03:00
parent 4c2f091e8c
commit ae2a689a68
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class XPath(object):
else:
el = next_el
# Add searched element
if el.type in [XPathLexer.TOKEN_REF, XPathLexer.RULE_REF, XPathLexer.WILDCARD]:
if el.type in [XPathLexer.TOKEN_REF, XPathLexer.RULE_REF, XPathLexer.WILDCARD, XPathLexer.STRING]:
element = self.getXPathElement(el, anywhere)
element.invert = invert
elements.append(element)