Find the beginning marker for a multiline comment.
(lines, lineix)
| 2010 | |
| 2011 | |
| 2012 | def FindNextMultiLineCommentStart(lines, lineix): |
| 2013 | """Find the beginning marker for a multiline comment.""" |
| 2014 | while lineix < len(lines): |
| 2015 | if lines[lineix].strip().startswith("/*"): |
| 2016 | # Only return this marker if the comment goes beyond this line |
| 2017 | if lines[lineix].strip().find("*/", 2) < 0: |
| 2018 | return lineix |
| 2019 | lineix += 1 |
| 2020 | return len(lines) |
| 2021 | |
| 2022 | |
| 2023 | def FindNextMultiLineCommentEnd(lines, lineix): |
no outgoing calls
no test coverage detected