mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 14:07:34 +02:00
Adding support for (char-set <string>) pattern.
This commit is contained in:
parent
4012cbdb36
commit
85c7fb9990
1 changed files with 2 additions and 1 deletions
|
@ -589,6 +589,7 @@
|
|||
(if (string? (car sre))
|
||||
(string->char-set (car sre))
|
||||
(case (car sre)
|
||||
((char-set) (string->char-set (cadr sre)))
|
||||
((/ char-range)
|
||||
(->cs
|
||||
`(or ,@(map (lambda (x)
|
||||
|
@ -783,7 +784,7 @@
|
|||
(state-match-set! n2 (list index num current-match))
|
||||
(state-match-rule-set! n2 'list)
|
||||
n1)))
|
||||
((~ - & / complement difference and char-range)
|
||||
((~ - & / complement difference and char-range char-set)
|
||||
(make-char-state (sre->char-set sre flags) ~none next))
|
||||
((word)
|
||||
(->rx `(: bow ,@(cdr sre) eow) flags next))
|
||||
|
|
Loading…
Add table
Reference in a new issue