2023-10-09 17:29:30 +02:00
|
|
|
(invocation
|
|
|
|
(object_reference
|
|
|
|
name: (identifier) @function.method))
|
2023-02-02 23:44:36 +01:00
|
|
|
|
2023-02-23 01:04:33 +01:00
|
|
|
[
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_gist)
|
2023-02-23 01:04:33 +01:00
|
|
|
(keyword_btree)
|
|
|
|
(keyword_hash)
|
|
|
|
(keyword_spgist)
|
|
|
|
(keyword_gin)
|
|
|
|
(keyword_brin)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_array)
|
2023-02-23 01:04:33 +01:00
|
|
|
] @function.builtin
|
2022-10-30 17:54:37 +01:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
(object_reference
|
2022-10-30 17:54:37 +01:00
|
|
|
name: (identifier) @variable.other.member)
|
2023-10-09 17:29:30 +02:00
|
|
|
|
|
|
|
(relation
|
|
|
|
alias: (identifier) @variable.parameter)
|
|
|
|
|
2022-10-30 17:54:37 +01:00
|
|
|
(field
|
|
|
|
name: (identifier) @variable.other.member)
|
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
(term
|
|
|
|
alias: (identifier) @variable.parameter)
|
2022-04-14 20:26:20 +02:00
|
|
|
|
2024-02-24 04:28:25 +01:00
|
|
|
((term
|
2023-10-09 17:29:30 +02:00
|
|
|
value: (cast
|
|
|
|
name: (keyword_cast) @function.builtin
|
2024-02-24 04:28:25 +01:00
|
|
|
parameter: [(literal)]?)))
|
2022-04-14 20:26:20 +02:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
(literal) @string
|
|
|
|
(comment) @comment.line
|
|
|
|
(marginalia) @comment.block
|
2022-10-30 17:54:37 +01:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
((literal) @constant.numeric.integer
|
2024-02-24 04:28:25 +01:00
|
|
|
(#match? @constant.numeric.integer "^[-+]?\\d+$"))
|
2023-01-28 21:15:53 +01:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
((literal) @constant.numeric.float
|
2024-02-24 04:28:25 +01:00
|
|
|
(#match? @constant.numeric.float "^[-+]?\\d*\\.\\d*$"))
|
2023-01-28 21:15:53 +01:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
(parameter) @variable.parameter
|
2022-04-14 20:26:20 +02:00
|
|
|
|
|
|
|
[
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_true)
|
|
|
|
(keyword_false)
|
|
|
|
] @constant.builtin.boolean
|
2022-04-14 20:26:20 +02:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
[
|
|
|
|
(keyword_asc)
|
|
|
|
(keyword_desc)
|
|
|
|
(keyword_terminated)
|
|
|
|
(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
|
2022-04-14 20:26:20 +02:00
|
|
|
|
2023-10-09 17:29:30 +02:00
|
|
|
[
|
|
|
|
(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
|
|
|
|
|
|
|
|
[
|
|
|
|
(keyword_case)
|
|
|
|
(keyword_when)
|
|
|
|
(keyword_then)
|
|
|
|
(keyword_else)
|
|
|
|
] @keyword.control.conditional
|
2023-01-28 21:15:53 +01:00
|
|
|
|
2022-04-14 20:26:20 +02:00
|
|
|
[
|
|
|
|
(keyword_select)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_from)
|
|
|
|
(keyword_where)
|
|
|
|
(keyword_index)
|
|
|
|
(keyword_join)
|
|
|
|
(keyword_primary)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_delete)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_create)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_insert)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_merge)
|
|
|
|
(keyword_distinct)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_replace)
|
|
|
|
(keyword_update)
|
|
|
|
(keyword_into)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_overwrite)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_matched)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_values)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_value)
|
|
|
|
(keyword_attribute)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_set)
|
|
|
|
(keyword_left)
|
|
|
|
(keyword_right)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_outer)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_inner)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_full)
|
2022-10-30 17:54:37 +01:00
|
|
|
(keyword_order)
|
|
|
|
(keyword_partition)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_group)
|
|
|
|
(keyword_with)
|
2023-11-18 02:24:59 +01:00
|
|
|
(keyword_without)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_as)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_having)
|
|
|
|
(keyword_limit)
|
|
|
|
(keyword_offset)
|
|
|
|
(keyword_table)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_tables)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_key)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_references)
|
|
|
|
(keyword_foreign)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_constraint)
|
|
|
|
(keyword_force)
|
|
|
|
(keyword_use)
|
|
|
|
(keyword_for)
|
|
|
|
(keyword_if)
|
|
|
|
(keyword_exists)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_max)
|
|
|
|
(keyword_min)
|
|
|
|
(keyword_avg)
|
|
|
|
(keyword_column)
|
|
|
|
(keyword_columns)
|
|
|
|
(keyword_cross)
|
|
|
|
(keyword_lateral)
|
|
|
|
(keyword_natural)
|
|
|
|
(keyword_alter)
|
|
|
|
(keyword_drop)
|
|
|
|
(keyword_add)
|
|
|
|
(keyword_view)
|
|
|
|
(keyword_end)
|
|
|
|
(keyword_is)
|
|
|
|
(keyword_using)
|
|
|
|
(keyword_between)
|
|
|
|
(keyword_window)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_no)
|
|
|
|
(keyword_data)
|
|
|
|
(keyword_type)
|
|
|
|
(keyword_rename)
|
|
|
|
(keyword_to)
|
|
|
|
(keyword_schema)
|
|
|
|
(keyword_owner)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_authorization)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_all)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_any)
|
|
|
|
(keyword_some)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_returning)
|
|
|
|
(keyword_begin)
|
|
|
|
(keyword_commit)
|
|
|
|
(keyword_rollback)
|
|
|
|
(keyword_transaction)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_only)
|
|
|
|
(keyword_like)
|
|
|
|
(keyword_similar)
|
2023-02-02 23:44:36 +01:00
|
|
|
(keyword_over)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_change)
|
|
|
|
(keyword_modify)
|
2023-02-23 01:04:33 +01:00
|
|
|
(keyword_after)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_before)
|
2023-02-02 23:44:36 +01:00
|
|
|
(keyword_range)
|
|
|
|
(keyword_rows)
|
|
|
|
(keyword_groups)
|
|
|
|
(keyword_exclude)
|
|
|
|
(keyword_current)
|
|
|
|
(keyword_ties)
|
|
|
|
(keyword_others)
|
|
|
|
(keyword_preserve)
|
2023-02-23 01:04:33 +01:00
|
|
|
(keyword_zerofill)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_format)
|
|
|
|
(keyword_fields)
|
|
|
|
(keyword_row)
|
|
|
|
(keyword_sort)
|
|
|
|
(keyword_compute)
|
|
|
|
(keyword_comment)
|
|
|
|
(keyword_location)
|
|
|
|
(keyword_cached)
|
|
|
|
(keyword_uncached)
|
|
|
|
(keyword_lines)
|
|
|
|
(keyword_stored)
|
|
|
|
(keyword_virtual)
|
|
|
|
(keyword_partitioned)
|
|
|
|
(keyword_analyze)
|
|
|
|
(keyword_explain)
|
|
|
|
(keyword_verbose)
|
|
|
|
(keyword_truncate)
|
|
|
|
(keyword_rewrite)
|
|
|
|
(keyword_optimize)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_vacuum)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_cache)
|
|
|
|
(keyword_language)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_sql)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_called)
|
|
|
|
(keyword_conflict)
|
|
|
|
(keyword_declare)
|
|
|
|
(keyword_filter)
|
|
|
|
(keyword_function)
|
|
|
|
(keyword_input)
|
|
|
|
(keyword_name)
|
|
|
|
(keyword_oid)
|
2023-11-18 02:24:59 +01:00
|
|
|
(keyword_oids)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_options)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_plpgsql)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_precision)
|
|
|
|
(keyword_regclass)
|
|
|
|
(keyword_regnamespace)
|
|
|
|
(keyword_regproc)
|
|
|
|
(keyword_regtype)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_restricted)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_return)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_returns)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_separator)
|
|
|
|
(keyword_setof)
|
|
|
|
(keyword_stable)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_support)
|
2023-02-23 01:04:33 +01:00
|
|
|
(keyword_tblproperties)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_trigger)
|
|
|
|
(keyword_unsafe)
|
|
|
|
(keyword_admin)
|
|
|
|
(keyword_connection)
|
|
|
|
(keyword_cycle)
|
|
|
|
(keyword_database)
|
|
|
|
(keyword_encrypted)
|
|
|
|
(keyword_increment)
|
|
|
|
(keyword_logged)
|
|
|
|
(keyword_none)
|
|
|
|
(keyword_owned)
|
|
|
|
(keyword_password)
|
|
|
|
(keyword_reset)
|
|
|
|
(keyword_role)
|
|
|
|
(keyword_sequence)
|
|
|
|
(keyword_start)
|
|
|
|
(keyword_restart)
|
|
|
|
(keyword_tablespace)
|
|
|
|
(keyword_until)
|
|
|
|
(keyword_user)
|
|
|
|
(keyword_valid)
|
|
|
|
(keyword_action)
|
2023-11-18 02:24:59 +01:00
|
|
|
(keyword_definer)
|
|
|
|
(keyword_invoker)
|
|
|
|
(keyword_security)
|
|
|
|
(keyword_extension)
|
|
|
|
(keyword_version)
|
|
|
|
(keyword_out)
|
|
|
|
(keyword_inout)
|
|
|
|
(keyword_variadic)
|
|
|
|
(keyword_session)
|
|
|
|
(keyword_isolation)
|
|
|
|
(keyword_level)
|
|
|
|
(keyword_serializable)
|
|
|
|
(keyword_repeatable)
|
|
|
|
(keyword_read)
|
|
|
|
(keyword_write)
|
|
|
|
(keyword_committed)
|
|
|
|
(keyword_uncommitted)
|
|
|
|
(keyword_deferrable)
|
|
|
|
(keyword_names)
|
|
|
|
(keyword_zone)
|
|
|
|
(keyword_immediate)
|
|
|
|
(keyword_deferred)
|
|
|
|
(keyword_constraints)
|
|
|
|
(keyword_snapshot)
|
|
|
|
(keyword_characteristics)
|
|
|
|
(keyword_off)
|
|
|
|
(keyword_follows)
|
|
|
|
(keyword_precedes)
|
|
|
|
(keyword_each)
|
|
|
|
(keyword_instead)
|
|
|
|
(keyword_of)
|
|
|
|
(keyword_initially)
|
|
|
|
(keyword_old)
|
|
|
|
(keyword_new)
|
|
|
|
(keyword_referencing)
|
|
|
|
(keyword_statement)
|
|
|
|
(keyword_execute)
|
|
|
|
(keyword_procedure)
|
2022-04-14 20:26:20 +02:00
|
|
|
] @keyword
|
|
|
|
|
|
|
|
[
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_restrict)
|
|
|
|
(keyword_unbounded)
|
|
|
|
(keyword_unique)
|
|
|
|
(keyword_cascade)
|
|
|
|
(keyword_delayed)
|
|
|
|
(keyword_high_priority)
|
|
|
|
(keyword_low_priority)
|
|
|
|
(keyword_ignore)
|
|
|
|
(keyword_nothing)
|
|
|
|
(keyword_check)
|
|
|
|
(keyword_option)
|
|
|
|
(keyword_local)
|
|
|
|
(keyword_cascaded)
|
|
|
|
(keyword_wait)
|
|
|
|
(keyword_nowait)
|
|
|
|
(keyword_metadata)
|
|
|
|
(keyword_incremental)
|
|
|
|
(keyword_bin_pack)
|
|
|
|
(keyword_noscan)
|
|
|
|
(keyword_stats)
|
|
|
|
(keyword_statistics)
|
|
|
|
(keyword_maxvalue)
|
|
|
|
(keyword_minvalue)
|
|
|
|
] @keyword
|
2022-04-14 20:26:20 +02:00
|
|
|
|
|
|
|
[
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_int)
|
|
|
|
(keyword_null)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_boolean)
|
2023-06-20 00:04:40 +02:00
|
|
|
(keyword_binary)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_varbinary)
|
|
|
|
(keyword_image)
|
|
|
|
(keyword_bit)
|
|
|
|
(keyword_inet)
|
|
|
|
(keyword_character)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_smallserial)
|
|
|
|
(keyword_serial)
|
|
|
|
(keyword_bigserial)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_smallint)
|
|
|
|
(keyword_mediumint)
|
|
|
|
(keyword_bigint)
|
|
|
|
(keyword_tinyint)
|
|
|
|
(keyword_decimal)
|
|
|
|
(keyword_float)
|
|
|
|
(keyword_double)
|
|
|
|
(keyword_numeric)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_real)
|
|
|
|
(double)
|
|
|
|
(keyword_money)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_smallmoney)
|
|
|
|
(keyword_char)
|
|
|
|
(keyword_nchar)
|
|
|
|
(keyword_varchar)
|
|
|
|
(keyword_nvarchar)
|
|
|
|
(keyword_varying)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_text)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_string)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_uuid)
|
|
|
|
(keyword_json)
|
|
|
|
(keyword_jsonb)
|
|
|
|
(keyword_xml)
|
|
|
|
(keyword_bytea)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_enum)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_date)
|
|
|
|
(keyword_datetime)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_time)
|
|
|
|
(keyword_datetime2)
|
|
|
|
(keyword_datetimeoffset)
|
|
|
|
(keyword_smalldatetime)
|
2022-04-14 20:26:20 +02:00
|
|
|
(keyword_timestamp)
|
|
|
|
(keyword_timestamptz)
|
|
|
|
(keyword_geometry)
|
|
|
|
(keyword_geography)
|
|
|
|
(keyword_box2d)
|
|
|
|
(keyword_box3d)
|
2023-10-09 17:29:30 +02:00
|
|
|
(keyword_interval)
|
2022-04-14 20:26:20 +02:00
|
|
|
] @type.builtin
|
2023-10-09 17:29:30 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
(keyword_in)
|
|
|
|
(keyword_and)
|
|
|
|
(keyword_or)
|
|
|
|
(keyword_not)
|
|
|
|
(keyword_by)
|
|
|
|
(keyword_on)
|
|
|
|
(keyword_do)
|
|
|
|
(keyword_union)
|
|
|
|
(keyword_except)
|
|
|
|
(keyword_intersect)
|
|
|
|
] @keyword.operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"+"
|
|
|
|
"-"
|
|
|
|
"*"
|
|
|
|
"/"
|
|
|
|
"%"
|
|
|
|
"^"
|
|
|
|
":="
|
|
|
|
"="
|
|
|
|
"<"
|
|
|
|
"<="
|
|
|
|
"!="
|
|
|
|
">="
|
|
|
|
">"
|
|
|
|
"<>"
|
2023-11-18 02:24:59 +01:00
|
|
|
(op_other)
|
|
|
|
(op_unary_other)
|
2023-10-09 17:29:30 +02:00
|
|
|
] @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"("
|
|
|
|
")"
|
|
|
|
] @punctuation.bracket
|
|
|
|
|
|
|
|
[
|
|
|
|
";"
|
|
|
|
","
|
|
|
|
"."
|
|
|
|
] @punctuation.delimiter
|