KenKundert / nestedtext

Human readable and writable data interchange format
https://nestedtext.org
MIT License
375 stars 13 forks source link

Always quote keys which start with a quote #15

Closed george-hopkins closed 4 years ago

george-hopkins commented 4 years ago

Keys which begin with a quote need to be escaped because a value (e.g. x': y) might form a correctly quoted key if the text is read again. Alternatively, one could output the inline value on a separate line. However, I haven't found any case in which quoting does any harm and would reduce the set of allowed keys.

KenKundert commented 4 years ago

Good catch. Thanks George.