@shikijs/langs-precompiled 3.20.0 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kusto.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
 
3
- const lang = Object.freeze({displayName:"Kusto",fileTypes:["csl","kusto","kql"],name:"kusto",patterns:[{match:/\b(by|from|of|to|step|with)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\b/dgv,name:"keyword.control.kusto"},{match:/\b(and|or|has_all|has_any|matches|regex)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Strings"}]}},match:/\b(cluster|database)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.special.database.kusto"},{match:/\b(external_table|materialized_view|materialize|table|toscalar)\b/dgv,name:"support.function.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?between)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{patterns:[{include:"#Numeric"}]}},match:/\b(binary_(?:and|or|shift_left|shift_right|xor))(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(bi(?:nary_not|tset_count_ones))(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?in~?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"keyword.other.operator.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,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)\p{space}*\((?:\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,?(?:\p{space}*)?([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)?\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,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?|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?|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_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\b/dgv,name:"support.function.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"3":{patterns:[{include:"#TimeSpanLiterals"},{include:"#Numeric"}]}},match:/\b(bin)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.bin.kusto"},{match:/\b(count)\p{space}*\(\p{space}*\)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"support.function.kusto"},{match:/\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles?|stdevif|stdevp?|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep?)\b/dgv,name:"support.function.kusto"},{match:/\b(geo_(?:distance_2points|distance_point_to_line|distance_point_to_polygon|intersects_2lines|intersects_2polygons|intersects_line_with_polygon|intersection_2lines|intersection_2polygons|intersection_line_with_polygon|line_centroid|line_densify|line_length|line_simplify|polygon_area|polygon_centroid|polygon_densify|polygon_perimeter|polygon_simplify|polygon_to_s2cells|point_in_circle|point_in_polygon|point_to_geohash|point_to_h3cell|point_to_s2cell|geohash_to_central_point|geohash_neighbors|geohash_to_polygon|s2cell_to_central_point|s2cell_neighbors|s2cell_to_polygon|h3cell_to_central_point|h3cell_neighbors|h3cell_to_polygon|h3cell_parent|h3cell_children|h3cell_level|h3cell_rings|simplify_polygons_array|union_lines_array|union_polygons_array))\b/dgv,name:"support.function.kusto"},{match:/\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\b/dgv,name:"support.function.kusto"},{match:/\.(create-or-alter|replace)/dgv,name:"keyword.control.kusto"},{match:/(?<=let )[^\n]+(?=[^\p{L}\p{M}\p{N}\p{Pc}]*=)/dgv,name:"entity.function.name.lambda.kusto"},{match:/\b(folder|docstring|skipvalidation)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(function)\b/dgv,name:"storage.type.kusto"},{match:/\b(bool|decimal|dynamic|guid|int|long|real|string)\b/dgv,name:"storage.type.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.kusto"}},match:/\b(as)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,name:"meta.query.as.kusto"},{match:/\b(datatable)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"keyword.other.query.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},match:/\b(facet)(?:\p{space}+(by))?\b/dgv,name:"meta.query.facet.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"entity.name.function.kusto"}},match:/\b(invoke)(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.invoke.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"},"3":{name:"variable.other.column.kusto"}},match:/\b(order)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.order.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.column.kusto"},"3":{name:"keyword.other.operator.kusto"},"4":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"5":{name:"keyword.other.operator.kusto"},"6":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"7":{name:"keyword.other.operator.kusto"},"8":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},match:/\b(range)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(from)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(to)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(step)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\b/dgv,name:"meta.query.range.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(sample)(?:\p{space}+(\p{Nd}+))?(?![\-\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.query.sample.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},match:/\b(sample-distinct)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.sample-distinct.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},match:/\b(sort)(?:\p{space}+(by))?\b/dgv,name:"meta.query.sort.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(take|limit)\p{space}+(\p{Nd}+)\b/dgv,name:"meta.query.take.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},match:/\b(top)(?:\p{space}+(\p{Nd}+)\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?(?![\-\p{L}\p{M}\p{N}\p{Pc}])\b/dgv,name:"meta.query.top.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"},"5":{name:"keyword.other.operator.kusto"},"6":{name:"variable.other.column.kusto"}},match:/\b(top-hitters)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?)?\b/dgv,name:"meta.query.top-hitters.kusto"},{match:/\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\b/dgv,name:"keyword.other.query.kusto"},{match:/\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\b/dgv,name:"support.function.kusto"},{match:/\b(on|kind|hint\.remote|hint\.strategy)\b/dgv,name:"keyword.other.operator.kusto"},{match:/(\$(?:left|right))\b/dgv,name:"keyword.other.kusto"},{match:/\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\b/dgv,name:"keyword.other.kusto"},{match:/\b(series_(?:abs|acos|add|asin|atan|cos|decompose|decompose_anomalies|decompose_forecast|divide|equals|exp|fft|fill_backward|fill_const|fill_forward|fill_linear|fir|fit_2lines_dynamic|fit_2lines|fit_line_dynamic|fit_line|fit_poly|greater_equals|greater|ifft|iir|less_equals|less|multiply|not_equals|outliers|pearson_correlation|periods_detect|periods_validate|pow|seasonal|sign|sin|stats|stats_dynamic|subtract|tan))\b/dgv,name:"support.function.kusto"},{match:/\b(bag|array)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(asc|desc|nulls first|nulls last)\b/dgv,name:"keyword.other.kusto"},{match:/\b(regex|simple|relaxed)\b/dgv,name:"keyword.other.kusto"},{match:/\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\b/dgv,name:"support.function.kusto"},{include:"#Strings"},{match:/\{[^\n]*?\}/dgv,name:"string.other.kusto"},{match:/\/\/[^\n]*/dgv,name:"comment.line.kusto"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#DateTimeTimeSpanDataTypes"},{include:"#Numeric"},{match:/\b(true|false|null)\b/dgv,name:"constant.language.kusto"},{match:/\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\(|\b)/dgv,name:"invalid.deprecated.kusto"}],repository:{DateTimeTimeSpanDataTypes:{patterns:[{match:/\b(datetime|timespan|time)\b/dgv,name:"storage.type.kusto"}]},DateTimeTimeSpanFunctions:{patterns:[{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"}]},"3":{patterns:[{include:"#Strings"}]}},match:/\b(format_datetime)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*(["'][^\n]*?["'])\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.format_datetime.kusto"},{match:/\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"support.function.kusto"}]},Escapes:{patterns:[{match:/(\\["'\\])/dgv,name:"constant.character.escape.kusto"}]},Numeric:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("\\b((0([Xx])\\p{AHex}*)|(([0-9]+\\.?(?:(?=([0-9]*))\\6))|(\\.[0-9]+))(([Ee])([\\-\\+])?[0-9]+)?)([Ll]|UL|ul|[FUfu]|ll|LL|ull|ULL)?(?=\\b|[\\p{L}\\p{M}\\p{N}\\p{Pc}])","dgv",{"hiddenCaptures":[6]}),name:"constant.numeric.kusto"}]},Strings:{patterns:[{begin:/([\@h]?")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.double.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.single.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?```)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/```/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.multi.kusto",patterns:[{include:"#Escapes"}]}]},TimeSpanLiterals:{patterns:[{match:/[\-\+]?(?:\p{Nd}*\.)?\p{Nd}+(?:microseconds?|ticks?|seconds?|ms|[dhms])\b/dgv,name:"constant.numeric.kusto"}]}},scopeName:"source.kusto",embeddedLangs:undefined,aliases:["kql"]})
3
+ const lang = Object.freeze({displayName:"Kusto",fileTypes:["csl","kusto","kql"],name:"kusto",patterns:[{match:/\b(by|from|of|to|step|with)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\b/dgv,name:"keyword.control.kusto"},{match:/\b(and|or|has_all|has_any|matches|regex)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Strings"}]}},match:/\b(cluster|database)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.special.database.kusto"},{match:/\b(external_table|materialized_view|materialize|table|toscalar)\b/dgv,name:"support.function.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?between)\b/dgv,name:"keyword.other.operator.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{patterns:[{include:"#Numeric"}]}},match:/\b(binary_(?:and|or|shift_left|shift_right|xor))(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(bi(?:nary_not|tset_count_ones))(?:\p{space}*\(\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.bitwise.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?in~?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"keyword.other.operator.kusto"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(!?(?:contains|endswith|hasprefix|hassuffix|has|startswith)(?:_cs)?)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,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)\p{space}*\((?:\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)\p{space}*,?(?:\p{space}*)?([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([^\n]*?\))?)?\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,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?|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?|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_index|log10|log2|loggamma|log|make_string|max_of|min_of|new_guid|not|bag_pack|pack_all|pack_array|pack_dictionary|pack|parse_command_line|parse_csv|parse_ipv4_mask|parse_ipv4|parse_ipv6_mask|parse_ipv6|parse_path|parse_urlquery|parse_url|parse_user_agent|parse_version|parse_xml|percentile_tdigest|percentile_array_tdigest|percentrank_tdigest|pi|pow|radians|rand|rank_tdigest|regex_quote|repeat|replace_regex|replace_string|reverse|round|set_difference|set_has_element|set_intersect|set_union|sign|sin|split|sqrt|strcat_array|strcat_delim|strcmp|strcat|string_size|strlen|strrep|substring|tan|to_utf8|tobool|todecimal|todouble|toreal|toguid|tohex|toint|tolong|tolower|tostring|toupper|translate|treepath|trim_end|trim_start|trim|unixtime_microseconds_todatetime|unixtime_milliseconds_todatetime|unixtime_nanoseconds_todatetime|unixtime_seconds_todatetime|url_decode|url_encode_component|url_encode|welch_test|zip|zlib_compress_to_base64_string|zlib_decompress_from_base64_string)\b/dgv,name:"support.function.kusto"},{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"3":{patterns:[{include:"#TimeSpanLiterals"},{include:"#Numeric"}]}},match:/\b(bin)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*([^\n]+?)\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.bin.kusto"},{match:/\b(count)\p{space}*\(\p{space}*\)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"support.function.kusto"},{match:/\b(arg_max|arg_min|avgif|avg|binary_all_and|binary_all_or|binary_all_xor|buildschema|countif|dcount|dcountif|hll|hll_merge|make_bag_if|make_bag|make_list_with_nulls|make_list_if|make_list|make_set_if|make_set|maxif|max|minif|min|percentilesw_array|percentiles_array|percentilesw|percentilew|percentiles?|stdevif|stdevp?|sumif|sum|take_anyif|take_any|tdigest_merge|merge_tdigest|tdigest|varianceif|variancep?)\b/dgv,name:"support.function.kusto"},{match:/\b(geo_(?:distance_2points|distance_point_to_line|distance_point_to_polygon|intersects_2lines|intersects_2polygons|intersects_line_with_polygon|intersection_2lines|intersection_2polygons|intersection_line_with_polygon|line_centroid|line_densify|line_length|line_simplify|polygon_area|polygon_centroid|polygon_densify|polygon_perimeter|polygon_simplify|polygon_to_s2cells|point_in_circle|point_in_polygon|point_to_geohash|point_to_h3cell|point_to_s2cell|geohash_to_central_point|geohash_neighbors|geohash_to_polygon|s2cell_to_central_point|s2cell_neighbors|s2cell_to_polygon|h3cell_to_central_point|h3cell_neighbors|h3cell_to_polygon|h3cell_parent|h3cell_children|h3cell_level|h3cell_rings|simplify_polygons_array|union_lines_array|union_polygons_array))\b/dgv,name:"support.function.kusto"},{match:/\b(next|prev|row_cumsum|row_number|row_rank|row_window_session)\b/dgv,name:"support.function.kusto"},{match:/\.(create-or-alter|replace)/dgv,name:"keyword.control.kusto"},{match:/(?<=let )[^\n]+(?=[^\p{L}\p{M}\p{N}\p{Pc}]*=)/dgv,name:"entity.function.name.lambda.kusto"},{match:/\b(folder|docstring|skipvalidation)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(function)\b/dgv,name:"storage.type.kusto"},{match:/\b(bool|boolean|decimal|dynamic|guid|int|long|real|string)\b/dgv,name:"storage.type.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.kusto"}},match:/\b(as)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,name:"meta.query.as.kusto"},{match:/\b(datatable)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"keyword.other.query.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},match:/\b(facet)(?:\p{space}+(by))?\b/dgv,name:"meta.query.facet.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"entity.name.function.kusto"}},match:/\b(invoke)(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.invoke.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"},"3":{name:"variable.other.column.kusto"}},match:/\b(order)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.order.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"variable.other.column.kusto"},"3":{name:"keyword.other.operator.kusto"},"4":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"5":{name:"keyword.other.operator.kusto"},"6":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]},"7":{name:"keyword.other.operator.kusto"},"8":{patterns:[{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#Numeric"}]}},match:/\b(range)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(from)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(to)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\p{space}+(step)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+(?:\([\p{L}\p{M}\p{N}\p{Pc}]*\))?)\b/dgv,name:"meta.query.range.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(sample)(?:\p{space}+(\p{Nd}+))?(?![\-\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.query.sample.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},match:/\b(sample-distinct)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?\b/dgv,name:"meta.query.sample-distinct.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{name:"keyword.other.operator.kusto"}},match:/\b(sort)(?:\p{space}+(by))?\b/dgv,name:"meta.query.sort.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]}},match:/\b(take|limit)\p{space}+(\p{Nd}+)\b/dgv,name:"meta.query.take.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"}},match:/\b(top)(?:\p{space}+(\p{Nd}+)\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?(?![\-\p{L}\p{M}\p{N}\p{Pc}])\b/dgv,name:"meta.query.top.kusto"},{captures:{"1":{name:"keyword.other.query.kusto"},"2":{patterns:[{include:"#Numeric"}]},"3":{name:"keyword.other.operator.kusto"},"4":{name:"variable.other.column.kusto"},"5":{name:"keyword.other.operator.kusto"},"6":{name:"variable.other.column.kusto"}},match:/\b(top-hitters)(?:\p{space}+(\p{Nd}+)\p{space}+(of)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:\p{space}+(by)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?)?\b/dgv,name:"meta.query.top-hitters.kusto"},{match:/\b(consume|count|distinct|evaluate|extend|externaldata|find|fork|getschema|join|lookup|make-series|mv-apply|mv-expand|project-away|project-keep|project-rename|project-reorder|project|parse|parse-where|parse-kv|partition|print|reduce|render|scan|search|serialize|shuffle|summarize|top-nested|union|where)\b/dgv,name:"keyword.other.query.kusto"},{match:/\b(active_users_count|activity_counts_metrics|activity_engagement|new_activity_metrics|activity_metrics|autocluster|azure_digital_twins_query_request|bag_unpack|basket|cosmosdb_sql_request|dcount_intersect|diffpatterns|funnel_sequence_completion|funnel_sequence|http_request_post|http_request|infer_storage_schema|ipv4_lookup|mysql_request|narrow|pivot|preview|rolling_percentile|rows_near|schema_merge|session_count|sequence_detect|sliding_window_counts|sql_request)\b/dgv,name:"support.function.kusto"},{match:/\b(on|kind|hint\.remote|hint\.strategy)\b/dgv,name:"keyword.other.operator.kusto"},{match:/(\$(?:left|right))\b/dgv,name:"keyword.other.kusto"},{match:/\b(innerunique|inner|leftouter|rightouter|fullouter|leftanti|anti|leftantisemi|rightanti|rightantisemi|leftsemi|rightsemi|broadcast)\b/dgv,name:"keyword.other.kusto"},{match:/\b(series_(?:abs|acos|add|asin|atan|cos|decompose|decompose_anomalies|decompose_forecast|divide|equals|exp|fft|fill_backward|fill_const|fill_forward|fill_linear|fir|fit_2lines_dynamic|fit_2lines|fit_line_dynamic|fit_line|fit_poly|greater_equals|greater|ifft|iir|less_equals|less|multiply|not_equals|outliers|pearson_correlation|periods_detect|periods_validate|pow|seasonal|sign|sin|stats|stats_dynamic|subtract|tan))\b/dgv,name:"support.function.kusto"},{match:/\b(bag|array)\b/dgv,name:"keyword.other.operator.kusto"},{match:/\b(asc|desc|nulls first|nulls last)\b/dgv,name:"keyword.other.kusto"},{match:/\b(regex|simple|relaxed)\b/dgv,name:"keyword.other.kusto"},{match:/\b(anomalychart|areachart|barchart|card|columnchart|ladderchart|linechart|piechart|pivotchart|scatterchart|stackedareachart|timechart|timepivot)\b/dgv,name:"support.function.kusto"},{include:"#Strings"},{match:/\{[^\n]*?\}/dgv,name:"string.other.kusto"},{match:/\/\/[^\n]*/dgv,name:"comment.line.kusto"},{include:"#TimeSpanLiterals"},{include:"#DateTimeTimeSpanFunctions"},{include:"#DateTimeTimeSpanDataTypes"},{include:"#Numeric"},{match:/\b(true|false|null)\b/dgv,name:"constant.language.kusto"},{match:/\b(anyif|any|array_strcat|base64_decodestring|base64_encodestring|make_dictionary|makelist|makeset|mvexpand|todynamic|parse_json|replace|weekofyear)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\(|\b)/dgv,name:"invalid.deprecated.kusto"}],repository:{DateTimeTimeSpanDataTypes:{patterns:[{match:/\b(datetime|timespan|time)\b/dgv,name:"storage.type.kusto"}]},DateTimeTimeSpanFunctions:{patterns:[{captures:{"1":{name:"support.function.kusto"},"2":{patterns:[{include:"#DateTimeTimeSpanDataTypes"}]},"3":{patterns:[{include:"#Strings"}]}},match:/\b(format_datetime)(?:\p{space}*\(\p{space}*([^\n]+?)\p{space}*,\p{space}*(["'][^\n]*?["'])\p{space}*\))?(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.scalar.function.format_datetime.kusto"},{match:/\b(ago|datetime_add|datetime_diff|datetime_local_to_utc|datetime_part|datetime_utc_to_local|dayofmonth|dayofweek|dayofyear|endofday|endofmonth|endofweek|endofyear|format_timespan|getmonth|getyear|hourofday|make_datetime|make_timespan|monthofyear|now|startofday|startofmonth|startofweek|startofyear|todatetime|totimespan|week_of_year)(?=[^\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,name:"support.function.kusto"}]},Escapes:{patterns:[{match:/(\\["'\\])/dgv,name:"constant.character.escape.kusto"}]},Numeric:{patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("\\b((0([Xx])\\p{AHex}*)|(([0-9]+\\.?(?:(?=([0-9]*))\\6))|(\\.[0-9]+))(([Ee])([\\-\\+])?[0-9]+)?)([Ll]|UL|ul|[FUfu]|ll|LL|ull|ULL)?(?=\\b|[\\p{L}\\p{M}\\p{N}\\p{Pc}])","dgv",{"hiddenCaptures":[6]}),name:"constant.numeric.kusto"}]},Strings:{patterns:[{begin:/([\@h]?")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.double.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.single.kusto",patterns:[{include:"#Escapes"}]},{begin:/([\@h]?```)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.kusto"}},end:/```/dgv,endCaptures:{"0":{name:"punctuation.definition.string.kusto"}},name:"string.quoted.multi.kusto",patterns:[{include:"#Escapes"}]}]},TimeSpanLiterals:{patterns:[{match:/[\-\+]?(?:\p{Nd}*\.)?\p{Nd}+(?:microseconds?|ticks?|seconds?|ms|[dhms])\b/dgv,name:"constant.numeric.kusto"}]}},scopeName:"source.kusto",embeddedLangs:undefined,aliases:["kql"]})
4
4
 
5
5
  export default [
6
6
  lang
package/dist/lean.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"Lean 4",fileTypes:[],name:"lean",patterns:[{include:"#comments"},{match:/\b(Prop|Type|Sort)\b/dgv,name:"storage.type.lean4"},{captures:{"1":{name:"storage.modifier.lean4"},"2":{name:"storage.modifier.lean4"},"3":{name:"storage.modifier.lean4"}},match:/\b(attribute\b\p{space}*)(?:(\[[^\]\p{space}]*\])|\[([^\]\p{space}]*))/dgv},{captures:{"1":{name:"storage.modifier.lean4"},"2":{name:"storage.modifier.lean4"},"3":{name:"storage.modifier.lean4"}},match:/(@)(?:(\[[^\]\p{space}]*\])|\[([^\]\p{space}]*))/dgv},{match:/\b(?<!\.)(local|scoped|partial|unsafe|nonrec|public|private|protected|noncomputable|meta)(?!\.)\b/dgv,name:"storage.modifier.lean4"},{match:/\b(sorry|admit|#exit)\b/dgv,name:"invalid.illegal.lean4"},{match:/#(print|eval!??|reduce|synth|widget|where|version|with_exporting|check|check_tactic|check_tactic_failure|check_failure|check_simp|discr_tree_key|discr_tree_simp_key|guard|guard_expr|guard_msgs)\b/dgv,name:"keyword.other.lean4"},{match:/\bderiving\p{space}+instance\b/dgv,name:"keyword.other.command.lean4"},{begin:/\b(?<!\.)(inductive|coinductive|structure|theorem|axiom|abbrev|lemma|def|instance|class)\b\p{space}+(\{[^\}]*\})?/dgv,beginCaptures:{"1":{name:"keyword.other.definitioncommand.lean4"}},end:/(?=\bwith\b|\bextends\b|\bwhere\b|[\(\:\<\>\[\{\|⦃])/dgv,name:"meta.definitioncommand.lean4",patterns:[{include:"#comments"},{include:"#definitionName"},{match:/,/dgv}]},{match:/\b(?<!\.)(theorem|show|have|using|haveI|from|suffices|nomatch|nofun|no_index|def|class|structure|instance|elab|set_option|initialize|builtin_initialize|example|inductive_fixpoint|inductive|coinductive_fixpoint|coinductive|termination_by\??|decreasing_by|partial_fixpoint|axiom|universe|variable|module|import all|import|open|export|prelude|renaming|hiding|do|by\??|letI??|let_expr|extends|mutual|mut|where|rec|declare_syntax_cat|syntax|macro_rules|macro|binop_lazy%|binop%|unop%|binrel_no_prop%|binrel%|leftact%|rightact%|max_prec|leading_parser|elab_rules|deriving|fun|section|namespace|end|prefix|postfix|infixl|infixr?|notation|abbrev|if|bif|then|else|calc|matches|match_expr|match|with|forall|for|while|repeat|unless|until|panic!|unreachable!|assert!|try|catch|finally|return|continue|break|exists|mod_cast|exact\?%|include_str|include|in|trailing_parser|tactic_tag|tactic_alt|tactic_extension|register_tactic_tag|type_of%|binder_predicate|grind_propagator|builtin_grind_propagator|grind_pattern|simproc|builtin_simproc|simproc_pattern%|builtin_simproc_pattern%|simproc_decl|builtin_simproc_decl|dsimproc|builtin_dsimproc|dsimproc_decl|builtin_dsimproc_decl|show_panel_widgets|show_term|seal|unseal|nat_lit|norm_cast_add_elim|println!|private_decl%|declare_config_elab|decl_name%|register_error_explanation|register_builtin_option|register_option|register_parser_alias|register_simp_attr|register_linter_set|register_label_attr|recommended_spelling|reportIssue!|reprove|run_elab|run_cmd|run_meta|value_of%|add_decl_doc|omit|opaque|json%|dbg_trace|trace_goal\[[^\]\p{space}]*\]|trace\[[^\]\p{space}]*\]|throwErrorAt|throwError|throwNamedErrorAt|throwNamedError|logNamedWarningAt|logNamedWarning|logNamedErrorAt|logNamedError)(?!\.)\b/dgv,name:"keyword.other.lean4"},{begin:/«/dgv,contentName:"entity.name.lean4",end:/»/dgv},{begin:/(s!|m!|throwError|dbg_trace|panic!|reportIssue!|trace(?:_goal|)\[[^\]\p{space}]*\])\p{space}*"/dgv,beginCaptures:{"1":{name:"keyword.other.lean4"}},end:/"/dgv,name:"string.interpolated.lean4",patterns:[{begin:/(\{)/dgv,beginCaptures:{"1":{name:"keyword.other.lean4"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.other.lean4"}},patterns:[{include:"$self"}]},{match:/\\["'\\nrt]/dgv,name:"constant.character.escape.lean4"},{match:/\\x\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"},{match:/\\u\p{AHex}\p{AHex}\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.lean4",patterns:[{match:/\\["'\\nrt]/dgv,name:"constant.character.escape.lean4"},{match:/\\x\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"},{match:/\\u\p{AHex}\p{AHex}\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"}]},{match:/\b(true|false)\b/dgv,name:"constant.language.lean4"},{match:/(?<![\]\p{L}\p{M}\p{N}\p{Pc}])'[^'\\]'/dgv,name:"string.quoted.single.lean4"},{captures:{"1":{name:"constant.character.escape.lean4"}},match:/(?<![\]\p{L}\p{M}\p{N}\p{Pc}])'(\\(x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex}|[^\n]))'/dgv,name:"string.quoted.single.lean4"},{match:/`+[^\(\[]\P{space}+/dgv,name:"entity.name.lean4"},{match:/\b([0-9]+|0([Xx]\p{AHex}+)|-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee][\-\+]?[0-9]+)?)\b/dgv,name:"constant.numeric.lean4"}],repository:{blockComment:{begin:/\/-/dgv,end:/-\//dgv,name:"comment.block.lean4",patterns:[{include:"source.lean4.markdown"},{include:"#blockComment"}]},comments:{patterns:[{include:"#dashComment"},{include:"#docComment"},{include:"#modDocComment"},{include:"#blockComment"}]},dashComment:{begin:/--/dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-dash.lean4",patterns:[{include:"source.lean4.markdown"}]},definitionName:{patterns:[{match:/\b[^\(\)\:\=\?\{\}«»λ→∀\p{space}][^\(\)\:\{\}«»\p{space}]*/dgv,name:"entity.name.function.lean4"},{begin:/«/dgv,contentName:"entity.name.function.lean4",end:/»/dgv}]},docComment:{begin:/\/--/dgv,end:/-\//dgv,name:"comment.block.documentation.lean4",patterns:[{include:"source.lean4.markdown"},{include:"#blockComment"}]},modDocComment:{begin:/\/-!/dgv,end:/-\//dgv,name:"comment.block.documentation.lean4",patterns:[{include:"source.lean4.markdown"},{include:"#blockComment"}]}},scopeName:"source.lean4",embeddedLangs:undefined,aliases:["lean4"]})
1
+ const lang = Object.freeze({displayName:"Lean 4",fileTypes:[],name:"lean",patterns:[{include:"#comments"},{match:/\b(Prop|Type|Sort)\b/dgv,name:"storage.type.lean4"},{captures:{"1":{name:"storage.modifier.lean4"},"2":{name:"storage.modifier.lean4"},"3":{name:"storage.modifier.lean4"}},match:/\b(attribute\b\p{space}*)(?:(\[[^\]\p{space}]*\])|\[([^\]\p{space}]*))/dgv},{captures:{"1":{name:"storage.modifier.lean4"},"2":{name:"storage.modifier.lean4"},"3":{name:"storage.modifier.lean4"}},match:/(@)(?:(\[[^\]\p{space}]*\])|\[([^\]\p{space}]*))/dgv},{match:/\b(?<!\.)(local|scoped|partial|unsafe|nonrec|public|private|protected|noncomputable|meta)(?!\.)\b/dgv,name:"storage.modifier.lean4"},{match:/\b(sorry|admit|#exit)\b/dgv,name:"invalid.illegal.lean4"},{match:/#(print|eval!??|reduce|synth|widget|where|version|with_exporting|check|check_tactic|check_tactic_failure|check_failure|check_simp|discr_tree_key|discr_tree_simp_key|guard|guard_expr|guard_msgs)\b/dgv,name:"keyword.other.lean4"},{match:/\bderiving\p{space}+instance\b/dgv,name:"keyword.other.command.lean4"},{begin:/\b(?<!\.)(inductive|coinductive|structure|theorem|axiom|abbrev|lemma|def|instance|class)\b\p{space}+(\{[^\}]*\})?/dgv,beginCaptures:{"1":{name:"keyword.other.definitioncommand.lean4"}},end:/(?=\bwith\b|\bextends\b|\bwhere\b|[\(\:\<\>\[\{\|⦃])/dgv,name:"meta.definitioncommand.lean4",patterns:[{include:"#comments"},{include:"#definitionName"},{match:/,/dgv}]},{match:/\b(?<!\.)(theorem|show|have|using|haveI|from|suffices|nomatch|nofun|no_index|def|class|structure|instance|elab|set_option|initialize|builtin_initialize|example|inductive_fixpoint|inductive|coinductive_fixpoint|coinductive|termination_by\??|decreasing_by|partial_fixpoint|axiom|universe|variable|module|import all|import|open|export|prelude|renaming|hiding|do|by\??|letI??|let_expr|extends|mutual|mut|where|rec|declare_syntax_cat|syntax|macro_rules|macro|binop_lazy%|binop%|unop%|binrel_no_prop%|binrel%|leftact%|rightact%|max_prec|leading_parser|elab_rules|deriving|fun|section|namespace|end|prefix|postfix|infixl|infixr?|notation|abbrev|if|bif|then|else|calc|matches|match_expr|match|with|forall|for|while|repeat|unless|until|panic!|unreachable!|assert!|try|catch|finally|return|continue|break|exists|mod_cast|exact\?%|include_str|include|in|trailing_parser|tactic_tag|tactic_alt|tactic_extension|register_tactic_tag|type_of%|binder_predicate|grind_propagator|builtin_grind_propagator|grind_pattern|simproc|builtin_simproc|simproc_pattern%|builtin_simproc_pattern%|simproc_decl|builtin_simproc_decl|dsimproc|builtin_dsimproc|dsimproc_decl|builtin_dsimproc_decl|show_panel_widgets|show_term|seal|unseal|nat_lit|norm_cast_add_elim|println!|private_decl%|declare_config_elab|decl_name%|register_error_explanation|register_builtin_option|register_option|register_parser_alias|register_simp_attr|register_linter_set|register_label_attr|recommended_spelling|reportIssue!|reprove|run_elab|run_cmd|run_meta|value_of%|add_decl_doc|omit|opaque|json%|dbg_trace|trace_goal\[[^\]\p{space}]*\]|trace\[[^\]\p{space}]*\]|throwErrorAt|throwError|throwNamedErrorAt|throwNamedError|logNamedWarningAt|logNamedWarning|logNamedErrorAt|logNamedError)(?!\.)\b/dgv,name:"keyword.other.lean4"},{begin:/«/dgv,contentName:"entity.name.lean4",end:/»/dgv},{begin:/(s!|m!|throwError|dbg_trace|panic!|reportIssue!|trace(?:_goal|)\[[^\]\p{space}]*\])\p{space}*"/dgv,beginCaptures:{"1":{name:"keyword.other.lean4"}},end:/"/dgv,name:"string.interpolated.lean4",patterns:[{begin:/(\{)/dgv,beginCaptures:{"1":{name:"keyword.other.lean4"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.other.lean4"}},patterns:[{include:"$self"}]},{match:/\\["'\\nrt]/dgv,name:"constant.character.escape.lean4"},{match:/\\x\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"},{match:/\\u\p{AHex}\p{AHex}\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.lean4",patterns:[{match:/\\["'\\nrt]/dgv,name:"constant.character.escape.lean4"},{match:/\\x\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"},{match:/\\u\p{AHex}\p{AHex}\p{AHex}\p{AHex}/dgv,name:"constant.character.escape.lean4"}]},{match:/\b(true|false)\b/dgv,name:"constant.language.lean4"},{match:/(?<![\]\p{L}\p{M}\p{N}\p{Pc}])'[^'\\]'/dgv,name:"string.quoted.single.lean4"},{captures:{"1":{name:"constant.character.escape.lean4"}},match:/(?<![\]\p{L}\p{M}\p{N}\p{Pc}])'(\\(x\p{AHex}\p{AHex}|u\p{AHex}\p{AHex}\p{AHex}\p{AHex}|[^\n]))'/dgv,name:"string.quoted.single.lean4"},{match:/\b([0-9]+|0([Xx]\p{AHex}+)|-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee][\-\+]?[0-9]+)?)\b/dgv,name:"constant.numeric.lean4"}],repository:{blockComment:{begin:/\/-/dgv,end:/-\//dgv,name:"comment.block.lean4",patterns:[{include:"source.lean4.markdown"},{include:"#blockComment"}]},comments:{patterns:[{include:"#dashComment"},{include:"#docComment"},{include:"#modDocComment"},{include:"#blockComment"}]},dashComment:{begin:/--/dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-dash.lean4",patterns:[{include:"source.lean4.markdown"}]},definitionName:{patterns:[{match:/\b[^\(\)\:\=\?\{\}«»λ→∀\p{space}][^\(\)\:\{\}«»\p{space}]*/dgv,name:"entity.name.function.lean4"},{begin:/«/dgv,contentName:"entity.name.function.lean4",end:/»/dgv}]},docComment:{begin:/\/--/dgv,end:/-\//dgv,name:"comment.block.documentation.lean4",patterns:[{include:"source.lean4.markdown"},{include:"#blockComment"}]},modDocComment:{begin:/\/-!/dgv,end:/-\//dgv,name:"comment.block.documentation.lean4",patterns:[{include:"source.lean4.markdown"},{include:"#blockComment"}]}},scopeName:"source.lean4",embeddedLangs:undefined,aliases:["lean4"]})
2
2
 
3
3
  export default [
4
4
  lang
package/dist/luau.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"Luau",fileTypes:["luau"],name:"luau",patterns:[{include:"#function-definition"},{include:"#number"},{include:"#string"},{include:"#shebang"},{include:"#comment"},{include:"#local-declaration"},{include:"#for-loop"},{include:"#type-function"},{include:"#type-alias-declaration"},{include:"#keyword"},{include:"#language_constant"},{include:"#standard_library"},{include:"#identifier"},{include:"#operator"},{include:"#parentheses"},{include:"#table"},{include:"#type_cast"},{include:"#type_annotation"},{include:"#attribute"}],repository:{attribute:{patterns:[{captures:{"1":{name:"keyword.operator.attribute.luau"},"2":{name:"storage.type.attribute.luau"}},match:/(@)([A-Z_a-z][0-9A-Z_a-z]*)/dgv,name:"meta.attribute.luau"}]},comment:{patterns:[{begin:/--\[(=*)\[/dgv,end:/\]\1\]()/dgv,name:"comment.block.luau",patterns:[{begin:/(```luau?)\p{space}+/dgv,beginCaptures:{"1":{name:"comment.luau"}},end:/(```)/dgv,endCaptures:{"1":{name:"comment.luau"}},name:"keyword.operator.other.luau",patterns:[{include:"source.luau"}]},{include:"#doc_comment_tags"}]},{begin:/---/dgv,end:/\n/dgv,name:"comment.line.double-dash.documentation.luau",patterns:[{include:"#doc_comment_tags"}]},{begin:/--/dgv,end:/\n/dgv,name:"comment.line.double-dash.luau"}]},doc_comment_tags:{patterns:[{match:/@[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"storage.type.class.luadoc.luau"},{captures:{"1":{name:"storage.type.class.luadoc.luau"},"2":{name:"variable.parameter.luau"}},match:/((?<=[\!\*\/\p{space}])[\@\\]param)\p{space}+\b([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv}]},"for-loop":{begin:/\b(for)\b/dgv,beginCaptures:{"1":{name:"keyword.control.luau"}},end:/\b(in)\b|(=)/dgv,endCaptures:{"1":{name:"keyword.control.luau"},"2":{name:"keyword.operator.assignment.luau"}},patterns:[{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.luau"}},end:/(?=\p{space}*in\b|\p{space}*[\,\=]|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#type_literal"}]},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.parameter.luau"}]},"function-definition":{begin:/\b(?:(local)\p{space}+)?(function)\b(?![\,\:])/dgv,beginCaptures:{"1":{name:"storage.modifier.local.luau"},"2":{name:"keyword.control.luau"}},end:/(?<=[\-\]"'\)\[\{\}])/dgv,name:"meta.function.luau",patterns:[{include:"#comment"},{include:"#generics-declaration"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.luau"}},name:"meta.parameter.luau",patterns:[{include:"#comment"},{match:/\.\.\./dgv,name:"variable.parameter.function.varargs.luau"},{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"variable.parameter.function.luau"},{match:/,/dgv,name:"punctuation.separator.arguments.luau"},{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.luau"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#type_literal"}]}]},{match:/\b(__(?:add|call|concat|div|eq|index|len??|lt|metatable|mode??|mul|newindex|pow|sub|tostring|unm|iter|idiv))\b/dgv,name:"variable.language.metamethod.luau"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"entity.name.function.luau"}]},"generics-declaration":{begin:/(<)/dgv,end:/(>)/dgv,patterns:[{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"entity.name.type.luau"},{match:/=/dgv,name:"keyword.operator.assignment.luau"},{include:"#type_literal"}]},identifier:{patterns:[{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b(?=\p{space}*(?:["'\(\{]|\[\[))/dgv,name:"entity.name.function.luau"},{match:/(?<=[^\.]\.|:)\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.other.property.luau"},{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.constant.luau"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.other.readwrite.luau"}]},interpolated_string_expression:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.interpolated-string-expression.begin.luau"}},contentName:"meta.embedded.line.luau",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.interpolated-string-expression.end.luau"}},name:"meta.template.expression.luau",patterns:[{include:"source.luau"}]},keyword:{patterns:[{match:/\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\b/dgv,name:"keyword.control.luau"},{match:/\b(local)\b/dgv,name:"storage.modifier.local.luau"},{match:/\b(function)\b(?![\,\:])/dgv,name:"keyword.control.luau"},{match:/(?<![^\.]\.|:)\b(self)\b/dgv,name:"variable.language.self.luau"},{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.logical.luau keyword.operator.wordlike.luau"},{match:/(?<=[^\.]\.|:)\b(__(?:add|call|concat|div|eq|index|len??|lt|metatable|mode??|mul|newindex|pow|sub|tostring|unm))\b/dgv,name:"variable.language.metamethod.luau"},{match:/(?<!\.)\.{3}(?!\.)/dgv,name:"keyword.other.unit.luau"}]},language_constant:{patterns:[{match:/(?<![^\.]\.|:)\b(false)\b/dgv,name:"constant.language.boolean.false.luau"},{match:/(?<![^\.]\.|:)\b(true)\b/dgv,name:"constant.language.boolean.true.luau"},{match:/(?<![^\.]\.|:)\b(nil(?!:))\b/dgv,name:"constant.language.nil.luau"}]},"local-declaration":{begin:/\b(local)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.local.luau"}},end:/(?=\p{space}*do\b|\p{space}*[\;\=]|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#comment"},{include:"#attribute"},{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.luau"}},end:/(?=\p{space}*do\b|\p{space}*[\,\;\=]|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#type_literal"}]},{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.constant.luau"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.other.readwrite.luau"}]},number:{patterns:[{match:/\b0_*[Xx]_*[A-F_a-f\p{Nd}]*(?:[Ee][\-\+]?_*\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?)?/dgv,name:"constant.numeric.hex.luau"},{match:/\b0_*[Bb][01_]+(?:[Ee][\-\+]?_*\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?)?/dgv,name:"constant.numeric.binary.luau"},{match:/(?:\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?|\.\p{Nd}[_\p{Nd}]*)(?:[Ee][\-\+]?_*\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?)?/dgv,name:"constant.numeric.decimal.luau"}]},operator:{patterns:[{match:/==|~=|!=|<=?|>=?/dgv,name:"keyword.operator.comparison.luau"},{match:/(?:[\-\+]|\/\/??|[\%\*\^]|\.\.|)=/dgv,name:"keyword.operator.assignment.luau"},{match:/[\-\%\*\+]|\/\/|[\/\^]/dgv,name:"keyword.operator.arithmetic.luau"},{match:/#|(?<!\.)\.{2}(?!\.)/dgv,name:"keyword.operator.other.luau"}]},parentheses:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.arguments.begin.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.arguments.end.luau"}},patterns:[{match:/,/dgv,name:"punctuation.separator.arguments.luau"},{include:"source.luau"}]},shebang:{captures:{"1":{name:"punctuation.definition.comment.luau"}},match:/^(#!)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.shebang.luau"},standard_library:{patterns:[{match:/(?<![^\.]\.|:)\b(assert|collectgarbage|error|gcinfo|getfenv|getmetatable|ipairs|loadstring|newproxy|next|pairs|pcall|print|rawequal|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|typeof|unpack|xpcall)\b/dgv,name:"support.function.luau"},{match:/(?<![^\.]\.|:)\b(_(?:G|VERSION))\b/dgv,name:"constant.language.luau"},{match:/(?<![^\.]\.|:)\b(bit32\.(?:arshift|band|bnot|bor|btest|bxor|extract|lrotate|lshift|replace|rrotate|rshift|countlz|countrz|byteswap)|coroutine\.(?:create|isyieldable|resume|running|status|wrap|yield|close)|debug\.(?:info|loadmodule|profilebegin|profileend|traceback)|math\.(?:abs|acos|asin|atan2??|ceil|clamp|cosh??|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|noise|pow|rad|random|randomseed|round|sign|sinh??|sqrt|tanh??)|os\.(?:clock|date|difftime|time)|string\.(?:byte|char|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|split|sub|unpack|upper)|table\.(?:concat|create|find|foreachi??|getn|insert|maxn|move|pack|remove|sort|unpack|clear|freeze|isfrozen|clone)|task\.(?:spawn|synchronize|desynchronize|wait|defer|delay)|utf8\.(?:char|codepoint|codes|graphemes|len|nfcnormalize|nfdnormalize|offset)|buffer\.(?:create|fromstring|tostring|len|readi8|readu8|readi16|readu16|readi32|readu32|readf32|readf64|writei8|writeu8|writei16|writeu16|writei32|writeu32|writef32|writef64|readstring|writestring|copy|fill))\b/dgv,name:"support.function.luau"},{match:/(?<![^\.]\.|:)\b(bit32|buffer|coroutine|debug|math(\.(huge|pi))?|os|string|table|task|utf8(\.charpattern)?)\b/dgv,name:"support.constant.luau"},{match:/(?<![^\.]\.|:)\b(delay|DebuggerManager|elapsedTime|PluginManager|printidentity|settings|spawn|stats|tick|time|UserSettings|version|wait|warn)\b/dgv,name:"support.function.luau"},{match:/(?<![^\.]\.|:)\b(game|plugin|shared|script|workspace|Enum(?:\.[\p{L}\p{M}\p{N}\p{Pc}]+){0,2})\b/dgv,name:"constant.language.luau"}]},string:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.luau",patterns:[{include:"#string_escape"}]},{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.luau",patterns:[{include:"#string_escape"}]},{begin:/\[(=*)\[/dgv,end:/\]\1\]()/dgv,name:"string.other.multiline.luau"},{begin:/`/dgv,end:/`/dgv,name:"string.interpolated.luau",patterns:[{include:"#interpolated_string_expression"},{include:"#string_escape"}]}]},string_escape:{patterns:[{match:/\\["'\\\`abfnrtvz\{]/dgv,name:"constant.character.escape.luau"},{match:/\\\p{Nd}{1,3}/dgv,name:"constant.character.escape.luau"},{match:/\\x\p{AHex}{2}/dgv,name:"constant.character.escape.luau"},{match:/\\u\{\p{AHex}*\}/dgv,name:"constant.character.escape.luau"},{match:/\\(?=\n?$)/dgv,name:"constant.character.escape.luau"}]},table:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.table.begin.luau"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.table.end.luau"}},patterns:[{match:/[\,\;]/dgv,name:"punctuation.separator.fields.luau"},{include:"source.luau"}]},"type-alias-declaration":{begin:/^\b(?:(export)\p{space}+)?(type)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.visibility.luau"},"2":{name:"storage.type.luau"}},end:/(?=\p{space}*(?=\n?$))|(?=\p{space}*;)/dgv,patterns:[{include:"#type_literal"},{match:/=/dgv,name:"keyword.operator.assignment.luau"}]},"type-function":{begin:/^\b(?:(export)\p{space}+)?(type)\p{space}+(function)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.visibility.luau"},"2":{name:"storage.type.luau"},"3":{name:"keyword.control.luau"}},end:/(?<=[\-\]"'\)\[\{\}])/dgv,name:"meta.function.luau",patterns:[{include:"#comment"},{include:"#generics-declaration"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.luau"}},name:"meta.parameter.luau",patterns:[{include:"#comment"},{match:/\.\.\./dgv,name:"variable.parameter.function.varargs.luau"},{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"variable.parameter.function.luau"},{match:/,/dgv,name:"punctuation.separator.arguments.luau"},{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.luau"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#type_literal"}]}]},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"entity.name.type.luau"}]},type_annotation:{begin:/:(?!\b([A-Z_a-z][0-9A-Z_a-z]*)\b(?=\p{space}*(?:["'\(\{]|\[\[)))/dgv,end:/(?<=\))(?!\p{space}*->)|[\;\=]|(?=\n?$)|(?=\breturn\b)|(?=\bend\b)/dgv,patterns:[{include:"#comment"},{include:"#type_literal"}]},type_cast:{begin:/(::)/dgv,beginCaptures:{"1":{name:"keyword.operator.typecast.luau"}},end:/(?=^|[\-\]\)\+\,\:\;\>\?\}](?!\p{space}*[\&\|])|(?=\n?$)|\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\b)/dgv,patterns:[{include:"#type_literal"}]},type_literal:{patterns:[{include:"#comment"},{include:"#string"},{match:/[\&\?\|]/dgv,name:"keyword.operator.type.luau"},{match:/->/dgv,name:"keyword.operator.type.function.luau"},{match:/\b(false)\b/dgv,name:"constant.language.boolean.false.luau"},{match:/\b(true)\b/dgv,name:"constant.language.boolean.true.luau"},{match:/\b(nil|string|number|boolean|thread|userdata|symbol|vector|buffer|unknown|never|any)\b/dgv,name:"support.type.primitive.luau"},{begin:/\b(typeof)\b(\()/dgv,beginCaptures:{"1":{name:"support.function.luau"},"2":{name:"punctuation.arguments.begin.typeof.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.arguments.end.typeof.luau"}},patterns:[{include:"source.luau"}]},{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.typeparameters.begin.luau"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.typeparameters.end.luau"}},patterns:[{match:/=/dgv,name:"keyword.operator.assignment.luau"},{include:"#type_literal"}]},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"entity.name.type.luau"},{begin:/\{/dgv,end:/\}/dgv,patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#type_literal"}]},{captures:{"1":{name:"storage.modifier.access.luau"},"2":{name:"variable.property.luau"},"3":{name:"keyword.operator.type.luau"}},match:/\b(?:(read|write)\p{space}+)?([A-Z_a-z][0-9A-Z_a-z]*)\b(:)/dgv},{include:"#type_literal"},{match:/[\,\;]/dgv,name:"punctuation.separator.fields.type.luau"}]},{begin:/\(/dgv,end:/\)/dgv,patterns:[{captures:{"1":{name:"variable.parameter.luau"},"2":{name:"keyword.operator.type.luau"}},match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b(:)/dgv,name:"variable.parameter.luau"},{include:"#type_literal"}]}]}},scopeName:"source.luau",embeddedLangs:undefined,aliases:undefined})
1
+ const lang = Object.freeze({displayName:"Luau",fileTypes:["luau"],name:"luau",patterns:[{include:"#function-definition"},{include:"#number"},{include:"#string"},{include:"#shebang"},{include:"#comment"},{include:"#local-declaration"},{include:"#for-loop"},{include:"#type-function"},{include:"#type-alias-declaration"},{include:"#keyword"},{include:"#language_constant"},{include:"#standard_library"},{include:"#identifier"},{include:"#operator"},{include:"#parentheses"},{include:"#table"},{include:"#type_cast"},{include:"#type_annotation"},{include:"#attribute"}],repository:{attribute:{patterns:[{captures:{"1":{name:"keyword.operator.attribute.luau"},"2":{name:"storage.type.attribute.luau"}},match:/(@)([A-Z_a-z][0-9A-Z_a-z]*)/dgv,name:"meta.attribute.luau"}]},comment:{patterns:[{begin:/--\[(=*)\[/dgv,end:/\]\1\]()/dgv,name:"comment.block.luau",patterns:[{begin:/(```luau?)\p{space}+/dgv,beginCaptures:{"1":{name:"comment.luau"}},end:/(```)/dgv,endCaptures:{"1":{name:"comment.luau"}},name:"keyword.operator.other.luau",patterns:[{include:"source.luau"}]},{include:"#doc_comment_tags"}]},{begin:/---/dgv,end:/\n/dgv,name:"comment.line.double-dash.documentation.luau",patterns:[{include:"#doc_comment_tags"}]},{begin:/--/dgv,end:/\n/dgv,name:"comment.line.double-dash.luau"}]},doc_comment_tags:{patterns:[{match:/@[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"storage.type.class.luadoc.luau"},{captures:{"1":{name:"storage.type.class.luadoc.luau"},"2":{name:"variable.parameter.luau"}},match:/((?<=[\!\*\/\p{space}])[\@\\]param)\p{space}+\b([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv}]},"for-loop":{begin:/\b(for)\b/dgv,beginCaptures:{"1":{name:"keyword.control.luau"}},end:/\b(in)\b|(=)/dgv,endCaptures:{"1":{name:"keyword.control.luau"},"2":{name:"keyword.operator.assignment.luau"}},patterns:[{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.luau"}},end:/(?=\p{space}*in\b|\p{space}*[\,\=]|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#type_literal"}]},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.parameter.luau"}]},"function-definition":{begin:/\b(?:(local)\p{space}+)?(function)\b(?![\,\:])/dgv,beginCaptures:{"1":{name:"storage.modifier.local.luau"},"2":{name:"keyword.control.luau"}},end:/(?<=[\-\]"'\)\[\{\}])/dgv,name:"meta.function.luau",patterns:[{include:"#comment"},{include:"#generics-declaration"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.luau"}},name:"meta.parameter.luau",patterns:[{include:"#comment"},{match:/\.\.\./dgv,name:"variable.parameter.function.varargs.luau"},{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"variable.parameter.function.luau"},{match:/,/dgv,name:"punctuation.separator.arguments.luau"},{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.luau"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#type_literal"}]}]},{match:/\b(__(?:add|call|concat|div|eq|index|len??|lt|metatable|mode??|mul|newindex|pow|sub|tostring|unm|iter|idiv))\b/dgv,name:"variable.language.metamethod.luau"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"entity.name.function.luau"}]},"generics-declaration":{begin:/(<)/dgv,end:/(>)/dgv,patterns:[{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"entity.name.type.luau"},{match:/=/dgv,name:"keyword.operator.assignment.luau"},{include:"#type_literal"}]},identifier:{patterns:[{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b(?=\p{space}*(?:["'\(\{]|\[\[))/dgv,name:"entity.name.function.luau"},{match:/(?<=[^\.]\.|:)\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.other.property.luau"},{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.constant.luau"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.other.readwrite.luau"}]},interpolated_string_expression:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.interpolated-string-expression.begin.luau"}},contentName:"meta.embedded.line.luau",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.interpolated-string-expression.end.luau"}},name:"meta.template.expression.luau",patterns:[{include:"source.luau"}]},keyword:{patterns:[{match:/\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\b/dgv,name:"keyword.control.luau"},{match:/\b(local)\b/dgv,name:"storage.modifier.local.luau"},{match:/\b(function)\b(?![\,\:])/dgv,name:"keyword.control.luau"},{match:/(?<![^\.]\.|:)\b(self)\b/dgv,name:"variable.language.self.luau"},{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.logical.luau keyword.operator.wordlike.luau"},{match:/(?<=[^\.]\.|:)\b(__(?:add|call|concat|div|eq|index|len??|lt|metatable|mode??|mul|newindex|pow|sub|tostring|unm))\b/dgv,name:"variable.language.metamethod.luau"},{match:/(?<!\.)\.{3}(?!\.)/dgv,name:"keyword.other.unit.luau"}]},language_constant:{patterns:[{match:/(?<![^\.]\.|:)\b(false)\b/dgv,name:"constant.language.boolean.false.luau"},{match:/(?<![^\.]\.|:)\b(true)\b/dgv,name:"constant.language.boolean.true.luau"},{match:/(?<![^\.]\.|:)\b(nil(?!:))\b/dgv,name:"constant.language.nil.luau"}]},"local-declaration":{begin:/\b(local)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.local.luau"}},end:/(?=\p{space}*do\b|\p{space}*[\;\=]|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#comment"},{include:"#attribute"},{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.luau"}},end:/(?=\p{space}*do\b|\p{space}*[\,\;\=]|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#type_literal"}]},{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.constant.luau"},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"variable.other.readwrite.luau"}]},number:{patterns:[{match:/\b0_*[Xx]_*[A-F_a-f\p{Nd}]*(?:[Ee][\-\+]?_*\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?)?/dgv,name:"constant.numeric.hex.luau"},{match:/\b0_*[Bb][01_]+(?:[Ee][\-\+]?_*\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?)?/dgv,name:"constant.numeric.binary.luau"},{match:/(?:\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?|\.\p{Nd}[_\p{Nd}]*)(?:[Ee][\-\+]?_*\p{Nd}[_\p{Nd}]*(?:\.[_\p{Nd}]*)?)?/dgv,name:"constant.numeric.decimal.luau"}]},operator:{patterns:[{match:/==|~=|!=|<=?|>=?/dgv,name:"keyword.operator.comparison.luau"},{match:/(?:[\-\+]|\/\/??|[\%\*\^]|\.\.|)=/dgv,name:"keyword.operator.assignment.luau"},{match:/[\-\%\*\+]|\/\/|[\/\^]/dgv,name:"keyword.operator.arithmetic.luau"},{match:/#|(?<!\.)\.{2}(?!\.)/dgv,name:"keyword.operator.other.luau"}]},parentheses:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.arguments.begin.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.arguments.end.luau"}},patterns:[{match:/,/dgv,name:"punctuation.separator.arguments.luau"},{include:"source.luau"}]},shebang:{captures:{"1":{name:"punctuation.definition.comment.luau"}},match:/^(#!)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.shebang.luau"},standard_library:{patterns:[{match:/(?<![^\.]\.|:)\b(assert|collectgarbage|error|gcinfo|getfenv|getmetatable|ipairs|loadstring|newproxy|next|pairs|pcall|print|rawequal|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|typeof|unpack|xpcall)\b/dgv,name:"support.function.luau"},{match:/(?<![^\.]\.|:)\b(_(?:G|VERSION))\b/dgv,name:"constant.language.luau"},{match:/(?<![^\.]\.|:)\b(bit32\.(?:arshift|band|bnot|bor|btest|bxor|extract|lrotate|lshift|replace|rrotate|rshift|countlz|countrz|byteswap)|coroutine\.(?:create|isyieldable|resume|running|status|wrap|yield|close)|debug\.(?:info|loadmodule|profilebegin|profileend|traceback)|math\.(?:abs|acos|asin|atan2??|ceil|clamp|cosh??|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|noise|pow|rad|random|randomseed|round|sign|sinh??|sqrt|tanh??)|os\.(?:clock|date|difftime|time)|string\.(?:byte|char|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|split|sub|unpack|upper)|table\.(?:concat|create|find|foreachi??|getn|insert|maxn|move|pack|remove|sort|unpack|clear|freeze|isfrozen|clone)|task\.(?:spawn|synchronize|desynchronize|wait|defer|delay)|utf8\.(?:char|codepoint|codes|graphemes|len|nfcnormalize|nfdnormalize|offset)|buffer\.(?:create|fromstring|tostring|len|readi8|readu8|readi16|readu16|readi32|readu32|readf32|readf64|writei8|writeu8|writei16|writeu16|writei32|writeu32|writef32|writef64|readstring|writestring|copy|fill)|vector\.(?:abs|angle|ceil|clamp|create|cross|dot|floor|lerp|magnitude|max|min|normalize|sign))\b/dgv,name:"support.function.luau"},{match:/(?<![^\.]\.|:)\b(bit32|buffer|coroutine|debug|math(\.(huge|pi))?|os|string|table|task|utf8(\.charpattern)?|vector(\.(one|zero))?)\b/dgv,name:"support.constant.luau"},{match:/(?<![^\.]\.|:)\b(delay|DebuggerManager|elapsedTime|PluginManager|printidentity|settings|spawn|stats|tick|time|UserSettings|version|wait|warn)\b/dgv,name:"support.function.luau"},{match:/(?<![^\.]\.|:)\b(game|plugin|shared|script|workspace|Enum(?:\.[\p{L}\p{M}\p{N}\p{Pc}]+){0,2})\b/dgv,name:"constant.language.luau"}]},string:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.luau",patterns:[{include:"#string_escape"}]},{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.luau",patterns:[{include:"#string_escape"}]},{begin:/\[(=*)\[/dgv,end:/\]\1\]()/dgv,name:"string.other.multiline.luau"},{begin:/`/dgv,end:/`/dgv,name:"string.interpolated.luau",patterns:[{include:"#interpolated_string_expression"},{include:"#string_escape"}]}]},string_escape:{patterns:[{match:/\\["'\\\`abfnrtvz\{]/dgv,name:"constant.character.escape.luau"},{match:/\\\p{Nd}{1,3}/dgv,name:"constant.character.escape.luau"},{match:/\\x\p{AHex}{2}/dgv,name:"constant.character.escape.luau"},{match:/\\u\{\p{AHex}*\}/dgv,name:"constant.character.escape.luau"},{match:/\\(?=\n?$)/dgv,name:"constant.character.escape.luau"}]},table:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.table.begin.luau"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.table.end.luau"}},patterns:[{match:/[\,\;]/dgv,name:"punctuation.separator.fields.luau"},{include:"source.luau"}]},"type-alias-declaration":{begin:/^\b(?:(export)\p{space}+)?(type)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.visibility.luau"},"2":{name:"storage.type.luau"}},end:/(?=\p{space}*(?=\n?$))|(?=\p{space}*;)/dgv,patterns:[{include:"#type_literal"},{match:/=/dgv,name:"keyword.operator.assignment.luau"}]},"type-function":{begin:/^\b(?:(export)\p{space}+)?(type)\p{space}+(function)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.visibility.luau"},"2":{name:"storage.type.luau"},"3":{name:"keyword.control.luau"}},end:/(?<=[\-\]"'\)\[\{\}])/dgv,name:"meta.function.luau",patterns:[{include:"#comment"},{include:"#generics-declaration"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.luau"}},name:"meta.parameter.luau",patterns:[{include:"#comment"},{match:/\.\.\./dgv,name:"variable.parameter.function.varargs.luau"},{match:/[A-Z_a-z][0-9A-Z_a-z]*/dgv,name:"variable.parameter.function.luau"},{match:/,/dgv,name:"punctuation.separator.arguments.luau"},{begin:/:/dgv,beginCaptures:{"0":{name:"keyword.operator.type.luau"}},end:/(?=[\)\,])/dgv,patterns:[{include:"#type_literal"}]}]},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"entity.name.type.luau"}]},type_annotation:{begin:/:(?!\b([A-Z_a-z][0-9A-Z_a-z]*)\b(?=\p{space}*(?:["'\(\{]|\[\[)))/dgv,end:/(?<=\))(?!\p{space}*->)|[\;\=]|(?=\n?$)|(?=\breturn\b)|(?=\bend\b)/dgv,patterns:[{include:"#comment"},{include:"#type_literal"}]},type_cast:{begin:/(::)/dgv,beginCaptures:{"1":{name:"keyword.operator.typecast.luau"}},end:/(?=^|[\-\]\)\+\,\:\;\>\?\}](?!\p{space}*[\&\|])|(?=\n?$)|\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\b)/dgv,patterns:[{include:"#type_literal"}]},type_literal:{patterns:[{include:"#comment"},{include:"#string"},{match:/[\&\?\|]/dgv,name:"keyword.operator.type.luau"},{match:/->/dgv,name:"keyword.operator.type.function.luau"},{match:/\b(false)\b/dgv,name:"constant.language.boolean.false.luau"},{match:/\b(true)\b/dgv,name:"constant.language.boolean.true.luau"},{match:/\b(nil|string|number|boolean|thread|userdata|symbol|vector|buffer|unknown|never|any)\b/dgv,name:"support.type.primitive.luau"},{begin:/\b(typeof)\b(\()/dgv,beginCaptures:{"1":{name:"support.function.luau"},"2":{name:"punctuation.arguments.begin.typeof.luau"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.arguments.end.typeof.luau"}},patterns:[{include:"source.luau"}]},{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.typeparameters.begin.luau"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.typeparameters.end.luau"}},patterns:[{match:/=/dgv,name:"keyword.operator.assignment.luau"},{include:"#type_literal"}]},{match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b/dgv,name:"entity.name.type.luau"},{begin:/\{/dgv,end:/\}/dgv,patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#type_literal"}]},{captures:{"1":{name:"storage.modifier.access.luau"},"2":{name:"variable.property.luau"},"3":{name:"keyword.operator.type.luau"}},match:/\b(?:(read|write)\p{space}+)?([A-Z_a-z][0-9A-Z_a-z]*)\b(:)/dgv},{include:"#type_literal"},{match:/[\,\;]/dgv,name:"punctuation.separator.fields.type.luau"}]},{begin:/\(/dgv,end:/\)/dgv,patterns:[{captures:{"1":{name:"variable.parameter.luau"},"2":{name:"keyword.operator.type.luau"}},match:/\b([A-Z_a-z][0-9A-Z_a-z]*)\b(:)/dgv,name:"variable.parameter.luau"},{include:"#type_literal"}]}]}},scopeName:"source.luau",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
3
  export default [
4
4
  lang
@@ -1,6 +1,6 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
 
3
- const lang = Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-nix",patterns:[{include:"#nixCodeBlock"}],repository:{nixCodeBlock:{begin:/*@__PURE__*/ new EmulatedRegExp("(^|^)(\\p{space}*)(`{3,}|~{3,})\\p{space}*(nix)(\\p{space}+[^\\`\\~]*)?(?=\\n?$)","dgiv",{"strategy":"clip_search"}),beginCaptures:{"3":{name:"punctuation.definition.markdown"},"5":{name:"fenced_code.block.language"},"6":{name:"fenced_code.block.language.attributes"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)((?!)|\\p{space}{0,3})((?!))\\p{space}*(?=\\n?$)","dgv",{"strategy":"clip_search"}),endCaptures:{"3":{name:"punctuation.definition.markdown"}},name:"markup.fenced_code.block.markdown",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(^|^)(\\p{space}*)([^\\n]*)","dgv",{"strategy":"clip_search"}),contentName:"meta.embedded.block.nix",patterns:[{include:"source.nix"}],while:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?!\\p{space}*([\\`\\~]{3,})\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"})}]}},scopeName:"markdown.nix.codeblock",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
3
+ const lang = Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-nix",patterns:[{include:"#nix-code-block"}],repository:{"nix-code-block":{begin:/*@__PURE__*/ new EmulatedRegExp("(^|^)(\\p{space}*)(`{3,}|~{3,})\\p{space}*(nix)(\\p{space}+[^\\`\\~]*)?(?=\\n?$)","dgiv",{"strategy":"clip_search"}),beginCaptures:{"3":{name:"punctuation.definition.markdown"},"5":{name:"fenced_code.block.language"},"6":{name:"fenced_code.block.language.attributes"}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)((?!)|\\p{space}{0,3})((?!))\\p{space}*(?=\\n?$)","dgv",{"strategy":"clip_search"}),endCaptures:{"3":{name:"punctuation.definition.markdown"}},name:"markup.fenced_code.block.markdown",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(^|^)(\\p{space}*)([^\\n]*)","dgv",{"strategy":"clip_search"}),contentName:"meta.embedded.block.nix",patterns:[{include:"source.nix"}],while:/*@__PURE__*/ new EmulatedRegExp("(^|^)(?!\\p{space}*([\\`\\~]{3,})\\p{space}*(?=\\n?$))","dgv",{"strategy":"clip_search"})}]}},scopeName:"markdown.nix.codeblock",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
4
4
 
5
5
  export default [
6
6
  lang
@@ -1,6 +1,6 @@
1
1
  import { EmulatedRegExp } from 'oniguruma-to-es'
2
2
 
3
- const lang = Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-vue",patterns:[{include:"#vue-code-block"}],repository:{"vue-code-block":{begin:/*@__PURE__*/ new EmulatedRegExp("(^|^)(\\p{space}*)(`{3,}|~{3,})\\p{space}*(vue)((\\p{space}+|[\\,\\:\\?\\{])[^\\`\\~]*)?(?=\\n?$)","dgiv",{"strategy":"clip_search"}),beginCaptures:{"3":{name:"punctuation.definition.markdown"},"4":{name:"fenced_code.block.language.markdown"},"5":{name:"fenced_code.block.language.attributes.markdown",patterns:[]}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)((?!)|\\p{space}{0,3})((?!))\\p{space}*(?=\\n?$)","dgv",{"strategy":"clip_search"}),endCaptures:{"3":{name:"punctuation.definition.markdown"}},name:"markup.fenced_code.block.markdown",patterns:[{include:"source.vue"}]}},scopeName:"markdown.vue.codeblock",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
3
+ const lang = Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-vue",patterns:[{include:"#vue-code-block"}],repository:{"vue-code-block":{begin:/*@__PURE__*/ new EmulatedRegExp("(^|^)(\\p{space}*)(`{3,}|~{3,})\\p{space}*(vue)((\\p{space}+|[\\,\\:\\?\\{])[^\\`\\~]*)?(?=\\n?$)","dgiv",{"strategy":"clip_search"}),beginCaptures:{"3":{name:"punctuation.definition.markdown"},"4":{name:"fenced_code.block.language.markdown"},"5":{name:"fenced_code.block.language.attributes.markdown",patterns:[]}},end:/*@__PURE__*/ new EmulatedRegExp("(^|^)((?!)|\\p{space}{0,3})((?!))\\p{space}*(?=\\n?$)","dgv",{"strategy":"clip_search"}),endCaptures:{"3":{name:"punctuation.definition.markdown"}},name:"markup.fenced_code.block.markdown",patterns:[{include:"text.html.vue"}]}},scopeName:"markdown.vue.codeblock",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
4
4
 
5
5
  export default [
6
6
  lang
package/dist/marko.mjs CHANGED
@@ -4,7 +4,7 @@ import less from './less.mjs'
4
4
  import scss from './scss.mjs'
5
5
  import typescript from './typescript.mjs'
6
6
 
7
- const lang = Object.freeze({displayName:"Marko",fileTypes:["marko"],name:"marko",patterns:[{begin:/^\p{space}*(style)(\b\P{space}*\.css)?\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.css",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.css",patterns:[{include:"source.css"}]},{begin:/^\p{space}*(style)\b(\P{space}*\.less)\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.less",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.less",patterns:[{include:"source.css.less"}]},{begin:/^\p{space}*(style)\b(\P{space}*\.scss)\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.scss",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.scss",patterns:[{include:"source.css.scss"}]},{begin:/^\p{space}*(style)\b(\P{space}*\.[jt]s)\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.ts",patterns:[{include:"source.ts"}]},{begin:/^\p{space}*(?:(static|server|client)\b|(?=(?:class|import|export)\b))/dgv,beginCaptures:{"1":{name:"keyword.control.static.marko"}},contentName:"source.ts",end:/(?=\n|(?=\n?$))/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts"}]},{include:"#content-concise-mode"}],repository:{"attr-value":{begin:/\p{space}*(:?=)\p{space}*/dgv,beginCaptures:{"1":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",end:/(?=[\]\,\;]|\/>|(?<=[^\=\>])>|(?<!^|[\!\%\&\*\:\?\^\|\~]|[\-\!\%\&\*\+\/\<-\?\^\|\~]=|[\=\>]>|[^\.]\.|[^\-]-|[^\+]\+|[\]\%\)\.0-9\<A-Za-z\}]\p{space}\/|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]await|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]async|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]class|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]function|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]keyof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]new|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]readonly|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]infer|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]typeof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]void)\p{space}+(?![\n\!\%\&\(\*\+\:\?\^\{\|\~]|[\-\/\<\=\>]=|[\=\>]>|\.[^\.]|-[^\-]|\/[^\>]|(?:in|instanceof|satisfies|as|extends)\p{space}+[^\,\/\:\;\=\>]))/dgv,name:"meta.embedded.ts",patterns:[{include:"#javascript-expression"}]},attrs:{patterns:[{include:"#javascript-comments"},{applyEndPatternLast:1,begin:/(?:(key|on[\-\$0-9A-Z_a-z]+|[\$0-9A-Z_a-z]+Change|no-update(?:-body)?(?:-if)?)|([\$0-9A-Z_a-z][\-\$0-9A-Z_a-z]*)|(#[\$0-9A-Z_a-z][\-\$0-9A-Z_a-z]*))(:[\$0-9A-Z_a-z][\-\$0-9A-Z_a-z]*)?/dgv,beginCaptures:{"1":{name:"support.type.attribute-name.marko"},"2":{name:"entity.other.attribute-name.marko"},"3":{name:"support.function.attribute-name.marko"},"4":{name:"support.function.attribute-name.marko"}},end:/(?=[^\n]|(?=\n?$))/dgv,name:"meta.marko-attribute",patterns:[{include:"#html-args-or-method"},{include:"#attr-value"}]},{begin:/(\.\.\.)/dgv,beginCaptures:{"1":{name:"keyword.operator.spread.marko"}},contentName:"source.ts",end:/(?=[\]\,\;]|\/>|(?<=[^\=\>])>|(?<!^|[\!\%\&\*\:\?\^\|\~]|[\-\!\%\&\*\+\/\<-\?\^\|\~]=|[\=\>]>|[^\.]\.|[^\-]-|[^\+]\+|[\]\%\)\.0-9\<A-Za-z\}]\p{space}\/|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]await|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]async|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]class|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]function|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]keyof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]new|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]readonly|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]infer|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]typeof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]void)\p{space}+(?![\n\!\%\&\(\*\+\:\?\^\{\|\~]|[\-\/\<\=\>]=|[\=\>]>|\.[^\.]|-[^\-]|\/[^\>]|(?:in|instanceof|satisfies|as|extends)\p{space}+[^\,\/\:\;\=\>]))/dgv,name:"meta.marko-spread-attribute",patterns:[{include:"#javascript-expression"}]},{begin:/\p{space}*(,(?!,))/dgv,captures:{"1":{name:"punctuation.separator.comma.marko"}},end:/(?=\P{space})/dgv},{include:"#invalid"}]},cdata:{begin:/\p{space}*<!\[CDATA\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.begin.marko"}},contentName:"string.other.inline-data.marko",end:/\]\]>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},name:"meta.tag.metadata.cdata.marko"},"concise-attr-group":{begin:/\p{space}*(\[)/dgv,beginCaptures:{"1":{name:"punctuation.section.scope.begin.marko"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko"}},patterns:[{include:"#concise-attr-group"},{begin:/\p{space}+/dgv,end:/(?=\P{space})/dgv},{include:"#attrs"},{include:"#invalid"}]},"concise-comment-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-comment-block",patterns:[{include:"#content-embedded-comment"}]},"concise-comment-line":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-comment-line",patterns:[{include:"#content-embedded-comment"}]},"concise-html-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-html-block",patterns:[{include:"#content-html-mode"}]},"concise-html-line":{captures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"},"2":{patterns:[{include:"#cdata"},{include:"#doctype"},{include:"#declaration"},{include:"#javascript-comments-after-whitespace"},{include:"#html-comment"},{include:"#tag-html"},{match:/\\[^\n]/dgv,name:"text.marko"},{include:"#placeholder"},{match:/[^\n]+?/dgv,name:"text.marko"}]},"3":{name:"punctuation.section.embedded.scope.end.marko"}},match:/\p{space}*(--+)(?=\p{space}+\P{space})([^\n]*)(?=\n?$)()/dgv,name:"meta.section.marko-html-line"},"concise-open-tag-content":{patterns:[{include:"#invalid-close-tag"},{include:"#tag-before-attrs"},{include:"#concise-semi-eol"},{begin:/(?!^)[\t \,]/dgv,end:/(?=--)|(?=\n)/dgv,patterns:[{include:"#concise-semi-eol"},{include:"#concise-attr-group"},{begin:/[\t ]+/dgv,end:/(?=[\n\P{space}])/dgv},{include:"#attrs"},{include:"#invalid"}]}]},"concise-script-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-script-block",patterns:[{include:"#content-embedded-script"}]},"concise-script-line":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-script-line",patterns:[{include:"#content-embedded-script"}]},"concise-semi-eol":{begin:/\p{space}*(;)/dgv,beginCaptures:{"1":{name:"punctuation.terminator.marko"}},end:/(?=\n?$)/dgv,patterns:[{include:"#javascript-comments"},{include:"#html-comment"},{include:"#invalid"}]},"concise-style-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.css",end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-block",patterns:[{include:"#content-embedded-style"}]},"concise-style-block-less":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.less",end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-block",patterns:[{include:"#content-embedded-style-less"}]},"concise-style-block-scss":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.scss",end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-block",patterns:[{include:"#content-embedded-style-scss"}]},"concise-style-line":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.css",end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-line",patterns:[{include:"#content-embedded-style"}]},"concise-style-line-less":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.less",end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-line",patterns:[{include:"#content-embedded-style-less"}]},"concise-style-line-scss":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.scss",end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-line",patterns:[{include:"#content-embedded-style-scss"}]},"content-concise-mode":{name:"meta.marko-concise-content",patterns:[{include:"#scriptlet"},{include:"#javascript-comments"},{include:"#cdata"},{include:"#doctype"},{include:"#declaration"},{include:"#html-comment"},{include:"#concise-html-block"},{include:"#concise-html-line"},{include:"#invalid-close-tag"},{include:"#tag-html"},{patterns:[{begin:/^(\p{space}*)(?=html-comment\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-comment-block"},{include:"#concise-comment-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b\P{space}*\.less\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-style-block-less"},{include:"#concise-style-line-less"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b\P{space}*\.scss\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-style-block-scss"},{include:"#concise-style-line-scss"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b\P{space}*\.[jt]s\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-script-block"},{include:"#concise-script-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-style-block"},{include:"#concise-style-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?script\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-script-block"},{include:"#concise-script-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^([\t ]*)(?=[\#\$\.0-9\@-Z_a-z])/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#content-concise-mode"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv}]}]},"content-embedded-comment":{patterns:[{include:"#placeholder"},{match:/[^\n]/dgv,name:"comment.block.marko"}]},"content-embedded-script":{name:"meta.embedded.ts",patterns:[{include:"#placeholder"},{include:"source.ts"}]},"content-embedded-style":{name:"meta.embedded.css",patterns:[{include:"#placeholder"},{include:"source.css"}]},"content-embedded-style-less":{name:"meta.embedded.css.less",patterns:[{include:"#placeholder"},{include:"source.css.less"}]},"content-embedded-style-scss":{name:"meta.embedded.css.scss",patterns:[{include:"#placeholder"},{include:"source.css.scss"}]},"content-html-mode":{patterns:[{include:"#scriptlet"},{include:"#cdata"},{include:"#doctype"},{include:"#declaration"},{include:"#javascript-comments-after-whitespace"},{include:"#html-comment"},{include:"#invalid-close-tag"},{include:"#tag-html"},{match:/\\[^\n]/dgv,name:"text.marko"},{include:"#placeholder"},{match:/[^\n]+?/dgv,name:"text.marko"}]},declaration:{begin:/(<\?)\p{space}*([\-\$0-9A-Z_a-z]*)/dgv,captures:{"1":{name:"punctuation.definition.tag.marko"},"2":{name:"entity.name.tag.marko"}},end:/(\??>)/dgv,name:"meta.tag.metadata.processing.xml.marko",patterns:[{captures:{"1":{name:"entity.other.attribute-name.marko"},"2":{name:"punctuation.separator.key-value.html"},"3":{name:"string.quoted.double.marko"},"4":{name:"string.quoted.single.marko"},"5":{name:"string.unquoted.marko"}},match:/((?:[^\=\>\?\p{space}]|\?(?!>))+)(=)(?:("(?:[^"\\]|\\[^\n])*")|('(?:[^'\\]|\\[^\n])*')|((?:[^\>\?\p{space}]|\?(?!>))+))/dgv}]},doctype:{begin:/\p{space}*<!(?=DOCTYPE\p{space})/dgiv,beginCaptures:{"0":{name:"punctuation.definition.tag.begin.marko"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},name:"meta.tag.metadata.doctype.marko",patterns:[{match:/DOCTYPE/dgivy,name:"entity.name.tag.marko"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.marko"},{match:/[^\>\p{space}]+/dgv,name:"entity.other.attribute-name.marko"}]},"html-args-or-method":{patterns:[{include:"#tag-type-params"},{begin:/\p{space}*(?=\()/dgv,contentName:"source.ts",end:/(?<=\))/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts#paren-expression"}]},{begin:/(?<=\))\p{space}*(?=\{)/dgv,contentName:"source.ts",end:/(?<=\})/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts"}]}]},"html-comment":{begin:/\p{space}*(<!(--)?)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.marko"}},end:/\2>()()/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.marko"}},name:"comment.block.marko"},invalid:{match:/\P{space}/dgv,name:"invalid.illegal.character-not-allowed-here.marko"},"invalid-close-tag":{begin:/\p{space}*<\/[^\n]*?/dgv,end:/>/dgv,name:"invalid.illegal.character-not-allowed-here.marko"},"javascript-comments":{patterns:[{begin:/\p{space}*(?=\/\*)/dgv,contentName:"source.ts",end:/(?<=\*\/)/dgv,patterns:[{include:"source.ts"}]},{captures:{"0":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",match:/\p{space}*\/\/[^\n]*(?=\n?$)/dgv}]},"javascript-comments-after-whitespace":{patterns:[{begin:/(?:^|\p{space}+)(?=\/\*)/dgv,contentName:"source.ts",end:/(?<=\*\/)/dgv,patterns:[{include:"source.ts"}]},{captures:{"0":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",match:/(?:^|\p{space}+)\/\/[^\n]*(?=\n?$)/dgv}]},"javascript-expression":{patterns:[{include:"#javascript-comments"},{captures:{"0":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",match:/(?:\p{space}*\b(?:as|await|extends|in|instanceof|satisfies|keyof|new|typeof|void))+\p{space}+(?![\,\/\:\;\=\>])[\#\$0-9\@-Z_a-z]*/dgv},{applyEndPatternLast:1,captures:{"0":{name:"string.regexp.ts",patterns:[{include:"source.ts#regexp"},{include:"source.ts"}]}},contentName:"source.ts",match:/(?<![\]\%\)\.0-9\<A-Za-z\}])\p{space}*\/(?:[^\/\[\\]|\\[^\n]|\[(?:[^\]\\]|\\[^\n])*\])*\/[A-Za-z]*/dgv},{include:"source.ts"}]},"javascript-placeholder":{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.ts"}},contentName:"source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.ts"}},patterns:[{include:"source.ts"}]},"open-tag-content":{patterns:[{include:"#invalid-close-tag"},{include:"#tag-before-attrs"},{begin:/(?!\/?>)/dgv,end:/(?=\/?>)/dgv,patterns:[{include:"#attrs"}]}]},placeholder:{begin:/\$!?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.ts"}},contentName:"source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.ts"}},patterns:[{include:"source.ts"}]},scriptlet:{begin:/^\p{space}*(\$)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.scriptlet.marko"}},contentName:"source.ts",end:/(?=\n?$)/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts"}]},"tag-before-attrs":{patterns:[{include:"#tag-name"},{include:"#tag-shorthand-class-or-id"},{begin:/\/(?![\*\/])/dgv,beginCaptures:{"0":{name:"punctuation.separator.tag-variable.marko"}},contentName:"source.ts",end:/(?=[\(\,\/\;\<\>\|]|:?=|\p{space}+[^\:]|(?=\n?$))/dgv,name:"meta.embedded.ts",patterns:[{match:/[\$A-Z_a-z][\$0-9A-Z_a-z]*/dgv,name:"variable.other.constant.object.ts"},{begin:/\{/dgv,captures:{"0":{name:"punctuation.definition.binding-pattern.object.ts"}},end:/\}/dgv,patterns:[{include:"source.ts#object-binding-element"},{include:"#javascript-expression"}]},{begin:/\[/dgv,captures:{"0":{name:"punctuation.definition.binding-pattern.array.ts"}},end:/\]/dgv,patterns:[{include:"source.ts#array-binding-element"},{include:"#javascript-expression"}]},{begin:/\p{space}*(:)(?!=)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.ts"}},end:/(?=[\]\(\,\;]|\/>|(?<=[^\=\>])>|(?<!^|[\!\%\&\*\:\?\^\|\~]|[\-\!\%\&\*\+\/\<-\?\^\|\~]=|[\=\>]>|[^\.]\.|[^\-]-|[^\+]\+|[\]\%\)\.0-9\<A-Za-z\}]\p{space}\/|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]await|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]async|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]class|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]function|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]keyof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]new|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]readonly|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]infer|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]typeof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]void)\p{space}+(?![\n\!\%\&\*\+\:\?\^\{\|\~]|[\-\/\<\=\>]=|[\=\>]>|\.[^\.]|-[^\-]|\/[^\>]|(?:in|instanceof|satisfies|as|extends)\p{space}+[^\,\/\:\;\=\>]))/dgv,patterns:[{include:"source.ts#type"},{include:"#javascript-expression"}]},{include:"#javascript-expression"}]},{begin:/\p{space}*\|/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.marko"}},contentName:"source.ts",end:/\|/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko"}},patterns:[{include:"source.ts#comment"},{include:"source.ts#string"},{include:"source.ts#decorator"},{include:"source.ts#destructuring-parameter"},{include:"source.ts#parameter-name"},{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.ts"}},end:/(?=[\,\|])|(?==[^\>])/dgv,name:"meta.type.annotation.ts",patterns:[{include:"source.ts#type"}]},{include:"source.ts#variable-initializer"},{match:/,/dgv,name:"punctuation.separator.parameter.ts"},{include:"source.ts"}]},{include:"#html-args-or-method"},{include:"#attr-value"}]},"tag-html":{patterns:[{begin:/\p{space}*(<)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr|const|debug|id|let|lifecycle|log|return)\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"}]},{begin:/\p{space}*(<)(?=html-comment\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/(?:>|html-comment>))/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},end:/\p{space}*<\/(?:>|html-comment>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-comment"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b\P{space}*\.less\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/\2??>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.less",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-style-less"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b\P{space}*\.scss\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/\2??>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.scss",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-style-scss"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b\P{space}*\.[jt]s\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/\2??>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.ts",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-script"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/\2??>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.css",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-style"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?script)\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/\2??>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.ts",end:/\p{space}*(<\/)((?:html-)?script)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-script"}]}]},{begin:/\p{space}*(<)(?=[\#\$\.]|([\-\$0-9\@-Z_a-z]+))/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/\2??>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},end:/\p{space}*(<\/)([\-\#\$\.0-\:\@-Z_a-z]+)?([^\n]*?)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"},{include:"#tag-shorthand-class-or-id"}]},"3":{patterns:[{include:"#invalid"}]},"4":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-html-mode"}]}]}]},"tag-name":{patterns:[{applyEndPatternLast:1,begin:/*@__PURE__*/ new EmulatedRegExp("^(style)\\b(\\.[\\-\\$0-9A-Z_a-z]+(?:\\.[\\-\\$0-9A-Z_a-z]+)*)|([0-9\\@-Z_a-z](?:[\\-0-9\\@-Z_a-z]|:(?!=))*)","dgv",{"strategy":"clip_search"}),beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.type.marko.css"},"3":{patterns:[{match:/(script|style|html-script|html-style|html-comment)(?=\b)(?![\-\:\@])/dgv,name:"support.type.builtin.marko"},{match:/(for|if|while|else-if|else|try|await|return)(?=\b)(?![\-\:\@])/dgv,name:"keyword.control.flow.marko"},{match:/(const|context|debug|define|id|let|log|lifecycle)(?=\b)(?![\-\:\@])/dgv,name:"support.function.marko"},{match:/@[^\n]+/dgv,name:"entity.other.attribute-name.marko"},{match:/[^\n]+/dgv,name:"entity.name.tag.marko"}]}},end:/(?=[^\n])/dgv,patterns:[{include:"#tag-type-args"}]},{begin:/(?=[\$0-9A-Z_a-z]|-[^\-])/dgv,end:/(?=[^\-\$0-9A-Z_a-z]|(?=\n?$))/dgv,patterns:[{include:"#javascript-placeholder"},{match:/(?:[\-0-9A-Z_a-z]|\$(?!\{))+/dgv,name:"entity.name.tag.marko"}]}]},"tag-shorthand-class-or-id":{begin:/(?=[\#\.])/dgv,end:/(?=\n?$)|(?=--|[^\-\#\$\.0-9A-Z_a-z])/dgv,patterns:[{include:"#javascript-placeholder"},{match:/(?:[\-\#\.0-9A-Z_a-z]|\$(?!\{))+/dgv,name:"entity.other.attribute-name.marko"}]},"tag-type-args":{applyEndPatternLast:1,begin:/(?=<)/dgv,contentName:"source.ts",end:/(?<=>)/dgv,name:"meta.embedded.ts",patterns:[{applyEndPatternLast:1,begin:/(?<=>)(?=[\t ]*<)/dgv,end:/(?=[^\n])/dgv,patterns:[{include:"#tag-type-params"}]},{include:"source.ts#type-arguments"}]},"tag-type-params":{applyEndPatternLast:1,begin:/(?!^)[\t ]*(?=<)/dgv,contentName:"source.ts",end:/(?<=>)/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts#type-parameters"}]}},scopeName:"text.marko",embeddedLangs:["css","less","scss","typescript"],aliases:undefined})
7
+ const lang = Object.freeze({displayName:"Marko",fileTypes:["marko"],name:"marko",patterns:[{begin:/^\p{space}*(style)(\b\P{space}*\.css)?\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.css",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.css",patterns:[{include:"source.css"}]},{begin:/^\p{space}*(style)\b(\P{space}*\.less)\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.less",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.less",patterns:[{include:"source.css.less"}]},{begin:/^\p{space}*(style)\b(\P{space}*\.scss)\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.scss",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.scss",patterns:[{include:"source.css.scss"}]},{begin:/^\p{space}*(style)\b(\P{space}*\.[jt]s)\p{space}+(\{)/dgv,beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.modifier.marko.css"},"3":{name:"punctuation.section.scope.begin.marko.css"}},contentName:"source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko.css"}},name:"meta.embedded.ts",patterns:[{include:"source.ts"}]},{begin:/^\p{space}*(?:(static|server|client)\b|(?=(?:class|import|export)\b))/dgv,beginCaptures:{"1":{name:"keyword.control.static.marko"}},contentName:"source.ts",end:/(?=\n|(?=\n?$))/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts"}]},{include:"#content-concise-mode"}],repository:{"attr-value":{begin:/\p{space}*(:?=)\p{space}*/dgv,beginCaptures:{"1":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",end:/(?=[\]\,\;]|\/>|(?<=[^\=\>])>|(?<!^|[\!\%\&\*\:\?\^\|\~]|[\-\!\%\&\*\+\/\<-\?\^\|\~]=|[\=\>]>|[^\.]\.|[^\-]-|[^\+]\+|[\]\%\)\.0-9\<A-Za-z\}]\p{space}\/|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]await|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]async|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]class|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]function|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]keyof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]new|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]readonly|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]infer|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]typeof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]void)\p{space}+(?![\n\!\%\&\(\*\+\:\?\^\{\|\~]|[\-\/\<\=\>]=|[\=\>]>|\.[^\.]|-[^\-]|\/[^\>]|(?:in|instanceof|satisfies|as|extends)\p{space}+[^\,\/\:\;\=\>]))/dgv,name:"meta.embedded.ts",patterns:[{include:"#javascript-expression"}]},attrs:{patterns:[{include:"#javascript-comments"},{applyEndPatternLast:1,begin:/(?:(key|on[\-\$0-9A-Z_a-z]+|[\$0-9A-Z_a-z]+Change|no-update(?:-body)?(?:-if)?)|([\$0-9A-Z_a-z][\-\$0-9A-Z_a-z]*)|(#[\$0-9A-Z_a-z][\-\$0-9A-Z_a-z]*))(:[\$0-9A-Z_a-z][\-\$0-9A-Z_a-z]*)?/dgv,beginCaptures:{"1":{name:"support.type.attribute-name.marko"},"2":{name:"entity.other.attribute-name.marko"},"3":{name:"support.function.attribute-name.marko"},"4":{name:"support.function.attribute-name.marko"}},end:/(?=[^\n]|(?=\n?$))/dgv,name:"meta.marko-attribute",patterns:[{include:"#html-args-or-method"},{include:"#attr-value"}]},{begin:/(\.\.\.)/dgv,beginCaptures:{"1":{name:"keyword.operator.spread.marko"}},contentName:"source.ts",end:/(?=[\]\,\;]|\/>|(?<=[^\=\>])>|(?<!^|[\!\%\&\*\:\?\^\|\~]|[\-\!\%\&\*\+\/\<-\?\^\|\~]=|[\=\>]>|[^\.]\.|[^\-]-|[^\+]\+|[\]\%\)\.0-9\<A-Za-z\}]\p{space}\/|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]await|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]async|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]class|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]function|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]keyof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]new|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]readonly|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]infer|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]typeof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]void)\p{space}+(?![\n\!\%\&\(\*\+\:\?\^\{\|\~]|[\-\/\<\=\>]=|[\=\>]>|\.[^\.]|-[^\-]|\/[^\>]|(?:in|instanceof|satisfies|as|extends)\p{space}+[^\,\/\:\;\=\>]))/dgv,name:"meta.marko-spread-attribute",patterns:[{include:"#javascript-expression"}]},{begin:/\p{space}*(,(?!,))/dgv,captures:{"1":{name:"punctuation.separator.comma.marko"}},end:/(?=\P{space})/dgv},{include:"#invalid"}]},cdata:{begin:/\p{space}*<!\[CDATA\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.begin.marko"}},contentName:"string.other.inline-data.marko",end:/\]\]>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},name:"meta.tag.metadata.cdata.marko"},"concise-attr-group":{begin:/\p{space}*(\[)/dgv,beginCaptures:{"1":{name:"punctuation.section.scope.begin.marko"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko"}},patterns:[{include:"#concise-attr-group"},{begin:/\p{space}+/dgv,end:/(?=\P{space})/dgv},{include:"#attrs"},{include:"#invalid"}]},"concise-comment-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-comment-block",patterns:[{include:"#content-embedded-comment"}]},"concise-comment-line":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-comment-line",patterns:[{include:"#content-embedded-comment"}]},"concise-html-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-html-block",patterns:[{include:"#content-html-mode"}]},"concise-html-line":{captures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"},"2":{patterns:[{include:"#cdata"},{include:"#doctype"},{include:"#declaration"},{include:"#javascript-comments-after-whitespace"},{include:"#html-comment"},{include:"#tag-html"},{match:/\\[^\n]/dgv,name:"text.marko"},{include:"#placeholder"},{match:/[^\n]+?/dgv,name:"text.marko"}]},"3":{name:"punctuation.section.embedded.scope.end.marko"}},match:/\p{space}*(--+)(?=\p{space}+\P{space})([^\n]*)(?=\n?$)()/dgv,name:"meta.section.marko-html-line"},"concise-open-tag-content":{patterns:[{include:"#invalid-close-tag"},{include:"#tag-before-attrs"},{include:"#concise-semi-eol"},{begin:/(?!^)[\t \,]/dgv,end:/(?=--)|(?=\n)/dgv,patterns:[{include:"#concise-semi-eol"},{include:"#concise-attr-group"},{begin:/[\t ]+/dgv,end:/(?=[\n\P{space}])/dgv},{include:"#attrs"},{include:"#invalid"}]}]},"concise-script-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-script-block",patterns:[{include:"#content-embedded-script"}]},"concise-script-line":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-script-line",patterns:[{include:"#content-embedded-script"}]},"concise-semi-eol":{begin:/\p{space}*(;)/dgv,beginCaptures:{"1":{name:"punctuation.terminator.marko"}},end:/(?=\n?$)/dgv,patterns:[{include:"#javascript-comments"},{include:"#html-comment"},{include:"#invalid"}]},"concise-style-block":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.css",end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-block",patterns:[{include:"#content-embedded-style"}]},"concise-style-block-less":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.less",end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-block",patterns:[{include:"#content-embedded-style-less"}]},"concise-style-block-scss":{begin:/\p{space}*(--+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.scss",end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-block",patterns:[{include:"#content-embedded-style-scss"}]},"concise-style-line":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.css",end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-line",patterns:[{include:"#content-embedded-style"}]},"concise-style-line-less":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.less",end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-line",patterns:[{include:"#content-embedded-style-less"}]},"concise-style-line-scss":{applyEndPatternLast:1,begin:/\p{space}*(--+)/dgv,beginCaptures:{"1":{name:"punctuation.section.embedded.scope.begin.marko"}},contentName:"source.scss",end:/(?=\n?$)/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.scope.end.marko"}},name:"meta.section.marko-style-line",patterns:[{include:"#content-embedded-style-scss"}]},"content-concise-mode":{name:"meta.marko-concise-content",patterns:[{include:"#scriptlet"},{include:"#javascript-comments"},{include:"#cdata"},{include:"#doctype"},{include:"#declaration"},{include:"#html-comment"},{include:"#concise-html-block"},{include:"#concise-html-line"},{include:"#invalid-close-tag"},{include:"#tag-html"},{patterns:[{begin:/^(\p{space}*)(?=html-comment\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-comment-block"},{include:"#concise-comment-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b\P{space}*\.less\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-style-block-less"},{include:"#concise-style-line-less"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b\P{space}*\.scss\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-style-block-scss"},{include:"#concise-style-line-scss"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b\P{space}*\.[jt]s\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-script-block"},{include:"#concise-script-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?style\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-style-block"},{include:"#concise-style-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^(\p{space}*)(?=(?:html-)?script\b)/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#concise-script-block"},{include:"#concise-script-line"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv},{begin:/^([\t ]*)(?=[\#\$\.0-9\@-Z_a-z])/dgv,patterns:[{include:"#concise-open-tag-content"},{include:"#content-concise-mode"}],while:/(?=^(?:\p{space}*[\]\)\`\}]|\*\/|\p{space}*(?=\n?$)|\1\p{space}+(\P{space}|(?=\n?$))))/dgv}]}]},"content-embedded-comment":{patterns:[{include:"#placeholder"},{match:/[^\n]/dgv,name:"comment.block.marko"}]},"content-embedded-script":{name:"meta.embedded.ts",patterns:[{include:"#placeholder"},{include:"source.ts"}]},"content-embedded-style":{name:"meta.embedded.css",patterns:[{include:"#placeholder"},{include:"source.css"}]},"content-embedded-style-less":{name:"meta.embedded.css.less",patterns:[{include:"#placeholder"},{include:"source.css.less"}]},"content-embedded-style-scss":{name:"meta.embedded.css.scss",patterns:[{include:"#placeholder"},{include:"source.css.scss"}]},"content-html-mode":{patterns:[{include:"#scriptlet"},{include:"#cdata"},{include:"#doctype"},{include:"#declaration"},{include:"#javascript-comments-after-whitespace"},{include:"#html-comment"},{include:"#invalid-close-tag"},{include:"#tag-html"},{match:/\\[^\n]/dgv,name:"text.marko"},{include:"#placeholder"},{match:/[^\n]+?/dgv,name:"text.marko"}]},declaration:{begin:/(<\?)\p{space}*([\-\$0-9A-Z_a-z]*)/dgv,captures:{"1":{name:"punctuation.definition.tag.marko"},"2":{name:"entity.name.tag.marko"}},end:/(\??>)/dgv,name:"meta.tag.metadata.processing.xml.marko",patterns:[{captures:{"1":{name:"entity.other.attribute-name.marko"},"2":{name:"punctuation.separator.key-value.html"},"3":{name:"string.quoted.double.marko"},"4":{name:"string.quoted.single.marko"},"5":{name:"string.unquoted.marko"}},match:/((?:[^\=\>\?\p{space}]|\?(?!>))+)(=)(?:("(?:[^"\\]|\\[^\n])*")|('(?:[^'\\]|\\[^\n])*')|((?:[^\>\?\p{space}]|\?(?!>))+))/dgv}]},doctype:{begin:/\p{space}*<!(?=DOCTYPE\p{space})/dgiv,beginCaptures:{"0":{name:"punctuation.definition.tag.begin.marko"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},name:"meta.tag.metadata.doctype.marko",patterns:[{match:/DOCTYPE/dgivy,name:"entity.name.tag.marko"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.marko"},{match:/[^\>\p{space}]+/dgv,name:"entity.other.attribute-name.marko"}]},"html-args-or-method":{patterns:[{include:"#tag-type-params"},{begin:/\p{space}*(?=\()/dgv,contentName:"source.ts",end:/(?<=\))/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts#paren-expression"}]},{begin:/(?<=\))\p{space}*(?=\{)/dgv,contentName:"source.ts",end:/(?<=\})/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts"}]}]},"html-comment":{begin:/\p{space}*(<!(--)?)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.marko"}},end:/\2>()()/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.marko"}},name:"comment.block.marko"},invalid:{match:/\P{space}/dgv,name:"invalid.illegal.character-not-allowed-here.marko"},"invalid-close-tag":{begin:/\p{space}*<\/[^\>]*/dgv,end:/>/dgv,name:"invalid.illegal.character-not-allowed-here.marko"},"javascript-comments":{patterns:[{begin:/\p{space}*(?=\/\*)/dgv,contentName:"source.ts",end:/(?<=\*\/)/dgv,patterns:[{include:"source.ts"}]},{captures:{"0":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",match:/\p{space}*\/\/[^\n]*(?=\n?$)/dgv}]},"javascript-comments-after-whitespace":{patterns:[{begin:/(?:^|\p{space}+)(?=\/\*)/dgv,contentName:"source.ts",end:/(?<=\*\/)/dgv,patterns:[{include:"source.ts"}]},{captures:{"0":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",match:/(?:^|\p{space}+)\/\/[^\n]*(?=\n?$)/dgv}]},"javascript-expression":{patterns:[{include:"#javascript-comments"},{captures:{"0":{patterns:[{include:"source.ts"}]}},contentName:"source.ts",match:/(?:\p{space}*\b(?:as|await|extends|in|instanceof|satisfies|keyof|new|typeof|void))+\p{space}+(?![\,\/\:\;\=\>])[\#\$0-9\@-Z_a-z]*/dgv},{applyEndPatternLast:1,captures:{"0":{name:"string.regexp.ts",patterns:[{include:"source.ts#regexp"},{include:"source.ts"}]}},contentName:"source.ts",match:/(?<![\]\%\)\.0-9\<A-Za-z\}])\p{space}*\/(?:[^\/\[\\]|\\[^\n]|\[(?:[^\]\\]|\\[^\n])*\])*\/[A-Za-z]*/dgv},{include:"source.ts"}]},"javascript-placeholder":{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.ts"}},contentName:"source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.ts"}},patterns:[{include:"source.ts"}]},"open-tag-content":{patterns:[{include:"#invalid-close-tag"},{include:"#tag-before-attrs"},{begin:/(?!\/?>)/dgv,end:/(?=\/?>)/dgv,patterns:[{include:"#attrs"}]}]},placeholder:{begin:/\$!?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.ts"}},contentName:"source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.ts"}},patterns:[{include:"source.ts"}]},scriptlet:{begin:/^\p{space}*(\$)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.scriptlet.marko"}},contentName:"source.ts",end:/(?=\n?$)/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts"}]},"tag-before-attrs":{patterns:[{include:"#tag-name"},{include:"#tag-shorthand-class-or-id"},{begin:/\/(?![\*\/])/dgv,beginCaptures:{"0":{name:"punctuation.separator.tag-variable.marko"}},contentName:"source.ts",end:/(?=[\(\,\/\;\<\>\|]|:?=|\p{space}+[^\:]|(?=\n?$))/dgv,name:"meta.embedded.ts",patterns:[{match:/[\$A-Z_a-z][\$0-9A-Z_a-z]*/dgv,name:"variable.other.constant.object.ts"},{begin:/\{/dgv,captures:{"0":{name:"punctuation.definition.binding-pattern.object.ts"}},end:/\}/dgv,patterns:[{include:"source.ts#object-binding-element"},{include:"#javascript-expression"}]},{begin:/\[/dgv,captures:{"0":{name:"punctuation.definition.binding-pattern.array.ts"}},end:/\]/dgv,patterns:[{include:"source.ts#array-binding-element"},{include:"#javascript-expression"}]},{begin:/\p{space}*(:)(?!=)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.ts"}},end:/(?=[\]\(\,\;]|\/>|(?<=[^\=\>])>|(?<!^|[\!\%\&\*\:\?\^\|\~]|[\-\!\%\&\*\+\/\<-\?\^\|\~]=|[\=\>]>|[^\.]\.|[^\-]-|[^\+]\+|[\]\%\)\.0-9\<A-Za-z\}]\p{space}\/|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]await|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]async|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]class|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]function|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]keyof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]new|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]readonly|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]infer|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]typeof|[^\$\.\p{L}\p{M}\p{N}\p{Pc}]void)\p{space}+(?![\n\!\%\&\*\+\:\?\^\{\|\~]|[\-\/\<\=\>]=|[\=\>]>|\.[^\.]|-[^\-]|\/[^\>]|(?:in|instanceof|satisfies|as|extends)\p{space}+[^\,\/\:\;\=\>]))/dgv,patterns:[{include:"source.ts#type"},{include:"#javascript-expression"}]},{include:"#javascript-expression"}]},{begin:/\p{space}*\|/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.marko"}},contentName:"source.ts",end:/\|/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.marko"}},patterns:[{include:"source.ts#comment"},{include:"source.ts#string"},{include:"source.ts#decorator"},{include:"source.ts#destructuring-parameter"},{include:"source.ts#parameter-name"},{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.ts"}},end:/(?=[\,\|])|(?==[^\>])/dgv,name:"meta.type.annotation.ts",patterns:[{include:"source.ts#type"}]},{include:"source.ts#variable-initializer"},{match:/,/dgv,name:"punctuation.separator.parameter.ts"},{include:"source.ts"}]},{include:"#html-args-or-method"},{include:"#attr-value"}]},"tag-html":{patterns:[{begin:/\p{space}*(<)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr|const|debug|id|let|lifecycle|log|return)\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"}]},{begin:/\p{space}*(<)(?=html-comment\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/(?:>|html-comment>))/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},end:/\p{space}*<\/(?:>|html-comment>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-comment"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b\P{space}*\.less\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/>)|(?<=<\/\2>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.less",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-style-less"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b\P{space}*\.scss\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/>)|(?<=<\/\2>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.scss",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-style-scss"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b\P{space}*\.[jt]s\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/>)|(?<=<\/\2>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.ts",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-script"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?style)\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/>)|(?<=<\/\2>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.css",end:/\p{space}*(<\/)((?:html-)?style)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-style"}]}]},{begin:/\p{space}*(<)(?=((?:html-)?script)\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/>)|(?<=<\/\2>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},contentName:"source.ts",end:/\p{space}*(<\/)((?:html-)?script)?(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"}]},"3":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-embedded-script"}]}]},{begin:/\p{space}*(<)(?=[\#\$\.]|([\-\$0-9\@-Z_a-z]+))/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"}},end:/\/>|(?<=<\/>)|(?<=<\/\2>)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#open-tag-content"},{begin:/>/dgv,beginCaptures:{"0":{name:"punctuation.definition.tag.end.marko"}},end:/\p{space}*(<\/)([\-\#\$\.0-\:\@-Z_a-z]+)?([^\>]*)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.marko"},"2":{patterns:[{include:"#tag-name"},{include:"#tag-shorthand-class-or-id"}]},"3":{patterns:[{include:"#invalid"}]},"4":{name:"punctuation.definition.tag.end.marko"}},patterns:[{include:"#content-html-mode"}]}]}]},"tag-name":{patterns:[{applyEndPatternLast:1,begin:/*@__PURE__*/ new EmulatedRegExp("^(style)\\b(\\.[\\-\\$0-9A-Z_a-z]+(?:\\.[\\-\\$0-9A-Z_a-z]+)*)|([0-9\\@-Z_a-z](?:[\\-0-9\\@-Z_a-z]|:(?!=))*)","dgv",{"strategy":"clip_search"}),beginCaptures:{"1":{name:"support.type.builtin.marko"},"2":{name:"storage.type.marko.css"},"3":{patterns:[{match:/(script|style|html-script|html-style|html-comment)(?=\b)(?![\-\:\@])/dgv,name:"support.type.builtin.marko"},{match:/(for|if|while|else-if|else|try|await|return)(?=\b)(?![\-\:\@])/dgv,name:"keyword.control.flow.marko"},{match:/(const|context|debug|define|id|let|log|lifecycle)(?=\b)(?![\-\:\@])/dgv,name:"support.function.marko"},{match:/@[^\n]+/dgv,name:"entity.other.attribute-name.marko"},{match:/[^\n]+/dgv,name:"entity.name.tag.marko"}]}},end:/(?=[^\n])/dgv,patterns:[{include:"#tag-type-args"}]},{begin:/(?=[\$0-9A-Z_a-z]|-[^\-])/dgv,end:/(?=[^\-\$0-9A-Z_a-z]|(?=\n?$))/dgv,patterns:[{include:"#javascript-placeholder"},{match:/(?:[\-0-9A-Z_a-z]|\$(?!\{))+/dgv,name:"entity.name.tag.marko"}]}]},"tag-shorthand-class-or-id":{begin:/(?=[\#\.])/dgv,end:/(?=\n?$)|(?=--|[^\-\#\$\.0-9A-Z_a-z])/dgv,patterns:[{include:"#javascript-placeholder"},{match:/(?:[\-\#\.0-9A-Z_a-z]|\$(?!\{))+/dgv,name:"entity.other.attribute-name.marko"}]},"tag-type-args":{applyEndPatternLast:1,begin:/(?=<)/dgv,contentName:"source.ts",end:/(?<=>)/dgv,name:"meta.embedded.ts",patterns:[{applyEndPatternLast:1,begin:/(?<=>)(?=[\t ]*<)/dgv,end:/(?=[^\n])/dgv,patterns:[{include:"#tag-type-params"}]},{include:"source.ts#type-arguments"}]},"tag-type-params":{applyEndPatternLast:1,begin:/(?!^)[\t ]*(?=<)/dgv,contentName:"source.ts",end:/(?<=>)/dgv,name:"meta.embedded.ts",patterns:[{include:"source.ts#type-parameters"}]}},scopeName:"text.marko",embeddedLangs:["css","less","scss","typescript"],aliases:undefined})
8
8
 
9
9
  export default [
10
10
  ...css,
package/dist/mbt.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/mbt.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias mbt for moonbit */
2
+ export { default } from './moonbit.mjs'
@@ -0,0 +1,3 @@
1
+ import type { LanguageRegistration } from '@shikijs/types'
2
+ const langs: LanguageRegistration []
3
+ export default langs
package/dist/mbti.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /* Alias mbti for moonbit */
2
+ export { default } from './moonbit.mjs'