rebirth: Recognize numbers with decimal points
* build-aux/bootstrap/rebirth.scm (tname-verbatim?): Recognize `.' alongside digits.master
parent
b9f8e24ec2
commit
0559d3a73b
|
@ -300,7 +300,7 @@
|
||||||
;;
|
;;
|
||||||
;; This only returns #t for numbers.
|
;; This only returns #t for numbers.
|
||||||
(define (tname-verbatim? name)
|
(define (tname-verbatim? name)
|
||||||
(es:match (es:regexp "^\\d+$") name))
|
(es:match (es:regexp "^-?\\d+(\.\\d+)?$") name))
|
||||||
|
|
||||||
|
|
||||||
;; Generate ECMAScript to reference the variable associated with the token T
|
;; Generate ECMAScript to reference the variable associated with the token T
|
||||||
|
|
Loading…
Reference in New Issue