bump tree-sitter-sql (#8464)

* bump tree-sitter-sql

* update highlights classes to helix flavour

* replace lua-match with match
pull/8500/head
DS/Charlie 1 year ago committed by GitHub
parent bdf7937a59
commit 96bbfb7c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1786,7 +1786,7 @@ injection-regex = "sql"
[[grammar]] [[grammar]]
name = "sql" name = "sql"
source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "7cbac0472e5b8f8486ce64ffbcf1982d5cd5fc8d" } source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "eeab7240a11098724e6f95bc57cc3ceaf5487d5f" }
[[language]] [[language]]
name = "gdscript" name = "gdscript"

@ -1,134 +1,168 @@
(invocation
(object_reference
name: (identifier) @function.method))
[ [
(keyword_gist)
(keyword_btree) (keyword_btree)
(keyword_hash) (keyword_hash)
(keyword_gist)
(keyword_spgist) (keyword_spgist)
(keyword_gin) (keyword_gin)
(keyword_brin) (keyword_brin)
(keyword_array)
(cast)
(group_concat)
(invocation)
] @function.builtin ] @function.builtin
(table_reference (object_reference
name: (identifier) @namespace) name: (identifier) @variable.other.member)
(relation (relation
table_alias: (identifier) @variable.parameter) alias: (identifier) @variable.parameter)
(field (field
name: (identifier) @variable.other.member) name: (identifier) @variable.other.member)
(field (term
table_alias: (identifier) @variable.parameter alias: (identifier) @variable.parameter)
name: (identifier) @variable.other.member)
(comment) @comment (term
value: (cast
name: (keyword_cast) @function.builtin
parameter: [(literal)]?))
[ (literal) @string
"(" (comment) @comment.line
")" (marginalia) @comment.block
] @punctuation.bracket
[ ((literal) @constant.numeric.integer
";" (#match? @constant.numeric.integer "^-?\\d+$"))
","
"."
] @punctuation.delimiter
(binary_expression ((literal) @constant.numeric.float
operator: _ @operator) (#match? @constant.numeric.float "^-?\\d*\\.\\d*$"))
(unary_expression (parameter) @variable.parameter
operator: _ @operator)
(all_fields) @special [
(keyword_true)
(keyword_false)
] @constant.builtin.boolean
[ [
(keyword_null) (keyword_asc)
(keyword_true) (keyword_desc)
(keyword_false) (keyword_terminated)
] @constant.builtin (keyword_escaped)
(keyword_unsigned)
(keyword_nulls)
(keyword_last)
(keyword_delimited)
(keyword_replication)
(keyword_auto_increment)
(keyword_default)
(keyword_collate)
(keyword_concurrently)
(keyword_engine)
(keyword_always)
(keyword_generated)
(keyword_preceding)
(keyword_following)
(keyword_first)
(keyword_current_timestamp)
(keyword_immutable)
(keyword_atomic)
(keyword_parallel)
(keyword_leakproof)
(keyword_safe)
(keyword_cost)
(keyword_strict)
] @attribute
((literal) @constant.numeric [
(#match? @constant.numeric "^-?\\d*\\.?\\d*$")) (keyword_materialized)
(keyword_recursive)
(keyword_temp)
(keyword_temporary)
(keyword_unlogged)
(keyword_external)
(keyword_parquet)
(keyword_csv)
(keyword_rcfile)
(keyword_textfile)
(keyword_orc)
(keyword_avro)
(keyword_jsonfile)
(keyword_sequencefile)
(keyword_volatile)
] @keyword.storage.type
(literal) @string [
(keyword_case)
(keyword_when)
(keyword_then)
(keyword_else)
] @keyword.control.conditional
[ [
(keyword_select) (keyword_select)
(keyword_from)
(keyword_where)
(keyword_index)
(keyword_join)
(keyword_primary)
(keyword_delete) (keyword_delete)
(keyword_create)
(keyword_insert) (keyword_insert)
(keyword_merge)
(keyword_distinct)
(keyword_replace) (keyword_replace)
(keyword_update) (keyword_update)
(keyword_into) (keyword_into)
(keyword_overwrite) (keyword_overwrite)
(keyword_matched)
(keyword_values) (keyword_values)
(keyword_value)
(keyword_attribute)
(keyword_set) (keyword_set)
(keyword_from)
(keyword_left) (keyword_left)
(keyword_right) (keyword_right)
(keyword_outer)
(keyword_inner) (keyword_inner)
(keyword_full) (keyword_full)
(keyword_outer)
(keyword_cross)
(keyword_join)
(keyword_lateral)
(keyword_on)
(keyword_not)
(keyword_order) (keyword_order)
(keyword_group)
(keyword_partition) (keyword_partition)
(keyword_by) (keyword_group)
(keyword_with)
(keyword_as)
(keyword_having) (keyword_having)
(keyword_desc)
(keyword_asc)
(keyword_limit) (keyword_limit)
(keyword_offset) (keyword_offset)
(keyword_primary)
(keyword_create)
(keyword_alter)
(keyword_change)
(keyword_analyze)
(keyword_modify)
(keyword_drop)
(keyword_add)
(keyword_table) (keyword_table)
(keyword_tables) (keyword_tables)
(keyword_view)
(keyword_materialized)
(keyword_column)
(keyword_key) (keyword_key)
(keyword_as) (keyword_references)
(keyword_distinct) (keyword_foreign)
(keyword_constraint) (keyword_constraint)
; (keyword_cast)
; (keyword_group_concat)
(keyword_separator)
(keyword_max)
(keyword_min)
(keyword_avg)
(keyword_end)
(keyword_force) (keyword_force)
(keyword_ignore)
(keyword_using)
(keyword_use) (keyword_use)
(keyword_index)
(keyword_for) (keyword_for)
(keyword_if) (keyword_if)
(keyword_exists) (keyword_exists)
(keyword_auto_increment) (keyword_max)
(keyword_generated) (keyword_min)
(keyword_always) (keyword_avg)
(keyword_collate) (keyword_column)
(keyword_character) (keyword_columns)
(keyword_engine) (keyword_cross)
(keyword_default) (keyword_lateral)
(keyword_cascade) (keyword_natural)
(keyword_restrict) (keyword_alter)
(keyword_with) (keyword_drop)
(keyword_add)
(keyword_view)
(keyword_end)
(keyword_is)
(keyword_using)
(keyword_between)
(keyword_window)
(keyword_no) (keyword_no)
(keyword_data) (keyword_data)
(keyword_type) (keyword_type)
@ -136,208 +170,222 @@
(keyword_to) (keyword_to)
(keyword_schema) (keyword_schema)
(keyword_owner) (keyword_owner)
(keyword_temp) (keyword_authorization)
(keyword_temporary)
(keyword_unlogged)
(keyword_union)
(keyword_all) (keyword_all)
(keyword_any) (keyword_any)
(keyword_some) (keyword_some)
(keyword_except)
(keyword_intersect)
(keyword_returning) (keyword_returning)
(keyword_begin) (keyword_begin)
(keyword_commit) (keyword_commit)
(keyword_rollback) (keyword_rollback)
(keyword_transaction) (keyword_transaction)
(keyword_only)
(keyword_like)
(keyword_similar)
(keyword_over) (keyword_over)
(keyword_nulls) (keyword_change)
(keyword_first) (keyword_modify)
(keyword_after) (keyword_after)
(keyword_last) (keyword_before)
(keyword_window)
(keyword_range) (keyword_range)
(keyword_rows) (keyword_rows)
(keyword_groups) (keyword_groups)
(keyword_between)
(keyword_unbounded)
(keyword_preceding)
(keyword_following)
(keyword_exclude) (keyword_exclude)
(keyword_current) (keyword_current)
(keyword_row)
(keyword_ties) (keyword_ties)
(keyword_others) (keyword_others)
(keyword_only)
(keyword_unique)
(keyword_foreign)
(keyword_references)
(keyword_concurrently)
; (keyword_btree)
; (keyword_hash)
; (keyword_gist)
; (keyword_spgist)
; (keyword_gin)
; (keyword_brin)
(keyword_like)
(keyword_similar)
(keyword_preserve) (keyword_preserve)
(keyword_unsigned)
(keyword_zerofill) (keyword_zerofill)
(keyword_conflict) (keyword_format)
(keyword_do) (keyword_fields)
(keyword_nothing) (keyword_row)
(keyword_high_priority) (keyword_sort)
(keyword_low_priority) (keyword_compute)
(keyword_delayed) (keyword_comment)
(keyword_recursive) (keyword_location)
(keyword_cascaded) (keyword_cached)
(keyword_local) (keyword_uncached)
(keyword_current_timestamp) (keyword_lines)
(keyword_check) (keyword_stored)
(keyword_option) (keyword_virtual)
(keyword_partitioned)
(keyword_analyze)
(keyword_explain)
(keyword_verbose)
(keyword_truncate)
(keyword_rewrite)
(keyword_optimize)
(keyword_vacuum) (keyword_vacuum)
(keyword_wait) (keyword_cache)
(keyword_nowait) (keyword_language)
(keyword_trigger)
(keyword_function)
(keyword_returns)
(keyword_return)
(keyword_setof)
(keyword_atomic)
(keyword_declare)
; (keyword_language)
(keyword_sql) (keyword_sql)
(keyword_called)
(keyword_conflict)
(keyword_declare)
(keyword_filter)
(keyword_function)
(keyword_input)
(keyword_name)
(keyword_oid)
(keyword_options)
(keyword_plpgsql) (keyword_plpgsql)
(keyword_immutable) (keyword_precision)
(keyword_stable) (keyword_regclass)
(keyword_volatile) (keyword_regnamespace)
(keyword_leakproof) (keyword_regproc)
(keyword_parallel) (keyword_regtype)
(keyword_safe)
(keyword_unsafe)
(keyword_restricted) (keyword_restricted)
(keyword_called) (keyword_return)
(keyword_returns) (keyword_returns)
(keyword_input) (keyword_separator)
(keyword_strict) (keyword_setof)
(keyword_cost) (keyword_stable)
(keyword_rows)
(keyword_support) (keyword_support)
(keyword_external)
(keyword_stored)
(keyword_cached)
(keyword_uncached)
(keyword_replication)
(keyword_tblproperties) (keyword_tblproperties)
(keyword_options) (keyword_trigger)
(keyword_compute) (keyword_unsafe)
(keyword_stats) (keyword_admin)
(keyword_statistics) (keyword_connection)
(keyword_optimize) (keyword_cycle)
(keyword_rewrite) (keyword_database)
(keyword_bin_pack) (keyword_encrypted)
(keyword_incremental) (keyword_increment)
(keyword_location) (keyword_logged)
(keyword_partitioned) (keyword_none)
(keyword_comment) (keyword_owned)
(keyword_sort) (keyword_password)
(keyword_format) (keyword_reset)
(keyword_delimited) (keyword_role)
(keyword_fields) (keyword_sequence)
(keyword_terminated) (keyword_start)
(keyword_escaped) (keyword_restart)
(keyword_lines) (keyword_tablespace)
(keyword_cache) (keyword_until)
(keyword_metadata) (keyword_user)
(keyword_noscan) (keyword_valid)
(keyword_action)
(keyword_parquet)
(keyword_rcfile)
(keyword_csv)
(keyword_textfile)
(keyword_avro)
(keyword_sequencefile)
(keyword_orc)
(keyword_avro)
(keyword_jsonfile)
(keyword_precision)
(keyword_inet)
] @keyword ] @keyword
[ [
(keyword_case) (keyword_restrict)
(keyword_when) (keyword_unbounded)
(keyword_then) (keyword_unique)
(keyword_else) (keyword_cascade)
(keyword_where) (keyword_delayed)
] @keyword.control.conditional (keyword_high_priority)
(keyword_low_priority)
[ (keyword_ignore)
(keyword_in) (keyword_nothing)
(keyword_and) (keyword_check)
(keyword_or) (keyword_option)
(keyword_is) (keyword_local)
] @keyword.operator (keyword_cascaded)
(keyword_wait)
(keyword_nowait)
(keyword_metadata)
(keyword_incremental)
(keyword_bin_pack)
(keyword_noscan)
(keyword_stats)
(keyword_statistics)
(keyword_maxvalue)
(keyword_minvalue)
] @keyword
[ [
(keyword_int)
(keyword_null)
(keyword_boolean) (keyword_boolean)
(bit)
(keyword_binary) (keyword_binary)
(keyword_varbinary)
(keyword_image)
(keyword_bit)
(keyword_inet)
(keyword_character)
(keyword_smallserial) (keyword_smallserial)
(keyword_serial) (keyword_serial)
(keyword_bigserial) (keyword_bigserial)
(keyword_smallint)
(tinyint) (keyword_mediumint)
(smallint) (keyword_bigint)
(mediumint) (keyword_tinyint)
(int) (keyword_decimal)
(bigint) (keyword_float)
(decimal) (keyword_double)
(numeric) (keyword_numeric)
(keyword_real) (keyword_real)
(double) (double)
(float)
(keyword_money) (keyword_money)
(keyword_smallmoney)
(char) (keyword_char)
(varchar) (keyword_nchar)
(numeric) (keyword_varchar)
(keyword_string) (keyword_nvarchar)
(keyword_varying)
(keyword_text) (keyword_text)
(keyword_string)
(keyword_uuid) (keyword_uuid)
(keyword_json) (keyword_json)
(keyword_jsonb) (keyword_jsonb)
(keyword_xml) (keyword_xml)
(keyword_bytea) (keyword_bytea)
(keyword_inet) (keyword_enum)
(enum)
(keyword_date) (keyword_date)
(keyword_datetime) (keyword_datetime)
(keyword_time)
(keyword_datetime2)
(keyword_datetimeoffset)
(keyword_smalldatetime)
(keyword_timestamp) (keyword_timestamp)
(keyword_timestamptz) (keyword_timestamptz)
(keyword_interval)
(keyword_geometry) (keyword_geometry)
(keyword_geography) (keyword_geography)
(keyword_box2d) (keyword_box2d)
(keyword_box3d) (keyword_box3d)
(keyword_interval)
(keyword_oid)
(keyword_name)
(keyword_regclass)
(keyword_regnamespace)
(keyword_regproc)
(keyword_regtype)
] @type.builtin ] @type.builtin
[
(keyword_in)
(keyword_and)
(keyword_or)
(keyword_not)
(keyword_by)
(keyword_on)
(keyword_do)
(keyword_union)
(keyword_except)
(keyword_intersect)
] @keyword.operator
[
"+"
"-"
"*"
"/"
"%"
"^"
":="
"="
"<"
"<="
"!="
">="
">"
"<>"
"->"
"->>"
"#>"
"#>>"
] @operator
[
"("
")"
] @punctuation.bracket
[
";"
","
"."
] @punctuation.delimiter

Loading…
Cancel
Save