Add not-in: operator (#1661)

This commit is contained in:
Jonathan Turner
2020-04-26 17:32:17 +12:00
committed by GitHub
parent ad8ab5b04d
commit ad7a3fd908
5 changed files with 36 additions and 1 deletions

View File

@ -450,7 +450,8 @@ impl SpannedExpression {
| Operator::GreaterThanOrEqual
| Operator::Equal
| Operator::NotEqual
| Operator::In => 80,
| Operator::In
| Operator::NotIn => 80,
Operator::And => 50,
Operator::Or => 40, // TODO: should we have And and Or be different precedence?
}
@ -589,6 +590,7 @@ pub enum Operator {
Multiply,
Divide,
In,
NotIn,
And,
Or,
}