def parse_lit(self, lines):
        comment_char = '#' # TODO: move this into a directive option
        comment = re.compile(r'^\s*{0}[ \n]'.format(comment_char))
        section_test = lambda val: bool(comment.match(val))

        sections = []
        for is_doc, group in itertools.groupby(lines, section_test):
            if is_doc:
                text = [comment.sub('', i).rstrip('\r\n') for i in group]
            else:
                text = [i.rstrip('\r\n') for i in group]

            sections.append((is_doc, text))

        return sections
Removes all actions from the running action list.
dataset/ETHPy150Open saltstack/salt/doc/_ext/saltdomain.py/LiterateCoding.parse_lit--crossover with--dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py/CocosNode.stop