summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/txr/stdlib/match.tl7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/txr/stdlib/match.tl b/share/txr/stdlib/match.tl
index 514b06c6..f429a9c9 100644
--- a/share/txr/stdlib/match.tl
+++ b/share/txr/stdlib/match.tl
@@ -950,7 +950,12 @@
. @rest)
(compile-error *match-form*
"consecutive unbound variables ~s and ~s"
- sym0 sym1)))))
+ sym0 sym1))
+ ((@bad . @rest) (compile-error *match-form*
+ "unsupported syntax ~s"
+ ^(sys:quasi ,bad)))
+ (@else (compile-error *match-form* "bad quasiliteral syntax")))))
+
(with-gensyms (str pos)
^@(and @(require (sys:var ,str)
(stringp ,str))