Problem with parsing list's key statement argument where nodes are separted by new line character, like in this example [1]:
list gen-test-session-allocation {
key "entity-name
test-instance-name
untagged
pcp
color";
Error message:
Caused by: org.opendaylight.yangtools.yang.parser.spi.source.SourceException: Invalid identifier 'entity-name test-instance-name untagged pcp color' [at vendor/ciena/ciena-sat.yang:1854:6]
By YANG ABNF Grammar [2]:
key-arg = node-identifier *(sep node-identifier)
sep = 1*(WSP / line-break)
By RFC6020 list's key Statement documentation [3]:
The "key" statement, which MUST be present if the list represents
configuration, and MAY be present otherwise, takes as an argument a
string that specifies a space-separated list of leaf identifiers of
this list.
[1] - https://github.com/YangModels/yang/blob/master/vendor/ciena/ciena-sat.yang#L1854