David Michael <fedora....@gmail.com> skribis:

> The block comment documentation[1] claims that the closing "!#" must
> appear on its own line, but this doesn't actually seem to be the
> case[2].  For example, the line "(display #! comment !# 1)"
> successfully outputs "1".

Yes, reader.test even has this:

--8<---------------cut here---------------start------------->8---
  (pass-if "block comment"
    (equal? '(+ 1 2 3)
            (read-string "(+ 1 #! this is a\ncomment !# 2 3)")))
--8<---------------cut here---------------end--------------->8---

> Can anyone clarify whether the documentation needs to be updated, or
> if the currently acceptable syntax is unintentional and should be
> avoided?

It’s the documentation that needs to be updated.
Done in commit 1e9249e.

Thanks,
Ludo’.

Reply via email to