Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ string_parser_escaped_eol
Function
string_parser_escaped_eol
crates/ruff_python_parser/src/string.rs:567–570 ·
view source on GitHub ↗
(eol: &str)
Source
from the content-addressed store, hash-verified
565
}
566
567
fn string_parser_escaped_eol(eol: &str) -> Suite {
568
let source = format!(r
"'text \{eol}more text'"
);
569
parse_suite(&source).unwrap()
570
}
571
572
#[test]
573
fn test_string_parser_escaped_unix_eol() {
Callers
3
test_string_parser_escaped_unix_eol
Function · 0.85
test_string_parser_escaped_mac_eol
Function · 0.85
test_string_parser_escaped_windows_eol
Function · 0.85
Calls
1
parse_suite
Function · 0.70
Tested by
3
test_string_parser_escaped_unix_eol
Function · 0.68
test_string_parser_escaped_mac_eol
Function · 0.68
test_string_parser_escaped_windows_eol
Function · 0.68