Open lulunac27a opened 1 month ago
Changing https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/lexer.coffee#L1314-L1315
to \.? (?:\d+(?:_\d+)+)?
on the first line may fix this.
I've tried the 1.e-1
syntax in node and firefox and both accept it. Haven't checked the spec.
Choose one: is this a bug report or feature request? Bug report
Input Code
Example code:
And another example:
Expected Behavior
and
Current Behavior
and
Possible Solution
Remove a dot or add a
0
after the dot if there is no number after the dot and before thee
in scientific notation.Context
Using scientific notation with decimals
Environment