Find the beginning marker for a multiline comment.
(lines, lineix)
| 2055 | |
| 2056 | |
| 2057 | def FindNextMultiLineCommentStart(lines, lineix): |
| 2058 | """Find the beginning marker for a multiline comment.""" |
| 2059 | while lineix < len(lines): |
| 2060 | if lines[lineix].strip().startswith("/*"): |
| 2061 | # Only return this marker if the comment goes beyond this line |
| 2062 | if lines[lineix].strip().find("*/", 2) < 0: |
| 2063 | return lineix |
| 2064 | lineix += 1 |
| 2065 | return len(lines) |
| 2066 | |
| 2067 | |
| 2068 | def FindNextMultiLineCommentEnd(lines, lineix): |
no test coverage detected
searching dependent graphs…