Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add create_type_stmt and alter_type_stmt #535

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion core/src/main/kotlin/com/alecstrong/sql/psi/core/sql.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ stmt_list ::= ( stmt SEMI ) * {
mixin="com.alecstrong.sql.psi.core.psi.mixins.SqlStmtListMixin"
pin(".*")=1
}
stmt ::= [ EXPLAIN [ QUERY PLAN ] ] ( extension_stmt | alter_table_stmt | analyze_stmt | attach_stmt | begin_stmt | commit_stmt | create_index_stmt | create_table_stmt | create_trigger_stmt | create_view_stmt |
stmt ::= [ EXPLAIN [ QUERY PLAN ] ] ( extension_stmt | alter_table_stmt | alter_type_stmt | analyze_stmt | attach_stmt | begin_stmt | commit_stmt | create_index_stmt | create_table_stmt | create_trigger_stmt| create_type_stmt | create_view_stmt |
create_virtual_table_stmt | delete_stmt_limited | detach_stmt | drop_index_stmt | drop_table_stmt | drop_trigger_stmt | drop_view_stmt | insert_stmt |
pragma_stmt | reindex_stmt | release_stmt | rollback_stmt | savepoint_stmt | compound_select_stmt | update_stmt_limited | vacuum_stmt
) {
Expand Down Expand Up @@ -234,6 +234,9 @@ expr ::= ( other_expr
other_expr ::= extension_expr
extension_expr ::= FAKE_EXTENSION
extension_stmt ::= FAKE_EXTENSION
alter_type_stmt ::= FAKE_EXTENSION
create_type_stmt ::= FAKE_EXTENSION

multi_column_expr ::= multi_column_expression ( LT | LTE | GT | GTE ) multi_column_expression {
pin = 2
}
Expand Down