def chunkComment(self, text, start=<NUM_LIT:0>):
<EOL>comm, out = self.nextComment(text, start), []<EOL>while comm:<EOL><INDENT>out.append(comm.group(<NUM_LIT:0>))<EOL>comm = self.nextComment(text, comm.start(<NUM_LIT:0>) + <NUM_LIT:1>)<EOL><DEDENT>out = [list(g) for (_, g) in groupby(out, self.isLineComment)]<EOL>out = [i for i in out if i != ['<STR_LIT>']]<EOL>return out<EOL>
Return a list of chunks of comments.