Add support for R6RS/SRFI-30 nested block comments.
authorLudovic Courtès <ludo@gnu.org>
Mon, 19 Oct 2009 20:38:34 +0000 (22:38 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 19 Oct 2009 20:40:01 +0000 (22:40 +0200)
commit620c89651ae54f8f35c3d0926f8c2c36c3fdd174
tree534c09fcdc42fdeba146ba5d32326c38b1b0f0d2
parentcbeb479c6e4da67ef37efa2548713fd6eadc71f3
Add support for R6RS/SRFI-30 nested block comments.

Suggested by Andreas Rottmann <a.rottmann@gmx.at>.

* libguile/read.c (flush_ws, scm_read_sharp): Add support for
  R6RS/SRFI-30 block comments.
  (scm_read_r6rs_block_comment): New function.

* test-suite/tests/reader.test (exception:unterminated-block-comment):
  Adjust to match both block comment styles.
  ("reading")["R6RS/SRFI-30 block comment", "R6RS/SRFI-30 nested block
  comment", "R6RS/SRFI-30 block comment syntax overridden"]: New tests.
  ("exceptions")["R6RS/SRFI-30 unterminated nested block comment"]: New
  test.

* doc/ref/api-evaluation.texi (Block Comments): Mention SRFI-30/R6RS
  block comments.

* doc/ref/srfi-modules.texi (SRFI-30): New node.
doc/ref/api-evaluation.texi
doc/ref/srfi-modules.texi
libguile/read.c
test-suite/tests/reader.test