def ParseCommentLine(line):
  block = regex.block_directive.match(line)
  if block:
    return ParseBlockDirective(*block.groups())
  return docline.Text(regex.comment_leader.sub('', line))
Parses one line of documentation and creates the appropriate DocLine.
dataset/ETHPy150Open google/vimdoc/vimdoc/parser.py/ParseCommentLine