some fixes

This commit is contained in:
Folkert 2021-03-01 01:20:53 +01:00
parent 7c56547958
commit 14129bb34c
2 changed files with 6 additions and 9 deletions

View file

@ -363,7 +363,7 @@ fn unary_negate<'a>() -> impl Parser<'a, (), EExpr<'a>> {
let followed_by_whitespace = state
.bytes
.get(1)
.map(|c| c.is_ascii_whitespace())
.map(|c| c.is_ascii_whitespace() || *c == b'#')
.unwrap_or(false);
if state.bytes.starts_with(b"-") && !followed_by_whitespace {