fix != operator failing to parse

This commit is contained in:
2022-04-09 08:51:23 +02:00
parent 557c3a8426
commit ebc701e2f2

View File

@@ -291,6 +291,7 @@ fn lexer() -> impl Parser<char, Vec<(Token, Span)>, Error = LexerError> {
.repeated()
.at_least(1)
.or(just(':').chain(just('=')))
.or(just('!').chain(just('=')))
.collect::<String>()
.map(Token::Op);