mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
If you have such a program like "pass\\\n", this is technically a program without a trailing newline, since line continuations are defined as being a `\` followed by a newline. We were misdetecting this as having a trailing newline, thus making it impossible to parse the continuation. Add some tests to verify this behavior and then fix the problem. Note that this was found via hypothesis. |
||
|---|---|---|
| .. | ||
| conversions | ||
| parso | ||
| tests | ||
| types | ||
| __init__.py | ||
| base_parser.py | ||
| custom_itertools.py | ||
| detect_config.py | ||
| entrypoints.py | ||
| grammar.py | ||
| production_decorator.py | ||
| python_parser.py | ||
| whitespace_parser.py | ||
| wrapped_tokenize.py | ||