diff options
author | Michael Gran <spk121@yahoo.com> | 2010-01-10 15:41:37 -0800 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2010-01-10 15:41:37 -0800 |
commit | 67a4a16d8e4418f0525b580c157c1295ca1563fc (patch) | |
tree | 7c617600a82087fd4e61e94064c0a7e1acbcdfb5 /libguile/read.c | |
parent | 15b6a6b284f00fa790ef003a9df8c8ae5a4d7d6a (diff) | |
download | guile-67a4a16d8e4418f0525b580c157c1295ca1563fc.tar.gz |
Add R6RS backspace string escape
R6RS suggests that '\b' should be a string escape for the backspace
character.
* libguile/read.c (scm_read_string): parse backspace escape
* test-suite/tests/strings.test (R6RS backslash escapes): new test
(Guile extensions backslash escapes): remove R6RS escapes from test.
* doc/ref/api-data.texi (Strings): document new string escape
Diffstat (limited to 'libguile/read.c')
-rw-r--r-- | libguile/read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libguile/read.c b/libguile/read.c index dedfed2fe..25aed5458 100644 --- a/libguile/read.c +++ b/libguile/read.c @@ -477,6 +477,9 @@ scm_read_string (int chr, SCM port) case 'v': c = '\v'; break; + case 'b': + c = '\010'; + break; case 'x': { scm_t_wchar a, b; |