#NEWLINE# def expand_against_command_args( string , start , end ) : #NEWLINE# #INDENT# if ( not ( chart_at ( string , start ) == '\\' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( chart_at ( string , original_end ) not in [ '{' , '[' ] ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# original_end = end #NEWLINE# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# end = _stretch_over_next_semantic_unit ( string , end ) #NEWLINE# #UNINDENT# except NoSemanticUnit : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# if ( original_end == end ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return utils . create_return_obj ( start , end , string , 'latex_command_arg' )