(source: bytes)
| 3860 | |
| 3861 | |
| 3862 | def _cpp_conditional_tokens(source: bytes): |
| 3863 | pos = 0 |
| 3864 | while match := _CPP_CONDITIONAL_TOKEN_RE.search(source, pos): |
| 3865 | pos = match.end() |
| 3866 | if match.group(1) is not None: |
| 3867 | end = source.find(b")" + match.group(1) + b'"', pos) |
| 3868 | pos = len(source) if end == -1 else end + len(match.group(1)) + 2 |
| 3869 | yield match, pos |
| 3870 | |
| 3871 | |
| 3872 | _CPP_DIRECTIVE_COMMENT_RE = re.compile( |
no test coverage detected