The syntax highlighting of the JSON document
[1.23, 1.2e3]
marks 3 and e3 with error coloring (white on red), but both numbers are valid JSON.
The error is in the following rule:
:integer Number
* end noeat
"0-9" integer
"." decimalpoint
"eE" exponentpart
The target decimalpoint should be replaced by decimalpart:
:integer Number
* end noeat
"0-9" integer
"." decimalpart
"eE" exponentpart
This was already fixed in Mercurial [097380] and will be included in the next version.
Related
Commit: [097380]