mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-19 02:37:34 +02:00
Fixed escaped to support the documented double-quoting functionality
when esc-char is #f.
This commit is contained in:
parent
88e8d89460
commit
b3100857fd
1 changed files with 3 additions and 2 deletions
|
@ -41,8 +41,9 @@
|
|||
(let-optionals* o ((quot #\")
|
||||
(esc #\\)
|
||||
(rename (lambda (x) #f)))
|
||||
(let ((quot-str (if (char? quot) (string quot) quot))
|
||||
(esc-str (if (char? esc) (string esc) esc)))
|
||||
(let ((esc-str (cond ((char? esc) (string esc))
|
||||
((not esc) (string quot))
|
||||
(else esc))))
|
||||
(fn (output)
|
||||
(define (output* str)
|
||||
(let ((start (string-cursor-start str))
|
||||
|
|
Loading…
Add table
Reference in a new issue