ruff/crates/ruff_python_parser/tests
Dhruv Manilawala e137c824c3
Avoid consuming newline for unterminated string (#12067)
## Summary

This PR fixes the lexer logic to **not** consume the newline character
for an unterminated string literal.

Currently, the lexer would consume it to be part of the string itself
but that would be bad for recovery because then the lexer wouldn't emit
the newline token ever. This PR fixes that to avoid consuming the
newline character in that case.

This was discovered during https://github.com/astral-sh/ruff/pull/12060.

## Test Plan

Update the snapshots and validate them.
2024-06-27 17:02:48 +05:30
..
snapshots Avoid consuming newline for unterminated string (#12067) 2024-06-27 17:02:48 +05:30
fixtures.rs Update parser tests to validate token ranges (#12019) 2024-06-25 08:14:28 +00:00
generate_inline_tests.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30