@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,353 @@
|
|
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
|
+
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
9
|
+
comments: {
|
10
|
+
lineComment: "//",
|
11
|
+
blockComment: ["/*", "*/"]
|
12
|
+
},
|
13
|
+
brackets: [
|
14
|
+
["{", "}"],
|
15
|
+
["[", "]"],
|
16
|
+
["(", ")"]
|
17
|
+
],
|
18
|
+
autoClosingPairs: [
|
19
|
+
{ open: "{", close: "}" },
|
20
|
+
{ open: "[", close: "]" },
|
21
|
+
{ open: "(", close: ")" },
|
22
|
+
{ open: '"', close: '"' },
|
23
|
+
{ open: "'", close: "'" }
|
24
|
+
],
|
25
|
+
surroundingPairs: [
|
26
|
+
{ open: "{", close: "}" },
|
27
|
+
{ open: "[", close: "]" },
|
28
|
+
{ open: "(", close: ")" },
|
29
|
+
{ open: '"', close: '"' },
|
30
|
+
{ open: "'", close: "'" }
|
31
|
+
],
|
32
|
+
folding: {
|
33
|
+
markers: {
|
34
|
+
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
35
|
+
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}, t = {
|
39
|
+
tokenPostfix: ".scala",
|
40
|
+
keywords: [
|
41
|
+
"asInstanceOf",
|
42
|
+
"catch",
|
43
|
+
"class",
|
44
|
+
"classOf",
|
45
|
+
"def",
|
46
|
+
"do",
|
47
|
+
"else",
|
48
|
+
"extends",
|
49
|
+
"finally",
|
50
|
+
"for",
|
51
|
+
"foreach",
|
52
|
+
"forSome",
|
53
|
+
"if",
|
54
|
+
"import",
|
55
|
+
"isInstanceOf",
|
56
|
+
"macro",
|
57
|
+
"match",
|
58
|
+
"new",
|
59
|
+
"object",
|
60
|
+
"package",
|
61
|
+
"return",
|
62
|
+
"throw",
|
63
|
+
"trait",
|
64
|
+
"try",
|
65
|
+
"type",
|
66
|
+
"until",
|
67
|
+
"val",
|
68
|
+
"var",
|
69
|
+
"while",
|
70
|
+
"with",
|
71
|
+
"yield",
|
72
|
+
"given",
|
73
|
+
"enum",
|
74
|
+
"then"
|
75
|
+
],
|
76
|
+
softKeywords: ["as", "export", "extension", "end", "derives", "on"],
|
77
|
+
constants: ["true", "false", "null", "this", "super"],
|
78
|
+
modifiers: [
|
79
|
+
"abstract",
|
80
|
+
"final",
|
81
|
+
"implicit",
|
82
|
+
"lazy",
|
83
|
+
"override",
|
84
|
+
"private",
|
85
|
+
"protected",
|
86
|
+
"sealed"
|
87
|
+
],
|
88
|
+
softModifiers: ["inline", "opaque", "open", "transparent", "using"],
|
89
|
+
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
90
|
+
type: /(?:[A-Z][\w$]*)/,
|
91
|
+
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
92
|
+
digits: /\d+(_+\d+)*/,
|
93
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
94
|
+
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
95
|
+
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
96
|
+
tokenizer: {
|
97
|
+
root: [
|
98
|
+
[/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
|
99
|
+
[/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
|
100
|
+
[/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
|
101
|
+
[/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
|
102
|
+
[/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
|
103
|
+
[/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
|
104
|
+
[/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
|
105
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
106
|
+
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
107
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
108
|
+
[/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
|
109
|
+
[/(@digits)[fFdD]/, "number.float", "@allowMethod"],
|
110
|
+
[/(@digits)[lL]?/, "number", "@allowMethod"],
|
111
|
+
[/\b_\*/, "key"],
|
112
|
+
[/\b(_)\b/, "keyword", "@allowMethod"],
|
113
|
+
[/\bimport\b/, "keyword", "@import"],
|
114
|
+
[/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
|
115
|
+
[/\bcase\b/, "keyword", "@case"],
|
116
|
+
[/\bva[lr]\b/, "keyword", "@vardef"],
|
117
|
+
[
|
118
|
+
/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
|
119
|
+
["keyword", "white", "identifier"]
|
120
|
+
],
|
121
|
+
[/@name(?=[ \t]*:(?!:))/, "variable"],
|
122
|
+
[/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
|
123
|
+
[/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
|
124
|
+
[
|
125
|
+
/@name/,
|
126
|
+
{
|
127
|
+
cases: {
|
128
|
+
"@keywords": "keyword",
|
129
|
+
"@softKeywords": "keyword",
|
130
|
+
"@modifiers": "keyword.modifier",
|
131
|
+
"@softModifiers": "keyword.modifier",
|
132
|
+
"@constants": {
|
133
|
+
token: "constant",
|
134
|
+
next: "@allowMethod"
|
135
|
+
},
|
136
|
+
"@default": {
|
137
|
+
token: "identifier",
|
138
|
+
next: "@allowMethod"
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
],
|
143
|
+
[/@type/, "type", "@allowMethod"],
|
144
|
+
{ include: "@whitespace" },
|
145
|
+
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
|
146
|
+
[/[{(]/, "@brackets"],
|
147
|
+
[/[})]/, "@brackets", "@allowMethod"],
|
148
|
+
[/\[/, "operator.square"],
|
149
|
+
[/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
|
150
|
+
[/]/, "operator.square"],
|
151
|
+
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
|
152
|
+
[/@symbols/, "operator"],
|
153
|
+
[/[;,\.]/, "delimiter"],
|
154
|
+
[/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
|
155
|
+
[/'[^\\']'/, "string", "@allowMethod"],
|
156
|
+
[/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
|
157
|
+
[/'/, "string.invalid"]
|
158
|
+
],
|
159
|
+
import: [
|
160
|
+
[/;/, "delimiter", "@pop"],
|
161
|
+
[/^|$/, "", "@pop"],
|
162
|
+
[/[ \t]+/, "white"],
|
163
|
+
[/[\n\r]+/, "white", "@pop"],
|
164
|
+
[/\/\*/, "comment", "@comment"],
|
165
|
+
[/@name|@type/, "type"],
|
166
|
+
[/[(){}]/, "@brackets"],
|
167
|
+
[/[[\]]/, "operator.square"],
|
168
|
+
[/[\.,]/, "delimiter"]
|
169
|
+
],
|
170
|
+
allowMethod: [
|
171
|
+
[/^|$/, "", "@pop"],
|
172
|
+
[/[ \t]+/, "white"],
|
173
|
+
[/[\n\r]+/, "white", "@pop"],
|
174
|
+
[/\/\*/, "comment", "@comment"],
|
175
|
+
[/(?==>[\s\w([{])/, "keyword", "@pop"],
|
176
|
+
[
|
177
|
+
/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
|
178
|
+
{
|
179
|
+
cases: {
|
180
|
+
"@keywords": { token: "keyword", next: "@pop" },
|
181
|
+
"->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
|
182
|
+
"@default": { token: "@rematch", next: "@pop" }
|
183
|
+
}
|
184
|
+
}
|
185
|
+
],
|
186
|
+
["", "", "@pop"]
|
187
|
+
],
|
188
|
+
comment: [
|
189
|
+
[/[^\/*]+/, "comment"],
|
190
|
+
[/\/\*/, "comment", "@push"],
|
191
|
+
[/\*\//, "comment", "@pop"],
|
192
|
+
[/[\/*]/, "comment"]
|
193
|
+
],
|
194
|
+
case: [
|
195
|
+
[/\b_\*/, "key"],
|
196
|
+
[/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
|
197
|
+
[/\bif\b|=>/, "keyword", "@pop"],
|
198
|
+
[/`[^`]+`/, "identifier", "@allowMethod"],
|
199
|
+
[/@name/, "variable", "@allowMethod"],
|
200
|
+
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
201
|
+
{ include: "@root" }
|
202
|
+
],
|
203
|
+
vardef: [
|
204
|
+
[/\b_\*/, "key"],
|
205
|
+
[/\b(_|true|false|null|this|super)\b/, "keyword"],
|
206
|
+
[/@name/, "variable"],
|
207
|
+
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
208
|
+
[/=|:(?!:)/, "operator", "@pop"],
|
209
|
+
[/$/, "white", "@pop"],
|
210
|
+
{ include: "@root" }
|
211
|
+
],
|
212
|
+
string: [
|
213
|
+
[/[^\\"\n\r]+/, "string"],
|
214
|
+
[/@escapes/, "string.escape"],
|
215
|
+
[/\\./, "string.escape.invalid"],
|
216
|
+
[
|
217
|
+
/"/,
|
218
|
+
{
|
219
|
+
token: "string.quote",
|
220
|
+
bracket: "@close",
|
221
|
+
switchTo: "@allowMethod"
|
222
|
+
}
|
223
|
+
]
|
224
|
+
],
|
225
|
+
stringt: [
|
226
|
+
[/[^\\"\n\r]+/, "string"],
|
227
|
+
[/@escapes/, "string.escape"],
|
228
|
+
[/\\./, "string.escape.invalid"],
|
229
|
+
[/"(?=""")/, "string"],
|
230
|
+
[
|
231
|
+
/"""/,
|
232
|
+
{
|
233
|
+
token: "string.quote",
|
234
|
+
bracket: "@close",
|
235
|
+
switchTo: "@allowMethod"
|
236
|
+
}
|
237
|
+
],
|
238
|
+
[/"/, "string"]
|
239
|
+
],
|
240
|
+
fstring: [
|
241
|
+
[/@escapes/, "string.escape"],
|
242
|
+
[
|
243
|
+
/"/,
|
244
|
+
{
|
245
|
+
token: "string.quote",
|
246
|
+
bracket: "@close",
|
247
|
+
switchTo: "@allowMethod"
|
248
|
+
}
|
249
|
+
],
|
250
|
+
[/\$\$/, "string"],
|
251
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
252
|
+
[/\$\{/, "operator", "@interp"],
|
253
|
+
[/%%/, "string"],
|
254
|
+
[
|
255
|
+
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
256
|
+
["metatag", "keyword.modifier", "number", "metatag"]
|
257
|
+
],
|
258
|
+
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
259
|
+
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
260
|
+
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
261
|
+
[/./, "string"]
|
262
|
+
],
|
263
|
+
fstringt: [
|
264
|
+
[/@escapes/, "string.escape"],
|
265
|
+
[/"(?=""")/, "string"],
|
266
|
+
[
|
267
|
+
/"""/,
|
268
|
+
{
|
269
|
+
token: "string.quote",
|
270
|
+
bracket: "@close",
|
271
|
+
switchTo: "@allowMethod"
|
272
|
+
}
|
273
|
+
],
|
274
|
+
[/\$\$/, "string"],
|
275
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
276
|
+
[/\$\{/, "operator", "@interp"],
|
277
|
+
[/%%/, "string"],
|
278
|
+
[
|
279
|
+
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
280
|
+
["metatag", "keyword.modifier", "number", "metatag"]
|
281
|
+
],
|
282
|
+
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
283
|
+
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
284
|
+
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
285
|
+
[/./, "string"]
|
286
|
+
],
|
287
|
+
sstring: [
|
288
|
+
[/@escapes/, "string.escape"],
|
289
|
+
[
|
290
|
+
/"/,
|
291
|
+
{
|
292
|
+
token: "string.quote",
|
293
|
+
bracket: "@close",
|
294
|
+
switchTo: "@allowMethod"
|
295
|
+
}
|
296
|
+
],
|
297
|
+
[/\$\$/, "string"],
|
298
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
299
|
+
[/\$\{/, "operator", "@interp"],
|
300
|
+
[/./, "string"]
|
301
|
+
],
|
302
|
+
sstringt: [
|
303
|
+
[/@escapes/, "string.escape"],
|
304
|
+
[/"(?=""")/, "string"],
|
305
|
+
[
|
306
|
+
/"""/,
|
307
|
+
{
|
308
|
+
token: "string.quote",
|
309
|
+
bracket: "@close",
|
310
|
+
switchTo: "@allowMethod"
|
311
|
+
}
|
312
|
+
],
|
313
|
+
[/\$\$/, "string"],
|
314
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
315
|
+
[/\$\{/, "operator", "@interp"],
|
316
|
+
[/./, "string"]
|
317
|
+
],
|
318
|
+
interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
|
319
|
+
rawstring: [
|
320
|
+
[/[^"]/, "string"],
|
321
|
+
[
|
322
|
+
/"/,
|
323
|
+
{
|
324
|
+
token: "string.quote",
|
325
|
+
bracket: "@close",
|
326
|
+
switchTo: "@allowMethod"
|
327
|
+
}
|
328
|
+
]
|
329
|
+
],
|
330
|
+
rawstringt: [
|
331
|
+
[/[^"]/, "string"],
|
332
|
+
[/"(?=""")/, "string"],
|
333
|
+
[
|
334
|
+
/"""/,
|
335
|
+
{
|
336
|
+
token: "string.quote",
|
337
|
+
bracket: "@close",
|
338
|
+
switchTo: "@allowMethod"
|
339
|
+
}
|
340
|
+
],
|
341
|
+
[/"/, "string"]
|
342
|
+
],
|
343
|
+
whitespace: [
|
344
|
+
[/[ \t\r\n]+/, "white"],
|
345
|
+
[/\/\*/, "comment", "@comment"],
|
346
|
+
[/\/\/.*$/, "comment"]
|
347
|
+
]
|
348
|
+
}
|
349
|
+
};
|
350
|
+
export {
|
351
|
+
e as conf,
|
352
|
+
t as language
|
353
|
+
};
|
@@ -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={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,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:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},t={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};exports.conf=e;exports.language=t;
|
@@ -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:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}};exports.conf=e;exports.language=o;
|
@@ -0,0 +1,114 @@
|
|
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: ["#|", "|#"]
|
11
|
+
},
|
12
|
+
brackets: [
|
13
|
+
["(", ")"],
|
14
|
+
["{", "}"],
|
15
|
+
["[", "]"]
|
16
|
+
],
|
17
|
+
autoClosingPairs: [
|
18
|
+
{ open: "{", close: "}" },
|
19
|
+
{ open: "[", close: "]" },
|
20
|
+
{ open: "(", close: ")" },
|
21
|
+
{ open: '"', close: '"' }
|
22
|
+
],
|
23
|
+
surroundingPairs: [
|
24
|
+
{ open: "{", close: "}" },
|
25
|
+
{ open: "[", close: "]" },
|
26
|
+
{ open: "(", close: ")" },
|
27
|
+
{ open: '"', close: '"' }
|
28
|
+
]
|
29
|
+
}, o = {
|
30
|
+
defaultToken: "",
|
31
|
+
ignoreCase: !0,
|
32
|
+
tokenPostfix: ".scheme",
|
33
|
+
brackets: [
|
34
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
35
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
36
|
+
{ open: "[", close: "]", token: "delimiter.square" }
|
37
|
+
],
|
38
|
+
keywords: [
|
39
|
+
"case",
|
40
|
+
"do",
|
41
|
+
"let",
|
42
|
+
"loop",
|
43
|
+
"if",
|
44
|
+
"else",
|
45
|
+
"when",
|
46
|
+
"cons",
|
47
|
+
"car",
|
48
|
+
"cdr",
|
49
|
+
"cond",
|
50
|
+
"lambda",
|
51
|
+
"lambda*",
|
52
|
+
"syntax-rules",
|
53
|
+
"format",
|
54
|
+
"set!",
|
55
|
+
"quote",
|
56
|
+
"eval",
|
57
|
+
"append",
|
58
|
+
"list",
|
59
|
+
"list?",
|
60
|
+
"member?",
|
61
|
+
"load"
|
62
|
+
],
|
63
|
+
constants: ["#t", "#f"],
|
64
|
+
operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"],
|
65
|
+
tokenizer: {
|
66
|
+
root: [
|
67
|
+
[/#[xXoObB][0-9a-fA-F]+/, "number.hex"],
|
68
|
+
[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"],
|
69
|
+
[
|
70
|
+
/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,
|
71
|
+
["keyword", "white", "variable"]
|
72
|
+
],
|
73
|
+
{ include: "@whitespace" },
|
74
|
+
{ include: "@strings" },
|
75
|
+
[
|
76
|
+
/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,
|
77
|
+
{
|
78
|
+
cases: {
|
79
|
+
"@keywords": "keyword",
|
80
|
+
"@constants": "constant",
|
81
|
+
"@operators": "operators",
|
82
|
+
"@default": "identifier"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
]
|
86
|
+
],
|
87
|
+
comment: [
|
88
|
+
[/[^\|#]+/, "comment"],
|
89
|
+
[/#\|/, "comment", "@push"],
|
90
|
+
[/\|#/, "comment", "@pop"],
|
91
|
+
[/[\|#]/, "comment"]
|
92
|
+
],
|
93
|
+
whitespace: [
|
94
|
+
[/[ \t\r\n]+/, "white"],
|
95
|
+
[/#\|/, "comment", "@comment"],
|
96
|
+
[/;.*$/, "comment"]
|
97
|
+
],
|
98
|
+
strings: [
|
99
|
+
[/"$/, "string", "@popall"],
|
100
|
+
[/"(?=.)/, "string", "@multiLineString"]
|
101
|
+
],
|
102
|
+
multiLineString: [
|
103
|
+
[/[^\\"]+$/, "string", "@popall"],
|
104
|
+
[/[^\\"]+/, "string"],
|
105
|
+
[/\\./, "string.escape"],
|
106
|
+
[/"/, "string", "@popall"],
|
107
|
+
[/\\$/, "string"]
|
108
|
+
]
|
109
|
+
}
|
110
|
+
};
|
111
|
+
export {
|
112
|
+
e as conf,
|
113
|
+
o as language
|
114
|
+
};
|