Skip to content

Commit

Permalink
chore: update products
Browse files Browse the repository at this point in the history
  • Loading branch information
takegue committed May 26, 2024
1 parent 24d2836 commit cd97936
Show file tree
Hide file tree
Showing 5 changed files with 618,186 additions and 617,581 deletions.
26 changes: 14 additions & 12 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = grammar({
_keyword_column: (_) => kw('COLUMN'),
_keyword_alter: (_) => kw('ALTER'),
_keyword_rename: (_) => kw('RENAME'),
_keyword_create: (_) => kw('CREATE'),
_keyword_add: (_) => kw('ADD'),
_keyword_drop: (_) => kw('DROP'),
_keyword_from: (_) => kw('FROM'),
Expand Down Expand Up @@ -331,7 +332,8 @@ module.exports = grammar({
* ***************************************************************************** */
create_schema_statement: ($) =>
seq(
kw('CREATE SCHEMA'),
$._keyword_create,
$._keyword_schema,
optional($.keyword_if_not_exists),
field('schema_name', $.identifier),
optional($.default_collate_clause),
Expand Down Expand Up @@ -380,7 +382,7 @@ module.exports = grammar({
create_table_statement: ($) =>
prec.right(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
optional($.keyword_temporary),
choice(kw('TABLE'), kw('VIEW'), kw('MATERIALIZED VIEW')),
Expand All @@ -397,7 +399,7 @@ module.exports = grammar({
create_table_like_statement: ($) =>
prec.right(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
optional($.keyword_temporary),
choice(kw('TABLE'), kw('VIEW'), kw('MATERIALIZED VIEW')),
Expand All @@ -415,7 +417,7 @@ module.exports = grammar({
create_table_clone_statement: ($) =>
prec.right(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
choice(kw('TABLE')),
optional($.keyword_if_not_exists),
Expand All @@ -429,7 +431,7 @@ module.exports = grammar({
create_table_copy_statement: ($) =>
prec.right(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
choice(kw('TABLE')),
optional($.keyword_if_not_exists),
Expand All @@ -442,7 +444,7 @@ module.exports = grammar({
copy_clause: ($) => seq(kw('COPY'), field('source_table_name', $.identifier)),
create_snapshot_table_statement: ($) =>
prec.right(seq(
kw('CREATE'),
$._keyword_create,
kw('SNAPSHOT TABLE'),
optional($.keyword_if_not_exists),
field('table_name', $.identifier),
Expand All @@ -454,7 +456,7 @@ module.exports = grammar({
create_external_table_statement: ($) =>
prec.right(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
kw('EXTERNAL TABLE'),
optional($.keyword_if_not_exists),
Expand Down Expand Up @@ -726,7 +728,7 @@ module.exports = grammar({
create_function_statement: ($) =>
prec.left(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
optional($.keyword_temporary),
kw('FUNCTION'),
Expand Down Expand Up @@ -754,7 +756,7 @@ module.exports = grammar({
create_remote_function_statement: ($) =>
prec.left(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
optional($.keyword_temporary),
kw('FUNCTION'),
Expand Down Expand Up @@ -782,7 +784,7 @@ module.exports = grammar({
create_table_function_statement: ($) =>
prec.left(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
kw('TABLE FUNCTION'),
optional($.keyword_if_not_exists),
Expand Down Expand Up @@ -820,7 +822,7 @@ module.exports = grammar({
create_function_parameters: ($) => seq('(', commaSep1($.create_function_parameter), ')'),
create_procedure_statement: ($) => (
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
kw('PROCEDURE'),
optional($.keyword_if_not_exists),
Expand Down Expand Up @@ -852,7 +854,7 @@ module.exports = grammar({
create_model_statement: ($) =>
prec.left(
seq(
kw('CREATE'),
$._keyword_create,
optional($.keyword_replace),
choice(kw('MODEL')),
optional($.keyword_if_not_exists),
Expand Down
6 changes: 3 additions & 3 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
"CASE"
"CAST"
"CREATE"
"CREATE_SCHEMA"
"DROP_SCHEMA"
"ALTER_SCHEMA"
"SCHEMA"
"ADD"
"DROP"
"ALTER"
"TABLE"
"VIEW"
Expand Down
Loading

0 comments on commit cd97936

Please sign in to comment.