Lines Matching full:line
15 # - Single-line style comments (//) can be on a new line or at the end of
16 # a line with contents.
18 # - Multi-line style comments (/* */) use the must be free-standing.
20 # - Comments will get inserted back into the file in the line they came
24 # - No attempts to re-indent multi-line comments will be made.
27 # prettier before using this script and planning to move multi-line comments
47 for idx, line in enumerate(contents.split("\n")):
48 single = CommentTracker.single_line_pattern.search(line)
50 do_append = False if line.startswith(single.group(0)) else True
51 line = line[: single.start(0)]
54 multi_start = CommentTracker.multi_line_start_pattern.search(line)
57 multi_line_segment = line
59 multi_line_segment = multi_line_segment + "\n" + line
62 result.append(line)