We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e436e42 commit 0444c1aCopy full SHA for 0444c1a
parser/src/lexer.rs
@@ -566,12 +566,7 @@ where
566
break;
567
}
568
} else {
569
- if c == '\n' && !triple_quoted {
570
- return Err(LexicalError {
571
- error: LexicalErrorType::StringError,
572
- location: self.get_pos(),
573
- });
574
- } else if is_bytes && !c.is_ascii() {
+ if (c == '\n' && !triple_quoted) || (is_bytes && !c.is_ascii()) {
575
return Err(LexicalError {
576
error: LexicalErrorType::StringError,
577
location: self.get_pos(),
0 commit comments