diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-03 07:50:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-03 07:50:41 -0700 |
commit | 8cbd3cde98df5f20794ec055df3fedb988d5c1ce (patch) | |
tree | 5573964a667712159ff052a2038f4bb9224fccb1 /rand.h | |
parent | c12f969791bec0b2d6e985193c67b1f79db99ccc (diff) | |
download | txr-8cbd3cde98df5f20794ec055df3fedb988d5c1ce.tar.gz txr-8cbd3cde98df5f20794ec055df3fedb988d5c1ce.tar.bz2 txr-8cbd3cde98df5f20794ec055df3fedb988d5c1ce.zip |
json: fix quasiquote print-read consistency issue
* lib.c (out_json_rec): When printing keys that might be
potentially quasiquoted symbols that look like ~abc, we
must avoid the condensed {~abc:~def} style. This is because
abd:~def looks like a single symbol, where abc is a package
qualifier. To be safe and readable at the same time, we add
spaces whenever either the key or the value are conses,
indicating non-JSON syntax. Spaces are added on both sides of
the colon, and also after the preceding comma, if there
is a previous item.
Diffstat (limited to 'rand.h')
0 files changed, 0 insertions, 0 deletions