summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTai Chi Minh Ralph Eastwood <caffe@disroot.org>2024-02-03 16:21:44 +0100
committerTai Chi Minh Ralph Eastwood <caffe@disroot.org>2024-02-03 16:23:42 +0100
commiteba4b0890fcb86f2ec0ec92b1f0602d356985e7d (patch)
tree9679595edac75ebce661d5312df3cf460c813cbe
parenteac3ad039240dd16fb55d7b017c9dcefbca210b3 (diff)
Fix non-C operator parsing
$ and @ should not be treated as C operators since they belong to cmacro. Fixes #11
-rw-r--r--src/parser.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.lisp b/src/parser.lisp
index 3ef960b..3875fa1 100644
--- a/src/parser.lisp
+++ b/src/parser.lisp
@@ -167,7 +167,7 @@
(defrule group-separator (group-separatorp character))
-(defrule op-char (not (or alphanumeric group-separator whitespace)))
+(defrule op-char (not (or alphanumeric group-separator whitespace #\$ #\@)))
(defrule operator (+ op-char)
(:lambda (list &bounds start-pos)