---
source: crates/ruff_python_parser/src/lexer.rs
expression: "lex_invalid(source, Mode::Module)"
snapshot_kind: text
---
## Tokens
```
[
    (
        If,
        0..2,
    ),
    (
        True,
        3..7,
    ),
    (
        Colon,
        7..8,
    ),
    (
        Newline,
        8..9,
    ),
    (
        Indent,
        9..13,
    ),
    (
        Pass,
        13..17,
    ),
    (
        Newline,
        17..18,
    ),
    (
        Unknown,
        18..20,
    ),
    (
        Pass,
        20..24,
    ),
    (
        Newline,
        24..24,
    ),
]
```
## Errors
```
[
    LexicalError {
        error: IndentationError,
        location: 18..20,
    },
]
```
