---
source: crates/ruff_python_parser/src/lexer.rs
expression: lex_source(source)
---
[
    (
        FStringStart(
            StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: true,
                quote_style: Double,
            },
        ),
        0..4,
    ),
    (
        FStringMiddle {
            value: "\n# not a comment ",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: true,
                quote_style: Double,
            },
        },
        4..21,
    ),
    (
        Lbrace,
        21..22,
    ),
    (
        Comment(
            "# comment {",
        ),
        23..34,
    ),
    (
        NonLogicalNewline,
        34..35,
    ),
    (
        Name {
            name: "x",
        },
        39..40,
    ),
    (
        NonLogicalNewline,
        40..41,
    ),
    (
        Rbrace,
        41..42,
    ),
    (
        FStringMiddle {
            value: " # not a comment\n",
            kind: StringKind {
                prefix: Format(
                    Regular,
                ),
                triple_quoted: true,
                quote_style: Double,
            },
        },
        42..59,
    ),
    (
        FStringEnd,
        59..62,
    ),
    (
        Newline,
        62..62,
    ),
]
