mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
fix being able to match ~= as LogicalOperation
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user