Allow stacking ! operators.

This commit is contained in:
Stephen Chung
2021-01-24 21:21:15 +08:00
parent 049f472ac9
commit c245fe88fd
5 changed files with 8 additions and 7 deletions

View File

@@ -1338,7 +1338,7 @@ fn parse_unary(
Token::Bang => {
let pos = eat_token(input, Token::Bang);
let mut args = StaticVec::new();
let expr = parse_primary(input, state, lib, settings.level_up())?;
let expr = parse_unary(input, state, lib, settings.level_up())?;
args.push(expr);
let op = "!";