Bug 3859: Use of reference keyword in a YANG extension 71/25571/1
authorMartin Ciglan <mciglan@cisco.com>
Fri, 21 Aug 2015 12:48:34 +0000 (14:48 +0200)
committerMartin Ciglan <mciglan@cisco.com>
Fri, 21 Aug 2015 12:48:34 +0000 (14:48 +0200)
commite8a7058112bacbafada62cb71fef8207506d38d5
tree0532d41ecf887ec4544e097da3cbf419eef9e73f
parent8aa174530a928c5522d280e57b7926b014656b8f
Bug 3859: Use of reference keyword in a YANG extension
    causes YangSyntaxErrorException

Once reference or any other yang statement is defined within use of
extension (unknown statement), this should be correctly parsed
as another unknown statement. This behavior has been
added to RFC6020 ANTLR grammar and tested.

Change-Id: I3eed81e67ba6192e2c98154e7e6800215b1cc4bf
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
yang/yang-parser-impl/src/main/antlr/YangParser.g4
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/Bug3859Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug3859/bug3859.yang [new file with mode: 0644]