Skip to content

Commit 134eaa6

Browse files
authored
parser: improve option & role lists (#702)
1 parent b1c9644 commit 134eaa6

21 files changed

+1363
-919
lines changed

crates/squawk_ide/src/expand_selection.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ use squawk_syntax::{
3434
};
3535

3636
const DELIMITED_LIST_KINDS: &[SyntaxKind] = &[
37+
SyntaxKind::ALTER_OPTION_LIST,
3738
SyntaxKind::ARG_LIST,
3839
SyntaxKind::ATTRIBUTE_LIST,
3940
SyntaxKind::COLUMN_LIST,
4041
SyntaxKind::CONSTRAINT_EXCLUSION_LIST,
4142
SyntaxKind::GROUP_BY_LIST,
4243
SyntaxKind::JSON_TABLE_COLUMN_LIST,
43-
SyntaxKind::OPTIONS_LIST,
44+
SyntaxKind::OPTION_ITEM_LIST,
4445
SyntaxKind::PARAM_LIST,
4546
SyntaxKind::PARTITION_ITEM_LIST,
4647
SyntaxKind::ROW_LIST,
@@ -546,6 +547,7 @@ $0
546547
fn list_variants() {
547548
let delimited_ws_list_kinds = &[
548549
SyntaxKind::FUNC_OPTION_LIST,
550+
SyntaxKind::ROLE_OPTION_LIST,
549551
SyntaxKind::SEQUENCE_OPTION_LIST,
550552
SyntaxKind::XML_COLUMN_OPTION_LIST,
551553
SyntaxKind::WHEN_CLAUSE_LIST,

crates/squawk_parser/src/generated/syntax_kind.rs

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)