mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
parse leading unary minus again
This commit is contained in:
parent
032a55383c
commit
240df052c5
1 changed files with 2 additions and 0 deletions
|
@ -366,6 +366,8 @@ fn loc_possibly_negative_or_negated_term<'a>(
|
|||
)
|
||||
}
|
||||
)),
|
||||
// this will parse negative numbers, which the unary negate thing up top doesn't (for now)
|
||||
loc!(specialize(EExpr::Number, number_literal_help())),
|
||||
loc!(map_with_arena!(
|
||||
and!(loc!(word1(b'!', EExpr::Start)), |a, s| parse_loc_term(
|
||||
min_indent, a, s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue