From efb44e0b2270fa3f33561d94be2ea4e4b3b249a7 Mon Sep 17 00:00:00 2001 From: RoloEdits Date: Thu, 13 Feb 2025 05:16:27 -0800 Subject: [PATCH] feat(sql): update tree-sitter files (#12837) --- languages.toml | 2 +- runtime/queries/sql/highlights.scm | 29 ++++++++++++++++++++++------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/languages.toml b/languages.toml index 3cedd2f1b..6e1e28244 100644 --- a/languages.toml +++ b/languages.toml @@ -2136,7 +2136,7 @@ injection-regex = "sql" [[grammar]] name = "sql" -source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "da2d1eff425b146d3c8cab7be8dfa98b11d896dc" } +source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "b9d109588d5b5ed986c857464830c2f0bef53f18" } [[language]] name = "gdscript" diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm index e575debc5..82397edce 100644 --- a/runtime/queries/sql/highlights.scm +++ b/runtime/queries/sql/highlights.scm @@ -110,6 +110,8 @@ (keyword_primary) (keyword_delete) (keyword_create) + (keyword_show) + (keyword_unload) (keyword_insert) (keyword_merge) (keyword_distinct) @@ -147,9 +149,6 @@ (keyword_for) (keyword_if) (keyword_exists) - (keyword_max) - (keyword_min) - (keyword_avg) (keyword_column) (keyword_columns) (keyword_cross) @@ -195,7 +194,6 @@ (keyword_current) (keyword_ties) (keyword_others) - (keyword_preserve) (keyword_zerofill) (keyword_format) (keyword_fields) @@ -219,7 +217,6 @@ (keyword_vacuum) (keyword_cache) (keyword_language) - (keyword_sql) (keyword_called) (keyword_conflict) (keyword_declare) @@ -229,8 +226,6 @@ (keyword_name) (keyword_oid) (keyword_oids) - (keyword_options) - (keyword_plpgsql) (keyword_precision) (keyword_regclass) (keyword_regnamespace) @@ -274,6 +269,7 @@ (keyword_out) (keyword_inout) (keyword_variadic) + (keyword_ordinality) (keyword_session) (keyword_isolation) (keyword_level) @@ -304,6 +300,25 @@ (keyword_statement) (keyword_execute) (keyword_procedure) + (keyword_copy) + (keyword_delimiter) + (keyword_encoding) + (keyword_escape) + (keyword_force_not_null) + (keyword_force_null) + (keyword_force_quote) + (keyword_freeze) + (keyword_header) + (keyword_match) + (keyword_program) + (keyword_quote) + (keyword_stdin) + (keyword_extended) + (keyword_main) + (keyword_plain) + (keyword_storage) + (keyword_compression) + (keyword_duplicate) ] @keyword [