ruff/crates/ruff_python_parser/src
Dhruv Manilawala e72d617f4b
Remove escaped mac/windows eol from AST string value (#7724)
## Summary

This PR fixes the bug where the value of a string node type includes the
escaped mac/windows newline character.

Note that the token value still includes them, it's only removed when
parsing the string content.

## Test Plan

Add new test cases for the string node type to check that the escapes
aren't being included in the string value.

fixes: #7723
2023-10-01 07:37:59 +05:30
..
lexer Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
snapshots Remove escaped mac/windows eol from AST string value (#7724) 2023-10-01 07:37:59 +05:30
context.rs Remove Parse trait (#6235) 2023-08-01 18:35:03 +02:00
function.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
lexer.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
lib.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
parser.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
python.lalrpop Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
python.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
soft_keywords.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
string.rs Remove escaped mac/windows eol from AST string value (#7724) 2023-10-01 07:37:59 +05:30
token.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
typing.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00