Subject: | YAML crashes when tab used for indenting |
Even in the latest version, 0.39, YAML fails when tabulator characters are used for indenting. This is expected since the YAML spec forbids this use of tab characters. However, there is no error message; YAML.pm just dies. Here's an example:
perl -MYAML -e "YAML::Load(\"Testing:\n\t- Item1\n\")"
fails with
Died at U:\perl-lib\lib/YAML.pm line 1417.
It should at least fail with a message like it does when there's no newline at the end:
--- !perl/YAML::Error
code: YAML_PARSE_ERR_NO_FINAL_NEWLINE
msg: Stream does not end with newline character
line: 0
...
at -e line 1