fix being able to match ~= as LogicalOperation

This commit is contained in:
teoxoy authored and Dzmitry Malyshau committed 2022-04-17 21:01:01 -07:00
1 parent 340bfcc33a
commit 90b3c18fae
1 file changed
+2 -1
+2 -1
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())