Force instanceIdentifier to consume all input 51/103951/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 3 Jan 2023 19:25:10 +0000 (20:25 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 6 Jan 2023 16:09:21 +0000 (17:09 +0100)
commit977dd428ce02b8493506cc06fb6a1da53e8985fb
treed4368c9e23275178fb590a3a465b3c7f04efc7ce
parent3197c0ef0de6fc063d9723ac52676caaf26d9a23
Force instanceIdentifier to consume all input

We need ANTLR to completely process the input string, hence force an EOF
token in instanceIdentifier.

JIRA: YANGTOOLS-1361
Change-Id: I80f1b326a47857e4e8f36c568901d19f771cef96
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 9eda34f44f1fc1027c357ad02923484e16b6ac0c)
xpath/yang-xpath-impl/src/main/antlr4/org/opendaylight/yangtools/yang/xpath/antlr/instanceIdentifier.g4