forked from jasder/antlr
Fixed missing XPathLexer.STRING case
This commit is contained in:
parent
4c2f091e8c
commit
ae2a689a68
|
@ -192,7 +192,7 @@ class XPath(object):
|
||||||
else:
|
else:
|
||||||
el = next_el
|
el = next_el
|
||||||
# Add searched element
|
# 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 = self.getXPathElement(el, anywhere)
|
||||||
element.invert = invert
|
element.invert = invert
|
||||||
elements.append(element)
|
elements.append(element)
|
||||||
|
|
Loading…
Reference in New Issue