Ludovic Courtès ebda12e1d2
read-print: Report missing closing parens instead of looping.
Fixes <https://issues.guix.gnu.org/57093>.
Reported by Mohammed AMAR-BENSABER <renken@shione.net>.

Previously 'read-with-comments' would enter an infinite loop.

* guix/read-print.scm (read-with-comments)[missing-closing-paren-error]:
New procedure.
Call it when 'loop' as called from 'liip' returns EOF.
* tests/read-print.scm ("read-with-comments: missing closing paren"):
New test.
2022-08-10 16:53:58 +02:00
..
2021-09-17 01:27:40 +02:00
2022-05-22 01:07:52 +02:00
2022-05-25 09:28:43 +02:00
2022-02-14 11:23:07 +01:00
2021-09-28 22:00:47 +02:00
2022-05-25 09:28:43 +02:00
2022-06-15 10:18:34 +02:00
2021-12-23 10:54:00 +01:00
2022-07-10 23:57:14 +02:00
2022-07-01 12:10:29 +02:00