Find the beginning marker for a multiline comment.
(lines, lineix)
| 1839 | |
| 1840 | |
| 1841 | def FindNextMultiLineCommentStart(lines, lineix): |
| 1842 | """Find the beginning marker for a multiline comment.""" |
| 1843 | while lineix < len(lines): |
| 1844 | if lines[lineix].strip().startswith('/*'): |
| 1845 | # Only return this marker if the comment goes beyond this line |
| 1846 | if lines[lineix].strip().find('*/', 2) < 0: |
| 1847 | return lineix |
| 1848 | lineix += 1 |
| 1849 | return len(lines) |
| 1850 | |
| 1851 | |
| 1852 | def FindNextMultiLineCommentEnd(lines, lineix): |
no test coverage detected