squawk-lexer 2.48.0

Linter for Postgres migrations & SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
source: crates/squawk_lexer/src/lib.rs
expression: "lex(r#\"\n$$Dianne's horse$$\n$SomeTag$Dianne's horse$SomeTag$\n\n-- with dollar inside and matching tags\n$foo$hello$world$bar$\n\"#)"
---
[
    "\n" @ Whitespace,
    "$$Dianne's horse$$" @ Literal { kind: DollarQuotedString { terminated: true } },
    "\n" @ Whitespace,
    "$SomeTag$Dianne's horse$SomeTag$" @ Literal { kind: DollarQuotedString { terminated: true } },
    "\n\n" @ Whitespace,
    "-- with dollar inside and matching tags" @ LineComment,
    "\n" @ Whitespace,
    "$foo$hello$world$bar$\n" @ Literal { kind: DollarQuotedString { terminated: false } },
]