We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd9fc4 commit 6095f88Copy full SHA for 6095f88
parser/src/lexer.rs
@@ -576,16 +576,14 @@ where
576
}
577
578
None => {
579
- return match triple_quoted {
580
- true => Err(LexicalError {
581
- error: LexicalErrorType::Eof,
582
- location: self.get_pos(),
583
- }),
584
- false => Err(LexicalError {
585
- error: LexicalErrorType::StringError,
586
587
588
- }
+ return Err(LexicalError {
+ error: if triple_quoted {
+ LexicalErrorType::Eof
+ } else {
+ LexicalErrorType::StringError
+ },
+ location: self.get_pos(),
+ });
589
590
591
0 commit comments