xform: fix character parsing

Allow L'\x7f`, for example.
This commit is contained in:
Matthew Flatt 2015-06-06 09:32:37 -06:00
parent 4deacddde8
commit 26e1dd050d

View File

@ -371,6 +371,11 @@
(cond
[(not simple)
(cond
[(regexp-match-positions char-complex s p)
=> (lambda (m)
(loop (cdar m)
(cons (character (subbytes s (caar m) (cdar m)))
result)))]
[(regexp-match-positions symbol-complex s p)
=> (lambda (m)
(loop (cdar m)
@ -381,11 +386,6 @@
(loop (cdar m)
(cons (number (subbytes s (caar m) (cdar m)))
result)))]
[(regexp-match-positions char-complex s p)
=> (lambda (m)
(loop (cdar m)
(cons (character (subbytes s (caar m) (cdar m)))
result)))]
[(regexp-match-positions string-complex s p)
=> (lambda (m)
(loop (cdar m)