Fix (ice-9 read) for #!r6rs
authorAndy Wingo <wingo@pobox.com>
Sun, 14 Feb 2021 21:01:42 +0000 (22:01 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 14 Feb 2021 21:01:42 +0000 (22:01 +0100)
* module/ice-9/read.scm (read): Fix read-directive.

module/ice-9/read.scm

index bf4ed2f94f7f685d6d8480622a00d2ce339aba33..808aa93368a0c46cc8429001e69b02f84bc21095 100644 (file)
        (else
         (string->symbol
          (take-while ch (lambda (ch)
-                          (or (eqv? ch #\-) (char-alphabetic? ch)))))))))
+                          (or (eqv? ch #\-)
+                              (char-alphabetic? ch)
+                              (char-numeric? ch)))))))))
 
   (define (skip-scsh-comment)
     (let lp ((ch (next)))