Get the next valid non-"\\#" character that satisfies the `stop` predicate
(lineno, col, stop)
| 892 | return lineno, col |
| 893 | |
| 894 | def increment_until(lineno, col, stop): |
| 895 | """Get the next valid non-"\\#" character that satisfies the `stop` predicate""" |
| 896 | while True: |
| 897 | ch = lines[lineno][col] |
| 898 | if ch in "\\#": |
| 899 | lineno, col = nextline(lineno, col) |
| 900 | elif not stop(ch): |
| 901 | lineno, col = increment(lineno, col) |
| 902 | else: |
| 903 | break |
| 904 | return lineno, col |
| 905 | |
| 906 | def setup_positions(expr, force_valid=True): |
| 907 | """Get the lineno/col position of the end of `expr`. If `force_valid` is True, |
no test coverage detected
searching dependent graphs…