mirror of
https://github.com/astral-sh/ruff
synced 2026-01-23 14:30:53 -05:00
14 lines
507 B
Rust
14 lines
507 B
Rust
/// See: <https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals>
|
|
|
|
pub const TRIPLE_QUOTE_PREFIXES: &[&str] = &[
|
|
"u\"\"\"", "u'''", "r\"\"\"", "r'''", "U\"\"\"", "U'''", "R\"\"\"", "R'''", "\"\"\"", "'''",
|
|
];
|
|
|
|
pub const SINGLE_QUOTE_PREFIXES: &[&str] = &[
|
|
"u\"", "u'", "r\"", "r'", "u\"", "u'", "r\"", "r'", "U\"", "U'", "R\"", "R'", "\"", "'",
|
|
];
|
|
|
|
pub const TRIPLE_QUOTE_SUFFIXES: &[&str] = &["\"\"\"", "'''"];
|
|
|
|
pub const SINGLE_QUOTE_SUFFIXES: &[&str] = &["\"", "'"];
|