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

Fix (ice-9 read) for #!r6rs

* module/ice-9/read.scm (read): Fix read-directive.
This commit is contained in:
Andy Wingo 2021-02-14 22:01:42 +01:00
parent 40e4e3b2a4
commit 5275156b00

View file

@ -759,7 +759,9 @@
(else (else
(string->symbol (string->symbol
(take-while ch (lambda (ch) (take-while ch (lambda (ch)
(or (eqv? ch #\-) (char-alphabetic? ch))))))))) (or (eqv? ch #\-)
(char-alphabetic? ch)
(char-numeric? ch)))))))))
(define (skip-scsh-comment) (define (skip-scsh-comment)
(let lp ((ch (next))) (let lp ((ch (next)))