@@ -1053,7 +1053,7 @@ impl Parser {
10531053 e
10541054 }
10551055 TokenKind :: StringPart ( _) => self . interpolated_string ( state) ?,
1056- TokenKind :: StartHeredoc ( label, kind) => {
1056+ TokenKind :: StartDocString ( label, kind) => {
10571057 let kind = kind. clone ( ) ;
10581058 let label = label. clone ( ) ;
10591059
@@ -1578,14 +1578,14 @@ impl Parser {
15781578 DocStringKind :: Heredoc => {
15791579 let mut parts = Vec :: new ( ) ;
15801580
1581- while !matches ! ( state. current. kind, TokenKind :: EndHeredoc ( _, _, _) ) {
1581+ while !matches ! ( state. current. kind, TokenKind :: EndDocString ( _, _, _) ) {
15821582 if let Some ( part) = self . interpolated_string_part ( state) ? {
15831583 parts. push ( part) ;
15841584 }
15851585 }
15861586
15871587 let ( indentation_type, indentation_amount) = match state. current . kind {
1588- TokenKind :: EndHeredoc ( _, indentation_type, indentation_amount) => ( indentation_type, indentation_amount) ,
1588+ TokenKind :: EndDocString ( _, indentation_type, indentation_amount) => ( indentation_type, indentation_amount) ,
15891589 _ => unreachable ! ( ) ,
15901590 } ;
15911591
@@ -1617,7 +1617,7 @@ impl Parser {
16171617 // but since I already had the logic in place for parsing heredocs, this was
16181618 // the fastest way to get nowdocs working too.
16191619 let s = expect_token ! ( [ TokenKind :: StringPart ( s) => s] , state, "constant string" ) ;
1620- expect_token ! ( [ TokenKind :: EndHeredoc ( ..) ] , state, "label" ) ;
1620+ expect_token ! ( [ TokenKind :: EndDocString ( ..) ] , state, "label" ) ;
16211621
16221622 Expression :: Nowdoc { value : s }
16231623 } ,
0 commit comments