@tuoyuan/code-editor 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +505 -0
- package/dist/CodeEditor.vue.d.ts +335 -0
- package/dist/abap-Ck4GwL0j.js +1404 -0
- package/dist/abap-Dm-grL-k.cjs +6 -0
- package/dist/apex-BcgYgERc.cjs +6 -0
- package/dist/apex-ODA7HKAJ.js +332 -0
- package/dist/azcli-CTIyen0u.cjs +6 -0
- package/dist/azcli-Cb6cb8s9.js +74 -0
- package/dist/bat-DNcko697.cjs +6 -0
- package/dist/bat-DTzY2NZq.js +106 -0
- package/dist/bicep-BMFU7f1t.js +108 -0
- package/dist/bicep-CaTas9h4.cjs +7 -0
- package/dist/cameligo-CI3fenw2.cjs +6 -0
- package/dist/cameligo-NLSSnjLV.js +180 -0
- package/dist/clojure-BGGaGC_c.cjs +6 -0
- package/dist/clojure-Du0upEOV.js +767 -0
- package/dist/coffee-ClJtyy1o.cjs +6 -0
- package/dist/coffee-v4uQlkM7.js +238 -0
- package/dist/cpp-C8lRvf76.cjs +6 -0
- package/dist/cpp-D8cWT5D_.js +395 -0
- package/dist/csharp-Czug7i7m.js +332 -0
- package/dist/csharp-DWhydAB-.cjs +6 -0
- package/dist/csp-BWvo8sOh.cjs +6 -0
- package/dist/csp-C8fx6eO8.js +59 -0
- package/dist/css-BpNIi06k.js +193 -0
- package/dist/css-CFi1nolN.cjs +8 -0
- package/dist/cssMode-BfZeZ0sl.js +1577 -0
- package/dist/cssMode-CroponXs.cjs +9 -0
- package/dist/cypher-C17znEzs.js +269 -0
- package/dist/cypher-CeoUqDHe.cjs +6 -0
- package/dist/dart-BmDOWGHn.cjs +6 -0
- package/dist/dart-CYyrqmCr.js +287 -0
- package/dist/dockerfile-BQUsBUh7.js +136 -0
- package/dist/dockerfile-CughGaD6.cjs +6 -0
- package/dist/ecl-BDDxLC55.cjs +6 -0
- package/dist/ecl-CJB68izO.js +462 -0
- package/dist/elixir-BPaYnkX2.cjs +6 -0
- package/dist/elixir-DljgmHqx.js +575 -0
- package/dist/flow9-0BfLJTIY.js +148 -0
- package/dist/flow9-BYsSavfX.cjs +6 -0
- package/dist/formatter.d.ts +16 -0
- package/dist/freemarker2-CpMdvAfd.cjs +8 -0
- package/dist/freemarker2-DVRVJu0B.js +995 -0
- package/dist/fsharp-SmZEcjiu.cjs +6 -0
- package/dist/fsharp-lmsaS1LJ.js +223 -0
- package/dist/go-Tv83ayL9.js +224 -0
- package/dist/go-xVW5xrOi.cjs +6 -0
- package/dist/graphql-BH1G4Uv8.js +157 -0
- package/dist/graphql-BaJ0LkdR.cjs +6 -0
- package/dist/handlebars-8AMUT0_r.cjs +6 -0
- package/dist/handlebars-cspegSxe.js +425 -0
- package/dist/hcl-9tXVo0Oo.js +189 -0
- package/dist/hcl-BTIq68i_.cjs +6 -0
- package/dist/html-Bvlf1Z20.cjs +6 -0
- package/dist/html-zabMn0fr.js +314 -0
- package/dist/htmlMode-B3y58LIC.cjs +9 -0
- package/dist/htmlMode-jXZ-OnTX.js +1587 -0
- package/dist/index-BvnET_j2.js +132407 -0
- package/dist/index-CjGIE44E.cjs +1197 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +5 -0
- package/dist/ini-CJdCU2Im.cjs +6 -0
- package/dist/ini-DZX3aW6M.js +77 -0
- package/dist/java-Day25zBa.cjs +6 -0
- package/dist/java-Q9NjwWso.js +238 -0
- package/dist/javascript-BF91TgD3.js +76 -0
- package/dist/javascript-QgWqIxzo.cjs +6 -0
- package/dist/jsonMode-Chpjh-RM.cjs +15 -0
- package/dist/jsonMode-DD3uMliY.js +2002 -0
- package/dist/julia-BqwBsF5P.cjs +6 -0
- package/dist/julia-QQBeypPo.js +517 -0
- package/dist/kotlin-2AnhId0p.js +259 -0
- package/dist/kotlin-B4u9iQDL.cjs +6 -0
- package/dist/less-CWxTTuX7.cjs +7 -0
- package/dist/less-Daawp9Qu.js +168 -0
- package/dist/lexon-B1xVKv1m.cjs +6 -0
- package/dist/lexon-CqxA-4g1.js +163 -0
- package/dist/liquid-CsQKIvsE.cjs +6 -0
- package/dist/liquid-DxypC1q6.js +246 -0
- package/dist/lua-C9DR8JqQ.js +168 -0
- package/dist/lua-GQ1AlIpR.cjs +6 -0
- package/dist/m3-ChnU6a_2.cjs +6 -0
- package/dist/m3-ChoO2Aeo.js +216 -0
- package/dist/markdown-vGe7N__p.js +235 -0
- package/dist/markdown-yRKnCzup.cjs +6 -0
- package/dist/mdx-BvsKvd6j.cjs +6 -0
- package/dist/mdx-DZRrNJcb.js +171 -0
- package/dist/mips-B35Tctk9.js +204 -0
- package/dist/mips-DE1-KCxg.cjs +6 -0
- package/dist/monaco-worker.d.ts +2 -0
- package/dist/msdax-CKduWRE-.js +381 -0
- package/dist/msdax-D0cml5wZ.cjs +6 -0
- package/dist/mysql-D4V3ltpC.js +884 -0
- package/dist/mysql-DLWkbGoZ.cjs +6 -0
- package/dist/objective-c-CaS419yz.js +189 -0
- package/dist/objective-c-aq90HTjV.cjs +6 -0
- package/dist/pascal-CzzqMa-q.js +257 -0
- package/dist/pascal-Tx_vZ5dG.cjs +6 -0
- package/dist/pascaligo-DPbJfhBm.js +170 -0
- package/dist/pascaligo-D_Ri2CTv.cjs +6 -0
- package/dist/perl-CswrnJgZ.cjs +6 -0
- package/dist/perl-DiakDHGa.js +632 -0
- package/dist/pgsql-CCS271_e.cjs +6 -0
- package/dist/pgsql-FgzHGfbe.js +857 -0
- package/dist/php-BtenrrrR.cjs +6 -0
- package/dist/php-DeEgUIDo.js +506 -0
- package/dist/pla-BtA__bSx.js +143 -0
- package/dist/pla-DqtRVxAK.cjs +6 -0
- package/dist/postiats-CDpKZOjz.js +913 -0
- package/dist/postiats-CMjeSPtv.cjs +6 -0
- package/dist/powerquery-C4wMFtve.js +896 -0
- package/dist/powerquery-DMrlf6nl.cjs +6 -0
- package/dist/powershell-BIXcUAIq.js +245 -0
- package/dist/powershell-BzvWvXBW.cjs +6 -0
- package/dist/protobuf-BHrBiKx5.js +426 -0
- package/dist/protobuf-BkfVMs3q.cjs +7 -0
- package/dist/pug-BgHHt25K.cjs +6 -0
- package/dist/pug-D_c6Bxex.js +408 -0
- package/dist/python-CDI0D2Kf.cjs +6 -0
- package/dist/python-CXOcTmBp.js +307 -0
- package/dist/qsharp-BS_wm4zq.cjs +6 -0
- package/dist/qsharp-Bmp6Uoth.js +291 -0
- package/dist/r-Cw-pZRR6.js +249 -0
- package/dist/r-XsO4bdi0.cjs +6 -0
- package/dist/razor-CAIWGDkN.cjs +6 -0
- package/dist/razor-Do5Lpn1p.js +556 -0
- package/dist/redis-D5elYsZS.cjs +6 -0
- package/dist/redis-DSkWtKTU.js +308 -0
- package/dist/redshift-BrAReR9w.cjs +6 -0
- package/dist/redshift-G3V-UH7H.js +815 -0
- package/dist/restructuredtext-C3HS0Vuf.js +180 -0
- package/dist/restructuredtext-CzNfc37y.cjs +6 -0
- package/dist/ruby-CFRrX6F7.cjs +6 -0
- package/dist/ruby-DdxOY_t-.js +517 -0
- package/dist/rust-BgYTY-pT.cjs +6 -0
- package/dist/rust-CHLNe-uh.js +349 -0
- package/dist/sb-DjdwHjNi.cjs +6 -0
- package/dist/sb-VgZvRVjv.js +121 -0
- package/dist/scala-BEo281v6.js +376 -0
- package/dist/scala-C9e5dt2E.cjs +6 -0
- package/dist/scheme-BPzKEKRg.cjs +6 -0
- package/dist/scheme-BwtlTEx9.js +114 -0
- package/dist/scss-B_KRI23k.cjs +8 -0
- package/dist/scss-DNHJcE5b.js +268 -0
- package/dist/shell-961u9U9E.cjs +6 -0
- package/dist/shell-CYXbUHt6.js +227 -0
- package/dist/solidity-B94td9D0.js +1373 -0
- package/dist/solidity-DyAQZQb-.cjs +6 -0
- package/dist/sophia-C67C1dNJ.cjs +6 -0
- package/dist/sophia-CgOMMImk.js +205 -0
- package/dist/sparql-CmRbqkGW.js +207 -0
- package/dist/sparql-DTHixtMm.cjs +6 -0
- package/dist/sql-CX8rIh5F.cjs +6 -0
- package/dist/sql-DVsVTphc.js +859 -0
- package/dist/st-ATFa4Vu3.js +422 -0
- package/dist/st-CBQkFfzG.cjs +6 -0
- package/dist/style.css +1 -0
- package/dist/swift-K4rp2L0u.js +318 -0
- package/dist/swift-XvmCMD7s.cjs +8 -0
- package/dist/systemverilog-D0lDJRC5.cjs +6 -0
- package/dist/systemverilog-YgLuECrg.js +582 -0
- package/dist/tcl-BHcJGOmo.js +238 -0
- package/dist/tcl-Ju0vlxf3.cjs +6 -0
- package/dist/tsMode-D7bHvHeH.cjs +16 -0
- package/dist/tsMode-DiYbk3vf.js +895 -0
- package/dist/twig-B1JhL8Uy.cjs +6 -0
- package/dist/twig-sVb_x968.js +398 -0
- package/dist/types.d.ts +16 -0
- package/dist/typescript-CI6w3N2S.cjs +6 -0
- package/dist/typescript-DFdjl8Xj.js +349 -0
- package/dist/typespec-BSdcQAUL.js +123 -0
- package/dist/typespec-u6UGyzVa.cjs +6 -0
- package/dist/vb-BZywMj6s.js +378 -0
- package/dist/vb-CB1voSvV.cjs +6 -0
- package/dist/wgsl-eG2bS915.js +445 -0
- package/dist/wgsl-eXQZam6Q.cjs +303 -0
- package/dist/xml-CJndgX4z.js +101 -0
- package/dist/xml-CO5xAOVk.cjs +6 -0
- package/dist/yaml--krIkoJ8.js +212 -0
- package/dist/yaml-BYk2IWKs.cjs +6 -0
- package/package.json +73 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
/*
|
|
9
|
+
* `...` is allowed as an identifier.
|
|
10
|
+
* $ is allowed in identifiers.
|
|
11
|
+
* unary_<op> is allowed as an identifier.
|
|
12
|
+
* <name>_= is allowed as an identifier.
|
|
13
|
+
*/
|
|
14
|
+
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
|
15
|
+
comments: {
|
|
16
|
+
lineComment: "//",
|
|
17
|
+
blockComment: ["/*", "*/"]
|
|
18
|
+
},
|
|
19
|
+
brackets: [
|
|
20
|
+
["{", "}"],
|
|
21
|
+
["[", "]"],
|
|
22
|
+
["(", ")"]
|
|
23
|
+
],
|
|
24
|
+
autoClosingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
],
|
|
31
|
+
surroundingPairs: [
|
|
32
|
+
{ open: "{", close: "}" },
|
|
33
|
+
{ open: "[", close: "]" },
|
|
34
|
+
{ open: "(", close: ")" },
|
|
35
|
+
{ open: '"', close: '"' },
|
|
36
|
+
{ open: "'", close: "'" }
|
|
37
|
+
],
|
|
38
|
+
folding: {
|
|
39
|
+
markers: {
|
|
40
|
+
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
|
41
|
+
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, t = {
|
|
45
|
+
tokenPostfix: ".scala",
|
|
46
|
+
// We can't easily add everything from Dotty, but we can at least add some of its keywords
|
|
47
|
+
keywords: [
|
|
48
|
+
"asInstanceOf",
|
|
49
|
+
"catch",
|
|
50
|
+
"class",
|
|
51
|
+
"classOf",
|
|
52
|
+
"def",
|
|
53
|
+
"do",
|
|
54
|
+
"else",
|
|
55
|
+
"extends",
|
|
56
|
+
"finally",
|
|
57
|
+
"for",
|
|
58
|
+
"foreach",
|
|
59
|
+
"forSome",
|
|
60
|
+
"if",
|
|
61
|
+
"import",
|
|
62
|
+
"isInstanceOf",
|
|
63
|
+
"macro",
|
|
64
|
+
"match",
|
|
65
|
+
"new",
|
|
66
|
+
"object",
|
|
67
|
+
"package",
|
|
68
|
+
"return",
|
|
69
|
+
"throw",
|
|
70
|
+
"trait",
|
|
71
|
+
"try",
|
|
72
|
+
"type",
|
|
73
|
+
"until",
|
|
74
|
+
"val",
|
|
75
|
+
"var",
|
|
76
|
+
"while",
|
|
77
|
+
"with",
|
|
78
|
+
"yield",
|
|
79
|
+
// Dotty-specific:
|
|
80
|
+
"given",
|
|
81
|
+
"enum",
|
|
82
|
+
"then"
|
|
83
|
+
],
|
|
84
|
+
// Dotty-specific:
|
|
85
|
+
softKeywords: ["as", "export", "extension", "end", "derives", "on"],
|
|
86
|
+
constants: ["true", "false", "null", "this", "super"],
|
|
87
|
+
modifiers: [
|
|
88
|
+
"abstract",
|
|
89
|
+
"final",
|
|
90
|
+
"implicit",
|
|
91
|
+
"lazy",
|
|
92
|
+
"override",
|
|
93
|
+
"private",
|
|
94
|
+
"protected",
|
|
95
|
+
"sealed"
|
|
96
|
+
],
|
|
97
|
+
// Dotty-specific:
|
|
98
|
+
softModifiers: ["inline", "opaque", "open", "transparent", "using"],
|
|
99
|
+
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
|
100
|
+
type: /(?:[A-Z][\w$]*)/,
|
|
101
|
+
// we include these common regular expressions
|
|
102
|
+
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
|
103
|
+
digits: /\d+(_+\d+)*/,
|
|
104
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
105
|
+
// C# style strings
|
|
106
|
+
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
107
|
+
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
|
108
|
+
// The main tokenizer for our languages
|
|
109
|
+
tokenizer: {
|
|
110
|
+
root: [
|
|
111
|
+
// strings
|
|
112
|
+
[/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
|
|
113
|
+
[/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
|
|
114
|
+
[/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
|
|
115
|
+
[/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
|
|
116
|
+
[/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
|
|
117
|
+
[/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
|
|
118
|
+
[/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
|
|
119
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
120
|
+
// numbers
|
|
121
|
+
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
|
122
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
|
123
|
+
[/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
|
|
124
|
+
[/(@digits)[fFdD]/, "number.float", "@allowMethod"],
|
|
125
|
+
[/(@digits)[lL]?/, "number", "@allowMethod"],
|
|
126
|
+
[/\b_\*/, "key"],
|
|
127
|
+
[/\b(_)\b/, "keyword", "@allowMethod"],
|
|
128
|
+
// identifiers and keywords
|
|
129
|
+
[/\bimport\b/, "keyword", "@import"],
|
|
130
|
+
[/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
|
|
131
|
+
[/\bcase\b/, "keyword", "@case"],
|
|
132
|
+
[/\bva[lr]\b/, "keyword", "@vardef"],
|
|
133
|
+
[
|
|
134
|
+
/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
|
|
135
|
+
["keyword", "white", "identifier"]
|
|
136
|
+
],
|
|
137
|
+
[/@name(?=[ \t]*:(?!:))/, "variable"],
|
|
138
|
+
[/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
|
|
139
|
+
[/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
|
|
140
|
+
[
|
|
141
|
+
/@name/,
|
|
142
|
+
{
|
|
143
|
+
cases: {
|
|
144
|
+
"@keywords": "keyword",
|
|
145
|
+
"@softKeywords": "keyword",
|
|
146
|
+
"@modifiers": "keyword.modifier",
|
|
147
|
+
"@softModifiers": "keyword.modifier",
|
|
148
|
+
"@constants": {
|
|
149
|
+
token: "constant",
|
|
150
|
+
next: "@allowMethod"
|
|
151
|
+
},
|
|
152
|
+
"@default": {
|
|
153
|
+
token: "identifier",
|
|
154
|
+
next: "@allowMethod"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
[/@type/, "type", "@allowMethod"],
|
|
160
|
+
// whitespace
|
|
161
|
+
{ include: "@whitespace" },
|
|
162
|
+
// @ annotations.
|
|
163
|
+
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
|
|
164
|
+
// delimiters and operators
|
|
165
|
+
[/[{(]/, "@brackets"],
|
|
166
|
+
[/[})]/, "@brackets", "@allowMethod"],
|
|
167
|
+
[/\[/, "operator.square"],
|
|
168
|
+
[/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
|
|
169
|
+
[/]/, "operator.square"],
|
|
170
|
+
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
|
|
171
|
+
[/@symbols/, "operator"],
|
|
172
|
+
// delimiter: after number because of .\d floats
|
|
173
|
+
[/[;,\.]/, "delimiter"],
|
|
174
|
+
// symbols
|
|
175
|
+
[/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
|
|
176
|
+
// characters
|
|
177
|
+
[/'[^\\']'/, "string", "@allowMethod"],
|
|
178
|
+
[/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
|
|
179
|
+
[/'/, "string.invalid"]
|
|
180
|
+
],
|
|
181
|
+
import: [
|
|
182
|
+
[/;/, "delimiter", "@pop"],
|
|
183
|
+
[/^|$/, "", "@pop"],
|
|
184
|
+
[/[ \t]+/, "white"],
|
|
185
|
+
[/[\n\r]+/, "white", "@pop"],
|
|
186
|
+
[/\/\*/, "comment", "@comment"],
|
|
187
|
+
[/@name|@type/, "type"],
|
|
188
|
+
[/[(){}]/, "@brackets"],
|
|
189
|
+
[/[[\]]/, "operator.square"],
|
|
190
|
+
[/[\.,]/, "delimiter"]
|
|
191
|
+
],
|
|
192
|
+
allowMethod: [
|
|
193
|
+
[/^|$/, "", "@pop"],
|
|
194
|
+
[/[ \t]+/, "white"],
|
|
195
|
+
[/[\n\r]+/, "white", "@pop"],
|
|
196
|
+
[/\/\*/, "comment", "@comment"],
|
|
197
|
+
[/(?==>[\s\w([{])/, "keyword", "@pop"],
|
|
198
|
+
[
|
|
199
|
+
/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
|
|
200
|
+
{
|
|
201
|
+
cases: {
|
|
202
|
+
"@keywords": { token: "keyword", next: "@pop" },
|
|
203
|
+
"->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
|
|
204
|
+
"@default": { token: "@rematch", next: "@pop" }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
["", "", "@pop"]
|
|
209
|
+
],
|
|
210
|
+
comment: [
|
|
211
|
+
[/[^\/*]+/, "comment"],
|
|
212
|
+
[/\/\*/, "comment", "@push"],
|
|
213
|
+
// nested comment
|
|
214
|
+
[/\*\//, "comment", "@pop"],
|
|
215
|
+
[/[\/*]/, "comment"]
|
|
216
|
+
],
|
|
217
|
+
case: [
|
|
218
|
+
[/\b_\*/, "key"],
|
|
219
|
+
[/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
|
|
220
|
+
[/\bif\b|=>/, "keyword", "@pop"],
|
|
221
|
+
[/`[^`]+`/, "identifier", "@allowMethod"],
|
|
222
|
+
[/@name/, "variable", "@allowMethod"],
|
|
223
|
+
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
|
224
|
+
{ include: "@root" }
|
|
225
|
+
],
|
|
226
|
+
vardef: [
|
|
227
|
+
[/\b_\*/, "key"],
|
|
228
|
+
[/\b(_|true|false|null|this|super)\b/, "keyword"],
|
|
229
|
+
[/@name/, "variable"],
|
|
230
|
+
[/:::?|\||@(?![a-z_$])/, "keyword"],
|
|
231
|
+
[/=|:(?!:)/, "operator", "@pop"],
|
|
232
|
+
[/$/, "white", "@pop"],
|
|
233
|
+
{ include: "@root" }
|
|
234
|
+
],
|
|
235
|
+
string: [
|
|
236
|
+
[/[^\\"\n\r]+/, "string"],
|
|
237
|
+
[/@escapes/, "string.escape"],
|
|
238
|
+
[/\\./, "string.escape.invalid"],
|
|
239
|
+
[
|
|
240
|
+
/"/,
|
|
241
|
+
{
|
|
242
|
+
token: "string.quote",
|
|
243
|
+
bracket: "@close",
|
|
244
|
+
switchTo: "@allowMethod"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
],
|
|
248
|
+
stringt: [
|
|
249
|
+
[/[^\\"\n\r]+/, "string"],
|
|
250
|
+
[/@escapes/, "string.escape"],
|
|
251
|
+
[/\\./, "string.escape.invalid"],
|
|
252
|
+
[/"(?=""")/, "string"],
|
|
253
|
+
[
|
|
254
|
+
/"""/,
|
|
255
|
+
{
|
|
256
|
+
token: "string.quote",
|
|
257
|
+
bracket: "@close",
|
|
258
|
+
switchTo: "@allowMethod"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
[/"/, "string"]
|
|
262
|
+
],
|
|
263
|
+
fstring: [
|
|
264
|
+
[/@escapes/, "string.escape"],
|
|
265
|
+
[
|
|
266
|
+
/"/,
|
|
267
|
+
{
|
|
268
|
+
token: "string.quote",
|
|
269
|
+
bracket: "@close",
|
|
270
|
+
switchTo: "@allowMethod"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
[/\$\$/, "string"],
|
|
274
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
|
275
|
+
[/\$\{/, "operator", "@interp"],
|
|
276
|
+
[/%%/, "string"],
|
|
277
|
+
[
|
|
278
|
+
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
|
279
|
+
["metatag", "keyword.modifier", "number", "metatag"]
|
|
280
|
+
],
|
|
281
|
+
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
|
282
|
+
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
|
283
|
+
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
|
284
|
+
[/./, "string"]
|
|
285
|
+
],
|
|
286
|
+
fstringt: [
|
|
287
|
+
[/@escapes/, "string.escape"],
|
|
288
|
+
[/"(?=""")/, "string"],
|
|
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
|
+
/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
|
|
303
|
+
["metatag", "keyword.modifier", "number", "metatag"]
|
|
304
|
+
],
|
|
305
|
+
[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
|
|
306
|
+
[/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
|
|
307
|
+
[/(%)(@fstring_conv)/, ["metatag", "metatag"]],
|
|
308
|
+
[/./, "string"]
|
|
309
|
+
],
|
|
310
|
+
sstring: [
|
|
311
|
+
[/@escapes/, "string.escape"],
|
|
312
|
+
[
|
|
313
|
+
/"/,
|
|
314
|
+
{
|
|
315
|
+
token: "string.quote",
|
|
316
|
+
bracket: "@close",
|
|
317
|
+
switchTo: "@allowMethod"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
[/\$\$/, "string"],
|
|
321
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
|
322
|
+
[/\$\{/, "operator", "@interp"],
|
|
323
|
+
[/./, "string"]
|
|
324
|
+
],
|
|
325
|
+
sstringt: [
|
|
326
|
+
[/@escapes/, "string.escape"],
|
|
327
|
+
[/"(?=""")/, "string"],
|
|
328
|
+
[
|
|
329
|
+
/"""/,
|
|
330
|
+
{
|
|
331
|
+
token: "string.quote",
|
|
332
|
+
bracket: "@close",
|
|
333
|
+
switchTo: "@allowMethod"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
[/\$\$/, "string"],
|
|
337
|
+
[/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
|
|
338
|
+
[/\$\{/, "operator", "@interp"],
|
|
339
|
+
[/./, "string"]
|
|
340
|
+
],
|
|
341
|
+
interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
|
|
342
|
+
rawstring: [
|
|
343
|
+
[/[^"]/, "string"],
|
|
344
|
+
[
|
|
345
|
+
/"/,
|
|
346
|
+
{
|
|
347
|
+
token: "string.quote",
|
|
348
|
+
bracket: "@close",
|
|
349
|
+
switchTo: "@allowMethod"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
],
|
|
353
|
+
rawstringt: [
|
|
354
|
+
[/[^"]/, "string"],
|
|
355
|
+
[/"(?=""")/, "string"],
|
|
356
|
+
[
|
|
357
|
+
/"""/,
|
|
358
|
+
{
|
|
359
|
+
token: "string.quote",
|
|
360
|
+
bracket: "@close",
|
|
361
|
+
switchTo: "@allowMethod"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
[/"/, "string"]
|
|
365
|
+
],
|
|
366
|
+
whitespace: [
|
|
367
|
+
[/[ \t\r\n]+/, "white"],
|
|
368
|
+
[/\/\*/, "comment", "@comment"],
|
|
369
|
+
[/\/\/.*$/, "comment"]
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
export {
|
|
374
|
+
e as conf,
|
|
375
|
+
t as language
|
|
376
|
+
};
|
|
@@ -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.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
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.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
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.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
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
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t={defaultToken:"",tokenPostfix:".scss",ws:`[
|
|
7
|
+
\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},[`[^)\r
|
|
8
|
+
]+`,"string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}};exports.conf=e;exports.language=t;
|