@covalent/components 8.15.0-beta.5 → 8.15.0-beta.7
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/cell.js +2 -2
- package/cell.mjs +2 -2
- package/code-editor/code-editor.d.ts +23 -1
- package/code-editor/code-editor.d.ts.map +1 -1
- package/code-editor-3a09cbf1.js +732 -0
- package/{code-editor-50658551.mjs → code-editor-ce557bd5.mjs} +14343 -47224
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/{html-e9028ad1.js → html-4fffc46e.js} +1 -1
- package/{html-201c3d5b.mjs → html-783f1e7c.mjs} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{javascript-b57f3bab.mjs → javascript-4d09cd3c.mjs} +2 -2
- package/{javascript-3c211951.js → javascript-90bb18e6.js} +1 -1
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook.js +4 -4
- package/notebook.mjs +40 -33
- package/package.json +1 -1
- package/{python-fc06c865.mjs → python-562f8e9b.mjs} +1 -1
- package/{python-bc49c081.js → python-af3aad7d.js} +1 -1
- package/style.css +1 -1
- package/{typescript-40210801.js → typescript-76d039b3.js} +1 -1
- package/{typescript-43c5c20d.mjs → typescript-a2a5d6b2.mjs} +1 -1
- package/{xml-fa896994.mjs → xml-89571455.mjs} +1 -1
- package/{xml-7bc2fc7c.js → xml-e66929d0.js} +1 -1
- package/{yaml-ed9aa786.js → yaml-11a91e71.js} +1 -1
- package/{yaml-78bd2cbe.mjs → yaml-4eccd122.mjs} +1 -1
- package/abap-1354785f.mjs +0 -1314
- package/abap-c7187853.js +0 -6
- package/apex-279d4f27.mjs +0 -315
- package/apex-fc5f2b3e.js +0 -6
- package/azcli-ba812c55.mjs +0 -74
- package/azcli-eb191d91.js +0 -6
- package/bat-34d38df4.js +0 -6
- package/bat-4d77495d.mjs +0 -95
- package/bicep-7b240724.mjs +0 -108
- package/bicep-a8264e77.js +0 -7
- package/cameligo-5d2daeb8.mjs +0 -168
- package/cameligo-6e71c8f3.js +0 -6
- package/clojure-355adae1.js +0 -6
- package/clojure-b7ea12a3.mjs +0 -754
- package/code-editor-1a85e0d5.js +0 -1200
- package/coffee-1a8cfbf4.mjs +0 -228
- package/coffee-fd8a7421.js +0 -6
- package/csp-54919de0.js +0 -6
- package/csp-96407af0.mjs +0 -57
- package/cssMode-2b74fdc2.mjs +0 -1450
- package/cssMode-9d3a459c.js +0 -9
- package/cypher-11e5a4b6.mjs +0 -262
- package/cypher-cc849b67.js +0 -6
- package/dockerfile-2f8684f7.js +0 -6
- package/dockerfile-8739cff7.mjs +0 -132
- package/ecl-68a6f20f.js +0 -6
- package/ecl-a20c5155.mjs +0 -454
- package/elixir-32cc668e.js +0 -6
- package/elixir-8b028584.mjs +0 -467
- package/flow9-0dea2e73.mjs +0 -141
- package/flow9-1d2ab5f6.js +0 -6
- package/freemarker2-bde9aca2.js +0 -8
- package/freemarker2-cfbd8857.mjs +0 -648
- package/fsharp-49a70fad.mjs +0 -210
- package/fsharp-a22f5013.js +0 -6
- package/graphql-1a14eb34.js +0 -6
- package/graphql-51a577e5.mjs +0 -141
- package/handlebars-c9cf3ba5.mjs +0 -396
- package/handlebars-f9941f98.js +0 -6
- package/hcl-0833427e.js +0 -6
- package/hcl-56b85754.mjs +0 -177
- package/htmlMode-81e069aa.mjs +0 -1460
- package/htmlMode-8825beb1.js +0 -9
- package/ini-1d58d82f.mjs +0 -68
- package/ini-34a929df.js +0 -6
- package/jsonMode-1e42d08e.mjs +0 -1871
- package/jsonMode-8cd3f8b9.js +0 -11
- package/julia-7db1fb9a.js +0 -6
- package/julia-a0caf483.mjs +0 -496
- package/less-5219eae1.js +0 -7
- package/less-718543b4.mjs +0 -168
- package/lexon-5e6e7a44.mjs +0 -151
- package/lexon-dfd683ab.js +0 -6
- package/liquid-987381d2.mjs +0 -243
- package/liquid-c3f3aaaf.js +0 -6
- package/m3-87473279.js +0 -6
- package/m3-aadaf771.mjs +0 -210
- package/mips-161e49ce.mjs +0 -194
- package/mips-82a1ce59.js +0 -6
- package/msdax-b3b5017e.js +0 -6
- package/msdax-f65cb1e6.mjs +0 -377
- package/mysql-24549dd1.mjs +0 -875
- package/mysql-69f1c589.js +0 -6
- package/objective-c-c8319b65.js +0 -6
- package/objective-c-e129a5ca.mjs +0 -188
- package/pascal-4ccdf5ce.mjs +0 -245
- package/pascal-e5207a08.js +0 -6
- package/pascaligo-8eb79945.js +0 -6
- package/pascaligo-a9603dcd.mjs +0 -158
- package/perl-ba1fb97a.mjs +0 -599
- package/perl-e8264c91.js +0 -6
- package/pgsql-89978310.mjs +0 -843
- package/pgsql-c8ba6faf.js +0 -6
- package/pla-96c2695d.mjs +0 -131
- package/pla-c85b0e59.js +0 -6
- package/postiats-3c2c478e.js +0 -6
- package/postiats-7b52ebac.mjs +0 -544
- package/powerquery-8954ec26.mjs +0 -890
- package/powerquery-b0d5f9e4.js +0 -6
- package/powershell-cdb88123.js +0 -6
- package/powershell-f00d0274.mjs +0 -233
- package/protobuf-3eb85f80.mjs +0 -422
- package/protobuf-a3b2ca94.js +0 -7
- package/pug-6fab415a.mjs +0 -393
- package/pug-c5df821d.js +0 -6
- package/qsharp-4792f872.mjs +0 -282
- package/qsharp-7eddb7b9.js +0 -6
- package/razor-52a04ea4.mjs +0 -517
- package/razor-90572182.js +0 -6
- package/redis-0d0a89dd.js +0 -6
- package/redis-276b8288.mjs +0 -298
- package/redshift-520a7359.mjs +0 -806
- package/redshift-b6bdaeca.js +0 -6
- package/restructuredtext-4676a3fc.mjs +0 -162
- package/restructuredtext-c83d56ed.js +0 -6
- package/ruby-764137cd.mjs +0 -444
- package/ruby-96103dcf.js +0 -6
- package/sb-8c22f14c.mjs +0 -110
- package/sb-e2701210.js +0 -6
- package/scheme-b9cbf7cb.js +0 -6
- package/scheme-e6a52cb0.mjs +0 -114
- package/scss-45104c77.mjs +0 -244
- package/scss-d0f4f80e.js +0 -8
- package/solidity-d4979008.mjs +0 -1351
- package/solidity-f1319e8a.js +0 -6
- package/sophia-21995caf.mjs +0 -190
- package/sophia-a1ce907f.js +0 -6
- package/sparql-5088743c.mjs +0 -193
- package/sparql-98d9e092.js +0 -6
- package/st-122893c4.js +0 -6
- package/st-fa9ab362.mjs +0 -414
- package/systemverilog-8139818b.js +0 -6
- package/systemverilog-a4f858ed.mjs +0 -556
- package/tcl-8adf937f.mjs +0 -232
- package/tcl-e49fed0b.js +0 -6
- package/tsMode-d31816b7.js +0 -16
- package/tsMode-f63ee283.mjs +0 -794
- package/twig-404eb73e.mjs +0 -323
- package/twig-4bfb5b04.js +0 -6
- package/vb-8dfd000c.js +0 -6
- package/vb-e21e8153.mjs +0 -364
package/redshift-b6bdaeca.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
-
* Released under the MIT license
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},_={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","AZ64","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LANGUAGE","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY16","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}};exports.conf=e;exports.language=_;
|
@@ -1,162 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
-
* Released under the MIT license
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/
|
7
|
-
var e = {
|
8
|
-
brackets: [
|
9
|
-
["{", "}"],
|
10
|
-
["[", "]"],
|
11
|
-
["(", ")"]
|
12
|
-
],
|
13
|
-
autoClosingPairs: [
|
14
|
-
{ open: "{", close: "}" },
|
15
|
-
{ open: "[", close: "]" },
|
16
|
-
{ open: "(", close: ")" },
|
17
|
-
{ open: "<", close: ">", notIn: ["string"] }
|
18
|
-
],
|
19
|
-
surroundingPairs: [
|
20
|
-
{ open: "(", close: ")" },
|
21
|
-
{ open: "[", close: "]" },
|
22
|
-
{ open: "`", close: "`" }
|
23
|
-
],
|
24
|
-
folding: {
|
25
|
-
markers: {
|
26
|
-
start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
|
27
|
-
end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}, n = {
|
31
|
-
defaultToken: "",
|
32
|
-
tokenPostfix: ".rst",
|
33
|
-
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
34
|
-
escapes: /\\(?:@control)/,
|
35
|
-
empty: [
|
36
|
-
"area",
|
37
|
-
"base",
|
38
|
-
"basefont",
|
39
|
-
"br",
|
40
|
-
"col",
|
41
|
-
"frame",
|
42
|
-
"hr",
|
43
|
-
"img",
|
44
|
-
"input",
|
45
|
-
"isindex",
|
46
|
-
"link",
|
47
|
-
"meta",
|
48
|
-
"param"
|
49
|
-
],
|
50
|
-
alphanumerics: /[A-Za-z0-9]/,
|
51
|
-
simpleRefNameWithoutBq: /(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,
|
52
|
-
simpleRefName: /(?:`@phrase`|@simpleRefNameWithoutBq)/,
|
53
|
-
phrase: /@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,
|
54
|
-
citationName: /[A-Za-z][A-Za-z0-9-_.]*/,
|
55
|
-
blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,
|
56
|
-
precedingChars: /(?:[ -:/'"<([{])/,
|
57
|
-
followingChars: /(?:[ -.,:;!?/'")\]}>]|$)/,
|
58
|
-
punctuation: /(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,
|
59
|
-
tokenizer: {
|
60
|
-
root: [
|
61
|
-
[/^(@punctuation{3,}$){1,1}?/, "keyword"],
|
62
|
-
[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/, "keyword"],
|
63
|
-
[/([ ]::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"],
|
64
|
-
[/(::)\s*$/, "keyword", "@blankLineOfLiteralBlocks"],
|
65
|
-
{ include: "@tables" },
|
66
|
-
{ include: "@explicitMarkupBlocks" },
|
67
|
-
{ include: "@inlineMarkup" }
|
68
|
-
],
|
69
|
-
explicitMarkupBlocks: [
|
70
|
-
{ include: "@citations" },
|
71
|
-
{ include: "@footnotes" },
|
72
|
-
[
|
73
|
-
/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,
|
74
|
-
[{ token: "", next: "subsequentLines" }, "keyword", "", ""]
|
75
|
-
],
|
76
|
-
[
|
77
|
-
/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,
|
78
|
-
[{ token: "", next: "hyperlinks" }, "", "", "string.link", "", "", "string.link"]
|
79
|
-
],
|
80
|
-
[
|
81
|
-
/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,
|
82
|
-
[{ token: "", next: "subsequentLines" }, "", "", "", "string.link"]
|
83
|
-
],
|
84
|
-
[/^(__\s+)(.+)/, ["", "string.link"]],
|
85
|
-
[
|
86
|
-
/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,
|
87
|
-
[{ token: "", next: "subsequentLines" }, "", "string.link", "", "keyword", ""],
|
88
|
-
"@rawBlocks"
|
89
|
-
],
|
90
|
-
[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/, ["", "string.link", ""]],
|
91
|
-
[/^(\.\.)([ ].*)$/, [{ token: "", next: "@comments" }, "comment"]]
|
92
|
-
],
|
93
|
-
inlineMarkup: [
|
94
|
-
{ include: "@citationsReference" },
|
95
|
-
{ include: "@footnotesReference" },
|
96
|
-
[/(@simpleRefName)(_{1,2})/, ["string.link", ""]],
|
97
|
-
[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/, ["", "string.link", "", "string.link", "", "", ""]],
|
98
|
-
[/\*\*([^\\*]|\*(?!\*))+\*\*/, "strong"],
|
99
|
-
[/\*[^*]+\*/, "emphasis"],
|
100
|
-
[/(``)((?:[^`]|\`(?!`))+)(``)/, ["", "keyword", ""]],
|
101
|
-
[/(__\s+)(.+)/, ["", "keyword"]],
|
102
|
-
[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/, ["", "keyword", "", "", ""]],
|
103
|
-
[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/, ["", "", "", "keyword", ""]],
|
104
|
-
[/(`)([^`]+)(`)/, ""],
|
105
|
-
[/(_`)(@phrase)(`)/, ["", "string.link", ""]]
|
106
|
-
],
|
107
|
-
citations: [
|
108
|
-
[
|
109
|
-
/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,
|
110
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
111
|
-
]
|
112
|
-
],
|
113
|
-
citationsReference: [[/(\[)(@citationName)(\]_)/, ["", "string.link", ""]]],
|
114
|
-
footnotes: [
|
115
|
-
[
|
116
|
-
/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,
|
117
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", ""]
|
118
|
-
],
|
119
|
-
[
|
120
|
-
/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,
|
121
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
122
|
-
],
|
123
|
-
[
|
124
|
-
/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,
|
125
|
-
[{ token: "", next: "@subsequentLines" }, "string.link", "", ""]
|
126
|
-
]
|
127
|
-
],
|
128
|
-
footnotesReference: [
|
129
|
-
[/(\[)([0-9]+)(\])(_)/, ["", "string.link", "", ""]],
|
130
|
-
[/(\[)(#@simpleRefName?)(\])(_)/, ["", "string.link", "", ""]],
|
131
|
-
[/(\[)(\*)(\])(_)/, ["", "string.link", "", ""]]
|
132
|
-
],
|
133
|
-
blankLineOfLiteralBlocks: [
|
134
|
-
[/^$/, "", "@subsequentLinesOfLiteralBlocks"],
|
135
|
-
[/^.*$/, "", "@pop"]
|
136
|
-
],
|
137
|
-
subsequentLinesOfLiteralBlocks: [
|
138
|
-
[/(@blockLiteralStart+)(.*)/, ["keyword", ""]],
|
139
|
-
[/^(?!blockLiteralStart)/, "", "@popall"]
|
140
|
-
],
|
141
|
-
subsequentLines: [
|
142
|
-
[/^[\s]+.*/, ""],
|
143
|
-
[/^(?!\s)/, "", "@pop"]
|
144
|
-
],
|
145
|
-
hyperlinks: [
|
146
|
-
[/^[\s]+.*/, "string.link"],
|
147
|
-
[/^(?!\s)/, "", "@pop"]
|
148
|
-
],
|
149
|
-
comments: [
|
150
|
-
[/^[\s]+.*/, "comment"],
|
151
|
-
[/^(?!\s)/, "", "@pop"]
|
152
|
-
],
|
153
|
-
tables: [
|
154
|
-
[/\+-[+-]+/, "keyword"],
|
155
|
-
[/\+=[+=]+/, "keyword"]
|
156
|
-
]
|
157
|
-
}
|
158
|
-
};
|
159
|
-
export {
|
160
|
-
e as conf,
|
161
|
-
n as language
|
162
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
-
* Released under the MIT license
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},n={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}};exports.conf=e;exports.language=n;
|
package/ruby-764137cd.mjs
DELETED
@@ -1,444 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
4
|
-
* Released under the MIT license
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
-
*-----------------------------------------------------------------------------*/
|
7
|
-
var e = {
|
8
|
-
comments: {
|
9
|
-
lineComment: "#",
|
10
|
-
blockComment: ["=begin", "=end"]
|
11
|
-
},
|
12
|
-
brackets: [
|
13
|
-
["(", ")"],
|
14
|
-
["{", "}"],
|
15
|
-
["[", "]"]
|
16
|
-
],
|
17
|
-
autoClosingPairs: [
|
18
|
-
{ open: "{", close: "}" },
|
19
|
-
{ open: "[", close: "]" },
|
20
|
-
{ open: "(", close: ")" },
|
21
|
-
{ open: '"', close: '"' },
|
22
|
-
{ open: "'", close: "'" }
|
23
|
-
],
|
24
|
-
surroundingPairs: [
|
25
|
-
{ open: "{", close: "}" },
|
26
|
-
{ open: "[", close: "]" },
|
27
|
-
{ open: "(", close: ")" },
|
28
|
-
{ open: '"', close: '"' },
|
29
|
-
{ open: "'", close: "'" }
|
30
|
-
],
|
31
|
-
indentationRules: {
|
32
|
-
increaseIndentPattern: new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),
|
33
|
-
decreaseIndentPattern: new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")
|
34
|
-
}
|
35
|
-
}, t = {
|
36
|
-
tokenPostfix: ".ruby",
|
37
|
-
keywords: [
|
38
|
-
"__LINE__",
|
39
|
-
"__ENCODING__",
|
40
|
-
"__FILE__",
|
41
|
-
"BEGIN",
|
42
|
-
"END",
|
43
|
-
"alias",
|
44
|
-
"and",
|
45
|
-
"begin",
|
46
|
-
"break",
|
47
|
-
"case",
|
48
|
-
"class",
|
49
|
-
"def",
|
50
|
-
"defined?",
|
51
|
-
"do",
|
52
|
-
"else",
|
53
|
-
"elsif",
|
54
|
-
"end",
|
55
|
-
"ensure",
|
56
|
-
"for",
|
57
|
-
"false",
|
58
|
-
"if",
|
59
|
-
"in",
|
60
|
-
"module",
|
61
|
-
"next",
|
62
|
-
"nil",
|
63
|
-
"not",
|
64
|
-
"or",
|
65
|
-
"redo",
|
66
|
-
"rescue",
|
67
|
-
"retry",
|
68
|
-
"return",
|
69
|
-
"self",
|
70
|
-
"super",
|
71
|
-
"then",
|
72
|
-
"true",
|
73
|
-
"undef",
|
74
|
-
"unless",
|
75
|
-
"until",
|
76
|
-
"when",
|
77
|
-
"while",
|
78
|
-
"yield"
|
79
|
-
],
|
80
|
-
keywordops: ["::", "..", "...", "?", ":", "=>"],
|
81
|
-
builtins: [
|
82
|
-
"require",
|
83
|
-
"public",
|
84
|
-
"private",
|
85
|
-
"include",
|
86
|
-
"extend",
|
87
|
-
"attr_reader",
|
88
|
-
"protected",
|
89
|
-
"private_class_method",
|
90
|
-
"protected_class_method",
|
91
|
-
"new"
|
92
|
-
],
|
93
|
-
declarations: [
|
94
|
-
"module",
|
95
|
-
"class",
|
96
|
-
"def",
|
97
|
-
"case",
|
98
|
-
"do",
|
99
|
-
"begin",
|
100
|
-
"for",
|
101
|
-
"if",
|
102
|
-
"while",
|
103
|
-
"until",
|
104
|
-
"unless"
|
105
|
-
],
|
106
|
-
linedecls: ["def", "case", "do", "begin", "for", "if", "while", "until", "unless"],
|
107
|
-
operators: [
|
108
|
-
"^",
|
109
|
-
"&",
|
110
|
-
"|",
|
111
|
-
"<=>",
|
112
|
-
"==",
|
113
|
-
"===",
|
114
|
-
"!~",
|
115
|
-
"=~",
|
116
|
-
">",
|
117
|
-
">=",
|
118
|
-
"<",
|
119
|
-
"<=",
|
120
|
-
"<<",
|
121
|
-
">>",
|
122
|
-
"+",
|
123
|
-
"-",
|
124
|
-
"*",
|
125
|
-
"/",
|
126
|
-
"%",
|
127
|
-
"**",
|
128
|
-
"~",
|
129
|
-
"+@",
|
130
|
-
"-@",
|
131
|
-
"[]",
|
132
|
-
"[]=",
|
133
|
-
"`",
|
134
|
-
"+=",
|
135
|
-
"-=",
|
136
|
-
"*=",
|
137
|
-
"**=",
|
138
|
-
"/=",
|
139
|
-
"^=",
|
140
|
-
"%=",
|
141
|
-
"<<=",
|
142
|
-
">>=",
|
143
|
-
"&=",
|
144
|
-
"&&=",
|
145
|
-
"||=",
|
146
|
-
"|="
|
147
|
-
],
|
148
|
-
brackets: [
|
149
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
150
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
151
|
-
{ open: "[", close: "]", token: "delimiter.square" }
|
152
|
-
],
|
153
|
-
symbols: /[=><!~?:&|+\-*\/\^%\.]+/,
|
154
|
-
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
155
|
-
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
156
|
-
decpart: /\d(_?\d)*/,
|
157
|
-
decimal: /0|@decpart/,
|
158
|
-
delim: /[^a-zA-Z0-9\s\n\r]/,
|
159
|
-
heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,
|
160
|
-
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
161
|
-
regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,
|
162
|
-
tokenizer: {
|
163
|
-
root: [
|
164
|
-
[
|
165
|
-
/^(\s*)([a-z_]\w*[!?=]?)/,
|
166
|
-
[
|
167
|
-
"white",
|
168
|
-
{
|
169
|
-
cases: {
|
170
|
-
"for|until|while": {
|
171
|
-
token: "keyword.$2",
|
172
|
-
next: "@dodecl.$2"
|
173
|
-
},
|
174
|
-
"@declarations": {
|
175
|
-
token: "keyword.$2",
|
176
|
-
next: "@root.$2"
|
177
|
-
},
|
178
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
179
|
-
"@keywords": "keyword",
|
180
|
-
"@builtins": "predefined",
|
181
|
-
"@default": "identifier"
|
182
|
-
}
|
183
|
-
}
|
184
|
-
]
|
185
|
-
],
|
186
|
-
[
|
187
|
-
/[a-z_]\w*[!?=]?/,
|
188
|
-
{
|
189
|
-
cases: {
|
190
|
-
"if|unless|while|until": {
|
191
|
-
token: "keyword.$0x",
|
192
|
-
next: "@modifier.$0x"
|
193
|
-
},
|
194
|
-
for: { token: "keyword.$2", next: "@dodecl.$2" },
|
195
|
-
"@linedecls": { token: "keyword.$0", next: "@root.$0" },
|
196
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
197
|
-
"@keywords": "keyword",
|
198
|
-
"@builtins": "predefined",
|
199
|
-
"@default": "identifier"
|
200
|
-
}
|
201
|
-
}
|
202
|
-
],
|
203
|
-
[/[A-Z][\w]*[!?=]?/, "constructor.identifier"],
|
204
|
-
[/\$[\w]*/, "global.constant"],
|
205
|
-
[/@[\w]*/, "namespace.instance.identifier"],
|
206
|
-
[/@@@[\w]*/, "namespace.class.identifier"],
|
207
|
-
[/<<[-~](@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
208
|
-
[/[ \t\r\n]+<<(@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
209
|
-
[/^<<(@heredelim).*/, { token: "string.heredoc.delimiter", next: "@heredoc.$1" }],
|
210
|
-
{ include: "@whitespace" },
|
211
|
-
[/"/, { token: "string.d.delim", next: '@dstring.d."' }],
|
212
|
-
[/'/, { token: "string.sq.delim", next: "@sstring.sq" }],
|
213
|
-
[/%([rsqxwW]|Q?)/, { token: "@rematch", next: "pstring" }],
|
214
|
-
[/`/, { token: "string.x.delim", next: "@dstring.x.`" }],
|
215
|
-
[/:(\w|[$@])\w*[!?=]?/, "string.s"],
|
216
|
-
[/:"/, { token: "string.s.delim", next: '@dstring.s."' }],
|
217
|
-
[/:'/, { token: "string.s.delim", next: "@sstring.s" }],
|
218
|
-
[/\/(?=(\\\/|[^\/\n])+\/)/, { token: "regexp.delim", next: "@regexp" }],
|
219
|
-
[/[{}()\[\]]/, "@brackets"],
|
220
|
-
[
|
221
|
-
/@symbols/,
|
222
|
-
{
|
223
|
-
cases: {
|
224
|
-
"@keywordops": "keyword",
|
225
|
-
"@operators": "operator",
|
226
|
-
"@default": ""
|
227
|
-
}
|
228
|
-
}
|
229
|
-
],
|
230
|
-
[/[;,]/, "delimiter"],
|
231
|
-
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
232
|
-
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
233
|
-
[/0[bB][01](_?[01])*/, "number.binary"],
|
234
|
-
[/0[dD]@decpart/, "number"],
|
235
|
-
[
|
236
|
-
/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,
|
237
|
-
{
|
238
|
-
cases: {
|
239
|
-
$1: "number.float",
|
240
|
-
"@default": "number"
|
241
|
-
}
|
242
|
-
}
|
243
|
-
]
|
244
|
-
],
|
245
|
-
dodecl: [
|
246
|
-
[/^/, { token: "", switchTo: "@root.$S2" }],
|
247
|
-
[
|
248
|
-
/[a-z_]\w*[!?=]?/,
|
249
|
-
{
|
250
|
-
cases: {
|
251
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
252
|
-
do: { token: "keyword", switchTo: "@root.$S2" },
|
253
|
-
"@linedecls": {
|
254
|
-
token: "@rematch",
|
255
|
-
switchTo: "@root.$S2"
|
256
|
-
},
|
257
|
-
"@keywords": "keyword",
|
258
|
-
"@builtins": "predefined",
|
259
|
-
"@default": "identifier"
|
260
|
-
}
|
261
|
-
}
|
262
|
-
],
|
263
|
-
{ include: "@root" }
|
264
|
-
],
|
265
|
-
modifier: [
|
266
|
-
[/^/, "", "@pop"],
|
267
|
-
[
|
268
|
-
/[a-z_]\w*[!?=]?/,
|
269
|
-
{
|
270
|
-
cases: {
|
271
|
-
end: { token: "keyword.$S2", next: "@pop" },
|
272
|
-
"then|else|elsif|do": {
|
273
|
-
token: "keyword",
|
274
|
-
switchTo: "@root.$S2"
|
275
|
-
},
|
276
|
-
"@linedecls": {
|
277
|
-
token: "@rematch",
|
278
|
-
switchTo: "@root.$S2"
|
279
|
-
},
|
280
|
-
"@keywords": "keyword",
|
281
|
-
"@builtins": "predefined",
|
282
|
-
"@default": "identifier"
|
283
|
-
}
|
284
|
-
}
|
285
|
-
],
|
286
|
-
{ include: "@root" }
|
287
|
-
],
|
288
|
-
sstring: [
|
289
|
-
[/[^\\']+/, "string.$S2"],
|
290
|
-
[/\\\\|\\'|\\$/, "string.$S2.escape"],
|
291
|
-
[/\\./, "string.$S2.invalid"],
|
292
|
-
[/'/, { token: "string.$S2.delim", next: "@pop" }]
|
293
|
-
],
|
294
|
-
dstring: [
|
295
|
-
[/[^\\`"#]+/, "string.$S2"],
|
296
|
-
[/#/, "string.$S2.escape", "@interpolated"],
|
297
|
-
[/\\$/, "string.$S2.escape"],
|
298
|
-
[/@escapes/, "string.$S2.escape"],
|
299
|
-
[/\\./, "string.$S2.escape.invalid"],
|
300
|
-
[
|
301
|
-
/[`"]/,
|
302
|
-
{
|
303
|
-
cases: {
|
304
|
-
"$#==$S3": { token: "string.$S2.delim", next: "@pop" },
|
305
|
-
"@default": "string.$S2"
|
306
|
-
}
|
307
|
-
}
|
308
|
-
]
|
309
|
-
],
|
310
|
-
heredoc: [
|
311
|
-
[
|
312
|
-
/^(\s*)(@heredelim)$/,
|
313
|
-
{
|
314
|
-
cases: {
|
315
|
-
"$2==$S2": ["string.heredoc", { token: "string.heredoc.delimiter", next: "@pop" }],
|
316
|
-
"@default": ["string.heredoc", "string.heredoc"]
|
317
|
-
}
|
318
|
-
}
|
319
|
-
],
|
320
|
-
[/.*/, "string.heredoc"]
|
321
|
-
],
|
322
|
-
interpolated: [
|
323
|
-
[/\$\w*/, "global.constant", "@pop"],
|
324
|
-
[/@\w*/, "namespace.class.identifier", "@pop"],
|
325
|
-
[/@@@\w*/, "namespace.instance.identifier", "@pop"],
|
326
|
-
[
|
327
|
-
/[{]/,
|
328
|
-
{
|
329
|
-
token: "string.escape.curly",
|
330
|
-
switchTo: "@interpolated_compound"
|
331
|
-
}
|
332
|
-
],
|
333
|
-
["", "", "@pop"]
|
334
|
-
],
|
335
|
-
interpolated_compound: [
|
336
|
-
[/[}]/, { token: "string.escape.curly", next: "@pop" }],
|
337
|
-
{ include: "@root" }
|
338
|
-
],
|
339
|
-
pregexp: [
|
340
|
-
{ include: "@whitespace" },
|
341
|
-
[
|
342
|
-
/[^\(\{\[\\]/,
|
343
|
-
{
|
344
|
-
cases: {
|
345
|
-
"$#==$S3": { token: "regexp.delim", next: "@pop" },
|
346
|
-
"$#==$S2": { token: "regexp.delim", next: "@push" },
|
347
|
-
"~[)}\\]]": "@brackets.regexp.escape.control",
|
348
|
-
"~@regexpctl": "regexp.escape.control",
|
349
|
-
"@default": "regexp"
|
350
|
-
}
|
351
|
-
}
|
352
|
-
],
|
353
|
-
{ include: "@regexcontrol" }
|
354
|
-
],
|
355
|
-
regexp: [
|
356
|
-
{ include: "@regexcontrol" },
|
357
|
-
[/[^\\\/]/, "regexp"],
|
358
|
-
["/[ixmp]*", { token: "regexp.delim" }, "@pop"]
|
359
|
-
],
|
360
|
-
regexcontrol: [
|
361
|
-
[
|
362
|
-
/(\{)(\d+(?:,\d*)?)(\})/,
|
363
|
-
[
|
364
|
-
"@brackets.regexp.escape.control",
|
365
|
-
"regexp.escape.control",
|
366
|
-
"@brackets.regexp.escape.control"
|
367
|
-
]
|
368
|
-
],
|
369
|
-
[
|
370
|
-
/(\[)(\^?)/,
|
371
|
-
["@brackets.regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
372
|
-
],
|
373
|
-
[/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]],
|
374
|
-
[/\(\?#/, { token: "regexp.escape.control", next: "@regexpcomment" }],
|
375
|
-
[/[()]/, "@brackets.regexp.escape.control"],
|
376
|
-
[/@regexpctl/, "regexp.escape.control"],
|
377
|
-
[/\\$/, "regexp.escape"],
|
378
|
-
[/@regexpesc/, "regexp.escape"],
|
379
|
-
[/\\\./, "regexp.invalid"],
|
380
|
-
[/#/, "regexp.escape", "@interpolated"]
|
381
|
-
],
|
382
|
-
regexrange: [
|
383
|
-
[/-/, "regexp.escape.control"],
|
384
|
-
[/\^/, "regexp.invalid"],
|
385
|
-
[/\\$/, "regexp.escape"],
|
386
|
-
[/@regexpesc/, "regexp.escape"],
|
387
|
-
[/[^\]]/, "regexp"],
|
388
|
-
[/\]/, "@brackets.regexp.escape.control", "@pop"]
|
389
|
-
],
|
390
|
-
regexpcomment: [
|
391
|
-
[/[^)]+/, "comment"],
|
392
|
-
[/\)/, { token: "regexp.escape.control", next: "@pop" }]
|
393
|
-
],
|
394
|
-
pstring: [
|
395
|
-
[/%([qws])\(/, { token: "string.$1.delim", switchTo: "@qstring.$1.(.)" }],
|
396
|
-
[/%([qws])\[/, { token: "string.$1.delim", switchTo: "@qstring.$1.[.]" }],
|
397
|
-
[/%([qws])\{/, { token: "string.$1.delim", switchTo: "@qstring.$1.{.}" }],
|
398
|
-
[/%([qws])</, { token: "string.$1.delim", switchTo: "@qstring.$1.<.>" }],
|
399
|
-
[/%([qws])(@delim)/, { token: "string.$1.delim", switchTo: "@qstring.$1.$2.$2" }],
|
400
|
-
[/%r\(/, { token: "regexp.delim", switchTo: "@pregexp.(.)" }],
|
401
|
-
[/%r\[/, { token: "regexp.delim", switchTo: "@pregexp.[.]" }],
|
402
|
-
[/%r\{/, { token: "regexp.delim", switchTo: "@pregexp.{.}" }],
|
403
|
-
[/%r</, { token: "regexp.delim", switchTo: "@pregexp.<.>" }],
|
404
|
-
[/%r(@delim)/, { token: "regexp.delim", switchTo: "@pregexp.$1.$1" }],
|
405
|
-
[/%(x|W|Q?)\(/, { token: "string.$1.delim", switchTo: "@qqstring.$1.(.)" }],
|
406
|
-
[/%(x|W|Q?)\[/, { token: "string.$1.delim", switchTo: "@qqstring.$1.[.]" }],
|
407
|
-
[/%(x|W|Q?)\{/, { token: "string.$1.delim", switchTo: "@qqstring.$1.{.}" }],
|
408
|
-
[/%(x|W|Q?)</, { token: "string.$1.delim", switchTo: "@qqstring.$1.<.>" }],
|
409
|
-
[/%(x|W|Q?)(@delim)/, { token: "string.$1.delim", switchTo: "@qqstring.$1.$2.$2" }],
|
410
|
-
[/%([rqwsxW]|Q?)./, { token: "invalid", next: "@pop" }],
|
411
|
-
[/./, { token: "invalid", next: "@pop" }]
|
412
|
-
],
|
413
|
-
qstring: [
|
414
|
-
[/\\$/, "string.$S2.escape"],
|
415
|
-
[/\\./, "string.$S2.escape"],
|
416
|
-
[
|
417
|
-
/./,
|
418
|
-
{
|
419
|
-
cases: {
|
420
|
-
"$#==$S4": { token: "string.$S2.delim", next: "@pop" },
|
421
|
-
"$#==$S3": { token: "string.$S2.delim", next: "@push" },
|
422
|
-
"@default": "string.$S2"
|
423
|
-
}
|
424
|
-
}
|
425
|
-
]
|
426
|
-
],
|
427
|
-
qqstring: [[/#/, "string.$S2.escape", "@interpolated"], { include: "@qstring" }],
|
428
|
-
whitespace: [
|
429
|
-
[/[ \t\r\n]+/, ""],
|
430
|
-
[/^\s*=begin\b/, "comment", "@comment"],
|
431
|
-
[/#.*$/, "comment"]
|
432
|
-
],
|
433
|
-
comment: [
|
434
|
-
[/[^=]+/, "comment"],
|
435
|
-
[/^\s*=begin\b/, "comment.invalid"],
|
436
|
-
[/^\s*=end\b.*/, "comment", "@pop"],
|
437
|
-
[/[=]/, "comment"]
|
438
|
-
]
|
439
|
-
}
|
440
|
-
};
|
441
|
-
export {
|
442
|
-
e as conf,
|
443
|
-
t as language
|
444
|
-
};
|