mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Attempt the '-' on numbers
This commit is contained in:
parent
6afeedf10e
commit
1e70070d3d
1 changed files with 2 additions and 2 deletions
|
@ -678,7 +678,7 @@ where I: Stream<Item = char, Position = IndentablePosition>,
|
|||
))
|
||||
);
|
||||
|
||||
optional(char('-'))
|
||||
optional(attempt(char('-')))
|
||||
// Do this lookahead to decide if we should parse this as a number.
|
||||
// This matters because once we commit to parsing it as a number,
|
||||
// we may discover non-digit chars, indicating this is actually an
|
||||
|
@ -755,7 +755,7 @@ where I: Stream<Item = char, Position = IndentablePosition>,
|
|||
))
|
||||
);
|
||||
|
||||
optional(char('-'))
|
||||
optional(attempt(char('-')))
|
||||
// Do this lookahead to decide if we should parse this as a number.
|
||||
// This matters because once we commit to parsing it as a number,
|
||||
// we may discover non-digit chars, indicating this is actually an
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue