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 ddc801e commit 5fd9fc4Copy full SHA for 5fd9fc4
parser/src/lexer.rs
@@ -576,10 +576,16 @@ where
576
}
577
578
None => {
579
- return Err(LexicalError {
580
- error: LexicalErrorType::StringError,
581
- location: self.get_pos(),
582
- });
+ return match triple_quoted {
+ true => Err(LexicalError {
+ error: LexicalErrorType::Eof,
+ location: self.get_pos(),
583
+ }),
584
+ false => Err(LexicalError {
585
+ error: LexicalErrorType::StringError,
586
587
588
+ }
589
590
591
0 commit comments