Correct and/or/div/mod in path expressions 17/99117/4
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 19 Dec 2021 09:35:17 +0000 (10:35 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 19 Dec 2021 17:03:18 +0000 (18:03 +0100)
commit1a7e93a50d22944771fe2ea4fc18c24fcf3aae11
treeca572e8dfe00d0cc4355e14cf70547909512d50b
parentefa1609236b684b553d58634bff3983ab2e354e9
Correct and/or/div/mod in path expressions

The grammar is creating implicit lexer tokens for and/or/div/mod, which
take precedence overt NCName. Make sure we define these tokens
explicitly and allow them to be an alternative wherever NCName is
valid.

JIRA: YANGTOOLS-1387
Change-Id: I4f4f26fe0f8bc27614b769b465a76696a49ad7c2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
xpath/yang-xpath-antlr/src/main/antlr4/org/opendaylight/yangtools/yang/xpath/antlr/xpath.g4
xpath/yang-xpath-impl/src/test/java/org/opendaylight/yangtools/yang/xpath/impl/XPathParserTest.java