David Michael <fedora....@gmail.com> writes: > Hi, > > 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". > > Can anyone clarify whether the documentation needs to be updated, or > if the currently acceptable syntax is unintentional and should be > avoided? > > Thanks. > > David > > [1] > http://git.savannah.gnu.org/gitweb/?p=guile.git;a=blob;f=doc/ref/api-evaluation.texi;h=a23cf1ae48cf2724d5426eb3e0cf898afbf51604;hb=HEAD#l206 > [2] > http://git.savannah.gnu.org/gitweb/?p=guile.git;a=blob;f=libguile/read.c;h=c2d50afdfda158c8b06c20650009b7f3d175f27f;hb=HEAD#l1391
While I don't know the answer to your question, Guile 2.0.11 already seems to support the #| |# syntax, which has been standardized in R7RS, so I would recommend to use that for block syntax. Syntax highlighting in Emacs's scheme-mode seems to already know it too, in Emacs 24.3. Moreover, it can be nested (both per R7RS, and supported in Guile 2.0.11), whereas #! !# apparently can not. Taylan