Files

6 lines
16 KiB
JavaScript
Raw Permalink Normal View History

2025-08-27 14:05:33 +08:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Kusto\",\"fileTypes\":[\"csl\",\"kusto\",\"kql\"],\"name\":\"kusto\",\"patterns\":[{\"match\":\"\\\\b(by|from|of|to|step|with)\\\\b\",\"name\":\"keyword.other.operator.kusto\"},{\"match\":\"\\\\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\\\\b\",\"name\":\"keyword.control.kusto\"},{\"match\":\"\\\\b(and|or|has_all|has_any|matches|regex)\\\\b\",\"name\":\"keyword.other.operator.kusto\"},{\"captures\":{\"1\":{\"name\":\"support.function.kusto\"},\"2\":{\"patterns\":[{\"include\":\"#Strings\"}]}},\"match\":\"\\\\b(cluster|database)(?:\\\\s*\\\\(\\\\s*(.+?)\\\\s*\\\\))?(?!\\\\w)\",\"name\":\"meta.special.database.kusto\"},{\"match\":\"\\\\b(external_table|materialized_view|materialize|table|toscalar)\\\\b\",\"name\":\"support.function.kusto\"},{\"match\":\"(?<!\\\\w)(!?between)\\\\b\",\"name\":\"keyword.other.operator.kusto\"},{\"captures\":{\"1\":{\"name\":\"support.function.kusto\"},\"2\":{\"patterns\":[{\"include\":\"#Numeric\"}]},\"3\":{\"patterns\":[{\"include\":\"#Numeric\"}]}},\"match\":\"\\\\b(binary_and|binary_or|binary_shift_left|binary_shift_right|binary_xor)(?:\\\\s*\\\\(\\\\s*(\\\\w+)\\\\s*,\\\\s*(\\\\w+)\\\\s*\\\\))?(?!\\\\w)\",\"name\":\"meta.scalar.bitwise.kusto\"},{\"captures\":{\"1\":{\"name\":\"support.function.kusto\"},\"2\":{\"patterns\":[{\"include\":\"#Numeric\"}]}},\"match\":\"\\\\b(binary_not|bitset_count_ones)(?:\\\\s*\\\\(\\\\s*(\\\\w+)\\\\s*\\\\))?(?!\\\\w)\",\"name\":\"meta.scalar.bitwise.kusto\"},{\"match\":\"(?<!\\\\w)(!?in~?)(?!\\\\w)\",\"name\":\"keyword.other.operator.kusto\"},{\"match\":\"(?<!\\\\w)(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?!\\\\w)\",\"name\":\"keyword.other.operator.kusto\"},{\"captures\":{\"1\":{\"name\":\"support.function.kusto\"},\"2\":{\"patterns\":[{\"include\":\"#DateTimeTimeSpanDataTypes\"},{\"include\":\"#TimeSpanLiterals\"},{\"include\":\"#DateTimeTimeSpanFunctions\"},{\"include\":\"#Numeric\"}]},\"3\":{\"patterns\":[{\"include\":\"#DateTimeTimeSpanDataTypes\"},{\"include\":\"#TimeSpanLiterals\"},{\"include\":\"#DateTimeTimeSpanFunctions\"},{\"include\":\"#Numeric\"}]},\"4\":{\"patterns\":[{\"include\":\"#DateTimeTimeSpanDataTypes\"},{\"include\":\"#TimeSpanLiterals\"},{\"include\":\"#DateTimeTimeSpanFunctions\"},{\"include\":\"#Numeric\"}]}},\"match\":\"\\\\b(range)\\\\s*\\\\((?:\\\\s*(\\\\w+(?:\\\\(.*?\\\\))?)\\\\s*,\\\\s*(\\\\w+(?:\\\\(.*?\\\\))?)\\\\s*,?(?:\\\\s*)?(\\\\w+(?:\\\\(.*?\\\\))?)?\\\\s*\\\\))?(?!\\\\w)\",\"name\":\"meta.scalar.function.range.kusto\"},{\"match\":\"\\\\b(abs|acos|around|array_concat|array_iff|array_index_of|array_length|array_reverse|array_rotate_left|array_rotate_right|array_shift_left|array_shift_right|array_slice|array_sort_asc|array_sort_desc|array_split|array_sum|asin|assert|atan2|atan|bag_has_key|bag_keys|bag_merge|bag_remove_keys|base64_decode_toarray|base64_decode_tostring|base64_decode_toguid|base64_encode_fromarray|base64_encode_tostring|base64_encode_fromguid|beta_cdf|beta_inv|beta_pdf|bin_at|bin_auto|case|ceiling|coalesce|column_ifexists|convert_angle|convert_energy|convert_force|convert_length|convert_mass|convert_speed|convert_temperature|convert_volume|cos|cot|countof|current_cluster_endpoint|current_database|current_principal_details|current_principal_is_member_of|current_principal|cursor_after|cursor_before_or_at|cursor_current|current_cursor|dcount_hll|degrees|dynamic_to_json|estimate_data_size|exp10|exp2|exp|extent_id|extent_tags|extract_all|extract_json|extractjson|extract|floor|format_bytes|format_ipv4_mask|format_ipv4|gamma|gettype|gzip_compress_to_base64_string|gzip_decompress_from_base64_string|has_any_index|has_any_ipv4_prefix|has_any_ipv4|has_ipv4_prefix|has_ipv4|hash_combine|hash_many|hash_md5|hash_sha1|hash_sha256|hash_xxhash64|hash|iff|iif|indexof_regex|indexof|ingestion_time|ipv4_compare|ipv4_is_in_range|ipv4_is_in_any_range|ipv4_is_match|ipv4_is_private|ipv4_netmask_suffix|ipv6_compare|ipv6_is_match|isascii|isempty|isfinite|isinf|isnan|isnotempty|notempty|isnotnull|notnull|isnull|isutf8|jaccard_
export default [
lang
]