Fix bug in set difference.
svn: r2170
This commit is contained in:
parent
4884ac0cab
commit
5fe7041f17
|
@ -285,10 +285,9 @@ operators:
|
|||
> (: re ...) concatenation
|
||||
> (seq re ...) concatenation
|
||||
> (& re ...) intersection
|
||||
> (- re re ...) set difference
|
||||
> (~ re ...) character set complement, each given regexp must match
|
||||
exactly one character
|
||||
> (- re re ...) character set difference, each given regexp must match
|
||||
exactly one character
|
||||
> (/ char-or-string ...)
|
||||
character ranges, matches characters between successive
|
||||
pairs of chars.
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
((_ re ...)
|
||||
(char-complement (union re ...)))))
|
||||
|
||||
;; char-set difference
|
||||
;; set difference
|
||||
(define-lex-trans (sre-- stx)
|
||||
(syntax-case stx ()
|
||||
((_)
|
||||
|
@ -81,7 +81,7 @@
|
|||
"must have at least one argument"
|
||||
stx))
|
||||
((_ big-re re ...)
|
||||
(syntax (intersect big-re (~ (union re) ...))))))
|
||||
(syntax (& big-re (complement (union re ...)))))))
|
||||
|
||||
(define-lex-trans (sre-/ stx)
|
||||
(syntax-case stx ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user