rebirth: Recognize numbers without digit before decimal point
* bootstrap/rebirth.scm (tname-verbatim?): Match numbers that have no digit preceding the decimal point, so long as digits follow it.master
parent
ba93b7c034
commit
84345fab58
|
@ -300,7 +300,7 @@
|
|||
;;
|
||||
;; This only returns #t for numbers.
|
||||
(define (tname-verbatim? name)
|
||||
(es:match (es:regexp "^-?\\d+(\.\\d+)?$") name))
|
||||
(es:match (es:regexp "^-?(\\d+(\\.\\d+)?|\\.\\d+)$") name))
|
||||
|
||||
|
||||
;; Generate ECMAScript to reference the variable associated with the token T
|
||||
|
|
Loading…
Reference in New Issue