Cater to dynamic subforms of SUBMATCH.
This commit is contained in:
parent
c5c913b129
commit
a8ad3e0c71
|
@ -182,7 +182,12 @@
|
|||
(hygn-eq? 'seq))
|
||||
(non-cset) (parse-seq (cdr sre)))
|
||||
|
||||
((hygn-eq? 'submatch) (non-cset) (re-submatch (parse-seq (cdr sre))))
|
||||
((hygn-eq? 'submatch)
|
||||
(non-cset)
|
||||
(let ((seq (parse-seq (cdr sre))))
|
||||
(if (static-regexp? seq)
|
||||
(re-submatch seq)
|
||||
`(,(r 're-submatch) ,(regexp->scheme seq r)))))
|
||||
((hygn-eq? 'dsm) (non-cset) (re-dsm (parse-seq (cdddr sre))
|
||||
(cadr sre)
|
||||
(caddr sre)))
|
||||
|
|
Loading…
Reference in New Issue