Skip to content

Commit 42d7c51

Browse files
authored
Merge pull request #3885 from kth496/fix_multiline_string_bug
Fix multiline string bug
2 parents 48cf792 + 6095f88 commit 42d7c51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

parser/src/lexer.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,11 @@ where
577577
}
578578
None => {
579579
return Err(LexicalError {
580-
error: LexicalErrorType::StringError,
580+
error: if triple_quoted {
581+
LexicalErrorType::Eof
582+
} else {
583+
LexicalErrorType::StringError
584+
},
581585
location: self.get_pos(),
582586
});
583587
}

0 commit comments

Comments
 (0)