(state: ParserState, prefixes: Sequence[str])
| 90 | |
| 91 | |
| 92 | def _is_done(state: ParserState, prefixes: Sequence[str]) -> bool: |
| 93 | if state.index >= len(state.lines): |
| 94 | return True |
| 95 | if any(state.lines[state.index].startswith(prefix) for prefix in prefixes): |
| 96 | return True |
| 97 | return False |
| 98 | |
| 99 | |
| 100 | def _read_str(state: ParserState, prefix: str) -> str: |
no outgoing calls