Force instanceIdentifier to consume all input
[yangtools.git] / xpath / yang-xpath-impl / src / main / antlr4 / org / opendaylight / yangtools / yang / xpath / antlr / instanceIdentifier.g4
index 200130599be60a5f788315d8d692fb32859ae4f4..389cc4437668a9a12b0927e6438f7eafaec60085 100644 (file)
@@ -10,7 +10,7 @@ grammar instanceIdentifier;
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-instanceIdentifier : ('/' pathArgument)+
+instanceIdentifier : ('/' pathArgument)+ EOF
   ;
 
 pathArgument : nodeIdentifier predicate?