squawk-lexer 2.45.0

Linter for Postgres migrations & SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
source: crates/squawk_lexer/src/lib.rs
expression: "lex(r#\"\nselect 'Hello' -- This is a comment\n' World';\"#)"
---
[
    "\n" @ Whitespace,
    "select" @ Ident,
    " " @ Whitespace,
    "'Hello'" @ Literal { kind: Str { terminated: true } },
    " " @ Whitespace,
    "-- This is a comment" @ LineComment,
    "\n" @ Whitespace,
    "' World'" @ Literal { kind: Str { terminated: true } },
    ";" @ Semi,
]