@covalent/components 8.14.1 → 8.15.0-beta.2
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/abap-1354785f.mjs +1314 -0
- package/abap-c7187853.js +6 -0
- package/action-ribbon.js +1 -1
- package/action-ribbon.mjs +4 -3
- package/alert.js +1 -1
- package/alert.mjs +4 -3
- package/apex-279d4f27.mjs +315 -0
- package/apex-fc5f2b3e.js +6 -0
- package/app-shell.js +1 -1
- package/app-shell.mjs +8 -7
- package/assets/css.worker-1af1972f.js +84 -0
- package/assets/editor.worker-df55e1ff.js +8 -0
- package/assets/html.worker-38c267f1.js +456 -0
- package/assets/json.worker-bf861c27.js +39 -0
- package/assets/ts.worker-e151483b.js +33972 -0
- package/async-directive-4a34f75e.js +5 -0
- package/async-directive-99a01ec7.mjs +78 -0
- package/azcli-ba812c55.mjs +74 -0
- package/azcli-eb191d91.js +6 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -3
- package/bat-34d38df4.js +6 -0
- package/bat-4d77495d.mjs +95 -0
- package/bicep-7b240724.mjs +108 -0
- package/bicep-a8264e77.js +7 -0
- package/button.js +1 -1
- package/button.mjs +10 -9
- package/cameligo-5d2daeb8.mjs +168 -0
- package/cameligo-6e71c8f3.js +6 -0
- package/card.js +1 -1
- package/card.mjs +4 -3
- package/cell/cell.d.ts +63 -0
- package/cell/cell.d.ts.map +1 -0
- package/cell.js +25 -0
- package/cell.mjs +134 -0
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +8 -7
- package/checkbox.js +1 -1
- package/checkbox.mjs +16 -15
- package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
- package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
- package/chip-set.js +2 -2
- package/chip-set.mjs +46 -45
- package/chip.js +1 -1
- package/chip.mjs +5 -4
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +5 -4
- package/class-map-0a4c6ca9.js +5 -0
- package/class-map-6e504a9a.mjs +38 -0
- package/clojure-355adae1.js +6 -0
- package/clojure-b7ea12a3.mjs +754 -0
- package/code-editor/code-editor.d.ts +51 -0
- package/code-editor/code-editor.d.ts.map +1 -0
- package/code-editor-7a36c890.js +1200 -0
- package/code-editor-b9acd487.mjs +94274 -0
- package/code-editor.js +1 -0
- package/code-editor.mjs +10 -0
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +4 -3
- package/coffee-1a8cfbf4.mjs +228 -0
- package/coffee-fd8a7421.js +6 -0
- package/cpp-642b10c4.mjs +387 -0
- package/cpp-7eec3311.js +6 -0
- package/csharp-32862cd2.js +6 -0
- package/csharp-d987ddad.mjs +320 -0
- package/csp-54919de0.js +6 -0
- package/csp-96407af0.mjs +57 -0
- package/css-5dd354ac.mjs +186 -0
- package/css-9be95551.js +8 -0
- package/cssMode-2cffe81f.js +9 -0
- package/cssMode-6f4ea93a.mjs +1450 -0
- package/cypher-11e5a4b6.mjs +262 -0
- package/cypher-cc849b67.js +6 -0
- package/dart-031264ea.js +6 -0
- package/dart-5d209f63.mjs +270 -0
- package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
- package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
- package/dialog.js +1 -1
- package/dialog.mjs +5 -4
- package/directive-1186bc23.js +5 -0
- package/directive-daf4e9b6.mjs +27 -0
- package/dockerfile-2f8684f7.js +6 -0
- package/dockerfile-8739cff7.mjs +132 -0
- package/drawer.js +1 -1
- package/drawer.mjs +5 -4
- package/ecl-68a6f20f.js +6 -0
- package/ecl-a20c5155.mjs +454 -0
- package/elixir-32cc668e.js +6 -0
- package/elixir-8b028584.mjs +467 -0
- package/flow9-0dea2e73.mjs +141 -0
- package/flow9-1d2ab5f6.js +6 -0
- package/formfield.js +3 -3
- package/formfield.mjs +4 -3
- package/freemarker2-89c6e6f3.js +8 -0
- package/freemarker2-906bf3f7.mjs +648 -0
- package/fsharp-49a70fad.mjs +210 -0
- package/fsharp-a22f5013.js +6 -0
- package/go-46e3b371.mjs +208 -0
- package/go-cdd943fd.js +6 -0
- package/graphql-1a14eb34.js +6 -0
- package/graphql-51a577e5.mjs +141 -0
- package/handlebars-dbc16556.mjs +396 -0
- package/handlebars-e0f7efbe.js +6 -0
- package/hcl-0833427e.js +6 -0
- package/hcl-56b85754.mjs +177 -0
- package/html-d8278158.js +6 -0
- package/html-feca0a24.mjs +286 -0
- package/htmlMode-45e8cd50.mjs +1460 -0
- package/htmlMode-989d6a85.js +9 -0
- package/icon-button-toggle.js +1 -1
- package/icon-button-toggle.mjs +6 -5
- package/icon-button.js +1 -1
- package/icon-button.mjs +6 -5
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -6
- package/icon-radio-toggle.js +3 -3
- package/icon-radio-toggle.mjs +7 -6
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +125 -117
- package/ini-1d58d82f.mjs +68 -0
- package/ini-34a929df.js +6 -0
- package/java-32d7b433.js +6 -0
- package/java-cd017f60.mjs +221 -0
- package/javascript-3fd1e5a8.mjs +80 -0
- package/javascript-5d8f5f2a.js +6 -0
- package/jsonMode-33e7baa8.js +11 -0
- package/jsonMode-b4ecafe2.mjs +1871 -0
- package/julia-7db1fb9a.js +6 -0
- package/julia-a0caf483.mjs +496 -0
- package/kotlin-4b9019e1.js +6 -0
- package/kotlin-c6e52a56.mjs +245 -0
- package/less-5219eae1.js +7 -0
- package/less-718543b4.mjs +168 -0
- package/lexon-5e6e7a44.mjs +151 -0
- package/lexon-dfd683ab.js +6 -0
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +5 -4
- package/liquid-97280cdd.js +6 -0
- package/liquid-9be0367d.mjs +243 -0
- package/list-item.js +2 -2
- package/list-item.mjs +7 -6
- package/list.js +1 -1
- package/list.mjs +8 -7
- package/lua-b46719a9.js +6 -0
- package/lua-f159160b.mjs +157 -0
- package/m3-87473279.js +6 -0
- package/m3-aadaf771.mjs +210 -0
- package/markdown-9b448c46.mjs +202 -0
- package/markdown-eae8e3ba.js +6 -0
- package/menu.js +5 -5
- package/menu.mjs +9 -8
- package/mips-161e49ce.mjs +194 -0
- package/mips-82a1ce59.js +6 -0
- package/msdax-b3b5017e.js +6 -0
- package/msdax-f65cb1e6.mjs +377 -0
- package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
- package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
- package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
- package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
- package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
- package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
- package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
- package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
- package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
- package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
- package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
- package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
- package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
- package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
- package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
- package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
- package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
- package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
- package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
- package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
- package/mysql-24549dd1.mjs +875 -0
- package/mysql-69f1c589.js +6 -0
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +7 -6
- package/notebook/notebook.d.ts +50 -0
- package/notebook/notebook.d.ts.map +1 -0
- package/notebook.js +99 -0
- package/notebook.mjs +3326 -0
- package/objective-c-c8319b65.js +6 -0
- package/objective-c-e129a5ca.mjs +188 -0
- package/package.json +16 -1
- package/pascal-4ccdf5ce.mjs +245 -0
- package/pascal-e5207a08.js +6 -0
- package/pascaligo-8eb79945.js +6 -0
- package/pascaligo-a9603dcd.mjs +158 -0
- package/perl-ba1fb97a.mjs +599 -0
- package/perl-e8264c91.js +6 -0
- package/pgsql-89978310.mjs +843 -0
- package/pgsql-c8ba6faf.js +6 -0
- package/php-987b9d87.mjs +471 -0
- package/php-a6dcde52.js +6 -0
- package/pla-96c2695d.mjs +131 -0
- package/pla-c85b0e59.js +6 -0
- package/postiats-3c2c478e.js +6 -0
- package/postiats-7b52ebac.mjs +544 -0
- package/powerquery-8954ec26.mjs +890 -0
- package/powerquery-b0d5f9e4.js +6 -0
- package/powershell-cdb88123.js +6 -0
- package/powershell-f00d0274.mjs +233 -0
- package/protobuf-3eb85f80.mjs +422 -0
- package/protobuf-a3b2ca94.js +7 -0
- package/pug-6fab415a.mjs +393 -0
- package/pug-c5df821d.js +6 -0
- package/python-3deb7582.mjs +264 -0
- package/python-e4403078.js +6 -0
- package/qsharp-4792f872.mjs +282 -0
- package/qsharp-7eddb7b9.js +6 -0
- package/r-42c6f0aa.js +6 -0
- package/r-630f5d6b.mjs +245 -0
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +8 -7
- package/radio.js +2 -2
- package/radio.mjs +7 -6
- package/razor-9fd114ce.js +6 -0
- package/razor-d49ab0c5.mjs +517 -0
- package/redis-0d0a89dd.js +6 -0
- package/redis-276b8288.mjs +298 -0
- package/redshift-520a7359.mjs +806 -0
- package/redshift-b6bdaeca.js +6 -0
- package/restructuredtext-4676a3fc.mjs +162 -0
- package/restructuredtext-c83d56ed.js +6 -0
- package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
- package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
- package/ruby-764137cd.mjs +444 -0
- package/ruby-96103dcf.js +6 -0
- package/rust-87887495.js +6 -0
- package/rust-97f8f6e1.mjs +337 -0
- package/sb-8c22f14c.mjs +110 -0
- package/sb-e2701210.js +6 -0
- package/scala-c68c650c.mjs +353 -0
- package/scala-e8b7bd42.js +6 -0
- package/scheme-b9cbf7cb.js +6 -0
- package/scheme-e6a52cb0.mjs +114 -0
- package/scss-45104c77.mjs +244 -0
- package/scss-d0f4f80e.js +8 -0
- package/select.js +1 -1
- package/select.mjs +10 -9
- package/shell-09452d42.mjs +224 -0
- package/shell-43cfbe7d.js +6 -0
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +3 -2
- package/slider-range.js +1 -1
- package/slider-range.mjs +7 -6
- package/slider.js +1 -1
- package/slider.mjs +12 -11
- package/snackbar.js +14 -18
- package/snackbar.mjs +88 -159
- package/solidity-d4979008.mjs +1351 -0
- package/solidity-f1319e8a.js +6 -0
- package/sophia-21995caf.mjs +190 -0
- package/sophia-a1ce907f.js +6 -0
- package/sparql-5088743c.mjs +193 -0
- package/sparql-98d9e092.js +6 -0
- package/sql-63ec8e76.mjs +818 -0
- package/sql-faf05577.js +6 -0
- package/st-122893c4.js +6 -0
- package/st-fa9ab362.mjs +414 -0
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -6
- package/status-header.js +1 -1
- package/status-header.mjs +4 -3
- package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
- package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
- package/style.css +1 -0
- package/swift-724ff2a3.js +8 -0
- package/swift-abdf1835.mjs +315 -0
- package/switch.js +1 -1
- package/switch.mjs +6 -5
- package/systemverilog-8139818b.js +6 -0
- package/systemverilog-a4f858ed.mjs +556 -0
- package/tab-bar.js +2 -2
- package/tab-bar.mjs +7 -6
- package/tab.js +1 -1
- package/tab.mjs +9 -8
- package/tcl-8adf937f.mjs +232 -0
- package/tcl-e49fed0b.js +6 -0
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +4 -3
- package/textarea.js +1 -1
- package/textarea.mjs +6 -5
- package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
- package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
- package/textfield.js +1 -1
- package/textfield.mjs +6 -5
- package/toolbar.js +1 -1
- package/toolbar.mjs +5 -4
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +5 -4
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +8 -7
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -3
- package/tsMode-4448deef.mjs +794 -0
- package/tsMode-c5cc89bc.js +16 -0
- package/twig-404eb73e.mjs +323 -0
- package/twig-4bfb5b04.js +6 -0
- package/typescript-1b8311ff.js +6 -0
- package/typescript-8fb83e8f.mjs +332 -0
- package/vb-8dfd000c.js +6 -0
- package/vb-e21e8153.mjs +364 -0
- package/xml-c437fe38.js +6 -0
- package/xml-eee8295b.mjs +100 -0
- package/yaml-083914d5.mjs +189 -0
- package/yaml-8c10a8e6.js +6 -0
- package/class-map-4b94b017.mjs +0 -62
- package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,444 @@
|
|
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
|
+
};
|
package/ruby-96103dcf.js
ADDED
@@ -0,0 +1,6 @@
|
|
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:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{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)*(#.*)?$`),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},t={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}};exports.conf=e;exports.language=t;
|
package/rust-87887495.js
ADDED
@@ -0,0 +1,6 @@
|
|
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:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},t={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}};exports.conf=e;exports.language=t;
|