guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 05/07: Fix unterminated #!...!# error message in Scheme


From: Andy Wingo
Subject: [Guile-commits] 05/07: Fix unterminated #!...!# error message in Scheme reader
Date: Wed, 3 Mar 2021 11:09:28 -0500 (EST)

wingo pushed a commit to branch master
in repository guile.

commit 079800d68291b27a7c9b66d183bf79eb22808fc5
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Wed Mar 3 16:20:53 2021 +0100

    Fix unterminated #!...!# error message in Scheme reader
    
    * module/ice-9/read.scm (%read): Tweak "unterminated block constant"
    error to be more compatible with C reader.
---
 module/ice-9/read.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/ice-9/read.scm b/module/ice-9/read.scm
index 8a6c56c..7ce4b41 100644
--- a/module/ice-9/read.scm
+++ b/module/ice-9/read.scm
@@ -755,7 +755,7 @@
     (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 #\#)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]