Fix unterminated #!...!# error message in Scheme reader
authorAndy Wingo <wingo@pobox.com>
Wed, 3 Mar 2021 15:20:53 +0000 (16:20 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 3 Mar 2021 15:22:56 +0000 (16:22 +0100)
* module/ice-9/read.scm (%read): Tweak "unterminated block constant"
error to be more compatible with C reader.

module/ice-9/read.scm

index 8a6c56c8b2f8c2d239d4735e072a089b56138f10..7ce4b416a82d1fcc9dfa70bc0ba719ee11783b69 100644 (file)
     (let lp ((ch (next)))
       (cond
        ((eof-object? ch)
-        (error "unexpected end of input while looking for !#"))
+        (error "unterminated `#! ... !#' comment"))
        ((eqv? ch #\!)
         (let ((ch (next)))
           (if (eqv? ch #\#)