YANGTOOLS-826: allow whitespace after function name 67/65267/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 7 Nov 2017 14:09:45 +0000 (15:09 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 8 Nov 2017 09:48:36 +0000 (09:48 +0000)
commit323127cf3a2dcab15e3066b415213e29f55f0516
tree02fcf187d3e72ea2dc165e48caea42907775d933
parent0a2d7366079b93c52d8d1ccf520c5ec2b84d6472
YANGTOOLS-826: allow whitespace after function name

As per https://www.w3.org/TR/1999/REC-xpath-19991116/#exprlex:

"For readability, whitespace may be used in expressions even though
not explicitly allowed by the grammar: ExprWhitespace may be freely
added within patterns before or after any ExprToken."

Add optional whitespace to the pattern to allow for this.

Change-Id: Iea5f7c9539734a5b5d3c1bb7367e615af4d1f9cb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/Utils.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/YT826Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/yangtools826/example.yang [new file with mode: 0644]