YAML parsing deadlocks when schema ends in comment
Brought to you by:
kwatch
Hi,
I don't know if this is a misunderstanding about YAML's syntax subleties on my side, but in either case I think the following schema/file pair shouldn't deadlock :)
-- schema.yml --
type: map
mapping:
"id":
type: str
# This file ends on this line, no newline following this comment!
-- file.yml --
id: foo
The deadlock goes away by either removing the comment, or by putting a line break at its end.
- Julian (julian@raschke.de)