Description: |
The yaml parser v0.3.6 (tcllib cvs head) accepts the following invalid YAML text:
list-no-comma: [ "a" "b" "c" ]
It returns {list-no-comma {a b c}} whereas it should throw an error complaining about the lack of commas between the quoted list elements.
Entering the above string into the online YAML validator/parser at
http://yaml-online-parser.appspot.com/
returns:
ERROR:
while parsing a flow sequence
in "<unicode string>", line 1, column 16:
list-no-comma: [ "a" "b" "c" ]
^
expected ',' or ']', but got '<scalar>'
in "<unicode string>", line 1, column 22:
list-no-comma: [ "a" "b" "c" ]
^
The second block in the error report is the important one.
|