---
source: crates/ruff_python_parser/src/lexer.rs
expression: lex_source(source)
---
[
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        ),
        0..2,
    ),
    (
        FStringMiddle {
            value: "\\",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        2..3,
    ),
    (
        Lbrace,
        3..4,
    ),
    (
        Name {
            name: "foo",
        },
        4..7,
    ),
    (
        Rbrace,
        7..8,
    ),
    (
        FStringEnd,
        8..9,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        ),
        10..12,
    ),
    (
        FStringMiddle {
            value: "\\\\",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        12..14,
    ),
    (
        Lbrace,
        14..15,
    ),
    (
        Name {
            name: "foo",
        },
        15..18,
    ),
    (
        Rbrace,
        18..19,
    ),
    (
        FStringEnd,
        19..20,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        ),
        21..23,
    ),
    (
        FStringMiddle {
            value: "\\{foo}",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        23..31,
    ),
    (
        FStringEnd,
        31..32,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        ),
        33..35,
    ),
    (
        FStringMiddle {
            value: "\\\\{foo}",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        35..44,
    ),
    (
        FStringEnd,
        44..45,
    ),
    (
        Newline,
        45..45,
    ),
]
