[yaml mode] Comments must be preceded by whitespace

Closes #1516