This article nicely illustrates my beef with YAML; namely, the YAML grammar is far too complicated. Complexity in data serialization and exchange formats should be avoided, because it virtually guarantees subtle interoperability problems.
If you need to exchange structured data in a language-agnostic format, do me a favor and use JSON instead.