mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
Fixing name offsets.
This commit is contained in:
parent
eca3895a00
commit
8f9ba977c3
1 changed files with 2 additions and 1 deletions
|
@ -635,7 +635,8 @@
|
|||
((=> submatch-named)
|
||||
;; Named submatches just record the name for the current
|
||||
;; match and rewrite as a non-named submatch.
|
||||
(set! match-names (cons (cons (cadr sre) current-match) match-names))
|
||||
(set! match-names
|
||||
(cons (cons (cadr sre) (+ 1 current-match)) match-names))
|
||||
(->rx (cons 'submatch (cddr sre)) flags next))
|
||||
((*=> submatch-named-list)
|
||||
(set! match-names (cons (cons (cadr sre) current-match) match-names))
|
||||
|
|
Loading…
Add table
Reference in a new issue