nixfmt icon indicating copy to clipboard operation
nixfmt copied to clipboard

Parse error on .5e5

Open yorickvP opened this issue 3 years ago • 1 comments

Description

The parser doesn't accept floats starting with .

Small example input

.5e5

Expected output

0.5e5

Actual output

<stdin>:1:6:
  |
1 | .0e+0
  |      ^
unexpected end of input
expecting expression

yorickvP avatar Feb 21 '22 11:02 yorickvP

nix-repl> let e="e";in[001.2e01e.30.4]
[ 1 2 "e" 0.3 0.4 ]

yorickvP avatar Feb 21 '22 11:02 yorickvP