fix being able to match ~= as LogicalOperation

This commit is contained in:
teoxoy
2022-04-17 19:59:33 +02:00
committed by Dzmitry Malyshau
parent 340bfcc33a
commit 90b3c18fae

View File

@@ -366,7 +366,8 @@ fn consume_token(mut input: &str, generic: bool) -> (Token<'_>, &str) {
(Token::Operation(cur), input)
}
}
'!' | '~' => {
'~' => (Token::Operation(cur), chars.as_str()),
'!' => {
input = chars.as_str();
if chars.next() == Some('=') {
(Token::LogicalOperation(cur), chars.as_str())