---
source: crates/ruff_python_parser/src/lexer.rs
expression: lex_source(source)
---
[
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        ),
        0..2,
    ),
    (
        FStringMiddle {
            value: "foo ",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        },
        2..6,
    ),
    (
        Lbrace,
        6..7,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        ),
        7..9,
    ),
    (
        FStringMiddle {
            value: "bar ",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        },
        9..13,
    ),
    (
        Lbrace,
        13..14,
    ),
    (
        Name {
            name: "x",
        },
        14..15,
    ),
    (
        Plus,
        16..17,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        ),
        18..20,
    ),
    (
        Lbrace,
        20..21,
    ),
    (
        Name {
            name: "wow",
        },
        21..24,
    ),
    (
        Rbrace,
        24..25,
    ),
    (
        FStringEnd,
        25..26,
    ),
    (
        Rbrace,
        26..27,
    ),
    (
        FStringEnd,
        27..28,
    ),
    (
        Rbrace,
        28..29,
    ),
    (
        FStringMiddle {
            value: " baz",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        },
        29..33,
    ),
    (
        FStringEnd,
        33..34,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        ),
        35..37,
    ),
    (
        FStringMiddle {
            value: "foo ",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        37..41,
    ),
    (
        Lbrace,
        41..42,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        ),
        42..44,
    ),
    (
        FStringMiddle {
            value: "bar",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        44..47,
    ),
    (
        FStringEnd,
        47..48,
    ),
    (
        Rbrace,
        48..49,
    ),
    (
        FStringMiddle {
            value: " some ",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Single,
            },
        },
        49..55,
    ),
    (
        Lbrace,
        55..56,
    ),
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        ),
        56..58,
    ),
    (
        FStringMiddle {
            value: "another",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: false,
                quote_style: Double,
            },
        },
        58..65,
    ),
    (
        FStringEnd,
        65..66,
    ),
    (
        Rbrace,
        66..67,
    ),
    (
        FStringEnd,
        67..68,
    ),
    (
        Newline,
        68..68,
    ),
]
