@@ -269,7 +269,7 @@ def _generate_suggestion(error_node, code_text) -> str:
269269 return "Please check the syntax near the error."
270270
271271 parent_type = parent .type
272- if parent_type == 'content_clause ' :
272+ if parent_type == 'content_literal ' :
273273 return "Ensure the content block is properly enclosed with matching quotes (''' or \" \" )."
274274 if parent_type == 'update_command' :
275275 return "An action clause ('REPLACE', 'INSERT', 'DELETE') is expected in the 'UPDATE' command."
@@ -600,12 +600,12 @@ def parse_relative_indentation(self, node) -> int | None:
600600 return int (self .find_first_by_type (node .named_children , 'number' ).text )
601601
602602 def parse_content (self , node ) -> str | tuple [Region , int | None ] | None :
603- content = self .find_first_by_type (node .named_children , ['content_clause ' , 'content_from_segment' ])
603+ content = self .find_first_by_type (node .named_children , ['content_literal ' , 'content_from_segment' ])
604604 if not content :
605605 return None
606606 match content .type :
607- case 'content_clause ' :
608- return self .parse_content_clause (content ) # str
607+ case 'content_literal ' :
608+ return self .parse_content_literal (content ) # str
609609 case 'content_from_segment' :
610610 return self .parse_content_from_segment_clause (content ) # tuple[Region, int]
611611 case _:
@@ -619,11 +619,11 @@ def parse_singlefile_clause(self, node):
619619 raise ValueError ("No file_path found in singlefile_clause" )
620620 return SingleFileClause (file_path = self .parse_string (path_node ))
621621
622- def parse_content_clause (self , node ) -> str :
622+ def parse_content_literal (self , node ) -> str :
623623 child_type = ['string' , 'relative_indent_block' , 'multiline_string' ]
624624 content_node = self .find_first_by_type (node .children , child_type )
625625 if content_node is None :
626- raise ValueError ("No content found in content_clause " )
626+ raise ValueError ("No content found in content_literal " )
627627 if content_node .type == 'string' :
628628 return self .parse_string (content_node )
629629 elif content_node .type == 'relative_indent_block' :
0 commit comments