fix bug in names that begin with _r

This commit is contained in:
Robby Findler 2014-08-07 03:05:49 -05:00
parent ec5ccb0a8b
commit a4fbb4ee4c
2 changed files with 11 additions and 3 deletions

View File

@ -301,11 +301,11 @@
(set! ellipsis-number (+ ellipsis-number 1))
(values (format "..._r~a" ellipsis-number) #f)]
[(regexp-match? #rx"^[.][.][.]_r" ellipsis-pre-str)
(values (string-append (substring ellipsis-str 0 4)
(values (string-append (substring ellipsis-pre-str 0 4)
"r"
(substring ellipsis-str
(substring ellipsis-pre-str
4
(string-length ellipsis-str)))
(string-length ellipsis-pre-str)))
#t)]
[(regexp-match? #rx"^[.][.][.]_" ellipsis-pre-str)
(values ellipsis-pre-str #t)]

View File

@ -588,6 +588,14 @@
#f))
(let ()
(test (and (redex-match
empty-language
(natural ..._r)
(term ()))
#t)
#t))
;
;
; ;;; ;