Force path expression parsing consume all data 45/86545/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 22 Dec 2019 10:20:29 +0000 (11:20 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 22 Dec 2019 12:27:59 +0000 (13:27 +0100)
commit8dc8c85e43be7c78a8aa4081d970e924b9757b3f
tree2cfec7213ca323e940123de7c914a8fedcd38d0d
parentb8a6ab55af0f9894736bfbf0d4c0bae7dda4f249
Force path expression parsing consume all data

We really need to make sure we do not end up ignoring part of the
expression just because our rules are not exhaustive. This adds
the appropriate test and fix in grammar.

JIRA: YANGTOOLS-1049
Change-Id: I85278f0cd109897459be1db029fafbc95e203201
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/antlr4/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefPathParser.g4
yang/yang-parser-rfc7950/src/main/antlr4/org/opendaylight/yangtools/antlrv4/code/gen/LeafRefPathParser.g4
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParserTest.java [new file with mode: 0644]