From 27e873b133e3eafe4a158ecbb2fdb17d296a5700 Mon Sep 17 00:00:00 2001 From: "Jakub T. Jankiewicz" Date: Fri, 22 Oct 2021 14:43:55 +0200 Subject: [PATCH] Update Scheme syntax for reals According to R7RS spec, you can use different mnemonics for the scientific notation that indicated the precision of the number. --- components/prism-scheme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/prism-scheme.js b/components/prism-scheme.js index ce2d9f7a9f..681da1b84c 100644 --- a/components/prism-scheme.js +++ b/components/prism-scheme.js @@ -70,7 +70,7 @@ // non-decimal bases together. This results in a decimal (dec) and combined binary, octal, and hexadecimal (box) // pattern: pattern: RegExp(SortedBNF({ - '': /\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/.source, + '': /\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source, '': /[+-]?|[+-](?:inf|nan)\.0/.source, '': /[+-](?:|(?:inf|nan)\.0)?i/.source, '': /(?:@|)?|/.source,