summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2024-10-19 20:13:01 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2024-10-19 20:13:01 -0300
commit79bb353553756604def9c494b13a9446887bc2e0 (patch)
tree5ec25e9fc9e455cc34f69ca567d28b535c548382
parent16169311d2d39d82a799fd90c77c829767842c9d (diff)
downloadmonparser-79bb353553756604def9c494b13a9446887bc2e0.tar.gz
monparser-79bb353553756604def9c494b13a9446887bc2e0.zip
Make surrounded relevant
-rw-r--r--extra.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra.lisp b/extra.lisp
index 67d057c..4a67d84 100644
--- a/extra.lisp
+++ b/extra.lisp
@@ -51,8 +51,8 @@
nothing)))
(cons v vn)))
-(defun surrounded (p left right)
+(defun surrounded (p left &optional right)
(comp ((_ left)
(body p)
- (_ right))
+ (_ (or right left)))
body))