Bug 3859: Use of reference keyword in a YANG extension 80/25680/1
authorMartin Ciglan <mciglan@cisco.com>
Fri, 21 Aug 2015 12:48:34 +0000 (14:48 +0200)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 22 Aug 2015 03:31:11 +0000 (23:31 -0400)
commit38f234f903d5bbae11cc171a79ee96602cf1dd0a
tree1af2d645a1f29d8a9ee81416a2b74dd514cba3d9
parent267961c7f3b195181c57db02cbc739d144b6c896
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: I5adb72172e4a2dc403342c768ffbc3dabcd0efe7
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]