#NEWLINE# def match_expression( self ) : #NEWLINE# #INDENT# match = self . match ( '\\${' ) #NEWLINE# if match : #NEWLINE# #INDENT# ( line , pos ) = ( escapes . matched_lineno , self . matched_charpos ) #NEWLINE# ( text , end ) = self . parse_until_text ( '\\|' , '}' ) #NEWLINE# if ( end == '|' ) : #NEWLINE# #INDENT# ( escapes , end ) = self . parse_until_text ( '}' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# escapes = '' #NEWLINE# #UNINDENT# text = text . replace ( '\r\n' , '\n' ) #NEWLINE# self . append_node ( parsetree . Expression , text , escapes . strip ( ) , lineno = line , pos = pos ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False