mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
some fixes
This commit is contained in:
parent
7c56547958
commit
14129bb34c
2 changed files with 6 additions and 9 deletions
|
@ -363,7 +363,7 @@ fn unary_negate<'a>() -> impl Parser<'a, (), EExpr<'a>> {
|
||||||
let followed_by_whitespace = state
|
let followed_by_whitespace = state
|
||||||
.bytes
|
.bytes
|
||||||
.get(1)
|
.get(1)
|
||||||
.map(|c| c.is_ascii_whitespace())
|
.map(|c| c.is_ascii_whitespace() || *c == b'#')
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
if state.bytes.starts_with(b"-") && !followed_by_whitespace {
|
if state.bytes.starts_with(b"-") && !followed_by_whitespace {
|
||||||
|
|
|
@ -1996,14 +1996,11 @@ macro_rules! one_or_more_e {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err((progress, _, new_state)) => {
|
Err((progress, _, new_state)) => Err((
|
||||||
debug_assert_eq!(progress, NoProgress, "{:?}", &new_state);
|
progress,
|
||||||
Err((
|
$to_error(new_state.line, new_state.column),
|
||||||
progress,
|
new_state,
|
||||||
$to_error(new_state.line, new_state.column),
|
)),
|
||||||
new_state,
|
|
||||||
))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue