1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 20:30:28 +02:00

Add new R4RS-compliant syntax for keywords.

* read.c (scm_lreadr): Recognize `#:' as a prefix for keywords,
regardless of the setting of the `keywords' read option.
* kw.c (prin_kw): Print keywords using the `#:' syntax, so they
can be re-read no matter what the setting of the `keywords' read
option.
This commit is contained in:
Jim Blandy 1997-05-27 23:58:26 +00:00
parent 995685aa70
commit 50a095f1c8
2 changed files with 8 additions and 1 deletions

View file

@ -68,7 +68,7 @@ prin_kw (exp, port, pstate)
SCM port;
scm_print_state *pstate;
{
scm_gen_puts (scm_regular_string, ":", port);
scm_gen_puts (scm_regular_string, "#:", port);
scm_gen_puts((SCM_MB_STRINGP(SCM_CDR (exp))
? scm_mb_string
: scm_regular_string),