Bug 3859: Use of reference keyword in a YANG extension 25/26025/1
authorMartin Ciglan <mciglan@cisco.com>
Fri, 21 Aug 2015 12:48:34 +0000 (14:48 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 26 Aug 2015 14:35:14 +0000 (14:35 +0000)
commitd3b91338dfb818d01d5b7d4b9d306f7e3f6c2e44
tree5fadbb208fc67efbcccafa386a83effbde2fc544
parent76369d9fdc7540f644d36527978e70e0399a253c
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>
(cherry picked from commit e8a7058112bacbafada62cb71fef8207506d38d5)
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]