diff options
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/parsing/lexer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/lexer.rs b/crates/ra_syntax/src/parsing/lexer.rs index e75f3aae0..3ae42912c 100644 --- a/crates/ra_syntax/src/parsing/lexer.rs +++ b/crates/ra_syntax/src/parsing/lexer.rs | |||
@@ -217,7 +217,7 @@ fn scan_literal_suffix(ptr: &mut Ptr) { | |||
217 | 217 | ||
218 | pub fn classify_literal(text: &str) -> Option<Token> { | 218 | pub fn classify_literal(text: &str) -> Option<Token> { |
219 | let tkn = next_token(text); | 219 | let tkn = next_token(text); |
220 | if tkn.kind.is_literal() || tkn.len.to_usize() != text.len() { | 220 | if !tkn.kind.is_literal() || tkn.len.to_usize() != text.len() { |
221 | return None; | 221 | return None; |
222 | } | 222 | } |
223 | 223 | ||