Skip to content

Commit

Permalink
Fix eq? on characters in irregex-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Weinholt committed Jul 27, 2019
1 parent e0d4ba8 commit 0b4596e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irregex-utils.scm
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@
(display "]" out))
((- & / ~)
(cond
((or (eq? #\~ (car x))
((or (eqv? #\~ (car x))
(and (eq? '- (car x)) (pair? (cdr x)) (eq? 'any (cadr x))))
(display "[^" out)
(display (cset->string (if (eq? #\~ (car x)) (cdr x) (cddr x))) out)
(display (cset->string (if (eqv? #\~ (car x)) (cdr x) (cddr x))) out)
(display "]" out))
(else
(lp `(cset ,@(sre->cset x))))))
Expand Down

0 comments on commit 0b4596e

Please sign in to comment.