def extract_documentation_with_markers(content, docstyle_definition):
 markers = docstyle_definition.markers
 marker_dict = {}
 for marker_set in markers:
  if (marker_set[0] not in marker_dict):
   marker_dict[marker_set[0]] = [marker_set]
  else:
   marker_dict[marker_set[0]].append(marker_set)
 begin_regex = _compile_multi_match_regex((marker_set[0] for marker_set in markers))
 line = 0
 column = 0
 while (line < len(content)):
  (line, column, doc) = _extract_doc_comment_from_line(content, line, column, begin_regex, marker_dict, docstyle_definition)
  if doc:
   (yield doc)

def extract_documentation_with_markers ( content , docstyle_definition ) : markers = docstyle_definition . markers marker_dict = { } for marker_set in markers : if ( marker_set [ 0 ] not in marker_dict ) : marker_dict [ marker_set [ 0 ] ] = [ marker_set ] else : marker_dict [ marker_set [ 0 ] ] . append ( marker_set ) begin_regex = _compile_multi_match_regex ( ( marker_set [ 0 ] for marker_set in markers ) ) line = 0 column = 0 while ( line < len ( content ) ) : ( line , column , doc ) = _extract_doc_comment_from_line ( content , line , column , begin_regex , marker_dict , docstyle_definition ) if doc : ( yield doc )
extracts all documentation texts inside the given source-code-string .