From 0559d3a73bc2eadb7e965091e3303ecded1839e6 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 10 Sep 2018 20:41:18 -0400 Subject: [PATCH] rebirth: Recognize numbers with decimal points * build-aux/bootstrap/rebirth.scm (tname-verbatim?): Recognize `.' alongside digits. --- build-aux/bootstrap/rebirth.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/bootstrap/rebirth.scm b/build-aux/bootstrap/rebirth.scm index 2f506fa..b6b2d7c 100644 --- a/build-aux/bootstrap/rebirth.scm +++ b/build-aux/bootstrap/rebirth.scm @@ -300,7 +300,7 @@ ;; ;; This only returns #t for numbers. (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