Fix != was wrongfully parsed as Token::Eq

Fixes #68
This commit is contained in:
Sebastian Schmidt 2019-08-30 12:48:00 +03:00
parent 782f233d7d
commit 43e0256550

View File

@ -346,7 +346,7 @@ fn partial_tokens_to_tokens(mut tokens: &[PartialToken]) -> EvalexprResult<Vec<T
},
},
PartialToken::ExclamationMark => match second {
Some(PartialToken::Eq) => Some(Token::Eq),
Some(PartialToken::Eq) => Some(Token::Neq),
_ => {
cutoff = 1;
Some(Token::Not)