sun-form-v3 1.0.70 → 1.0.72
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/abap-DfvySaIJ.js +1404 -0
- package/dist/apex-B__0irD3.js +332 -0
- package/dist/assets/css.worker-OK053IOu.js +84 -0
- package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
- package/dist/assets/html.worker-CL40hqKM.js +458 -0
- package/dist/assets/json.worker-6f9bhSHY.js +42 -0
- package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
- package/dist/azcli-CDMGhRmx.js +74 -0
- package/dist/bat-0Mk8aqzx.js +106 -0
- package/dist/bicep-BBi_I06Z.js +108 -0
- package/dist/cameligo-D0G_Zm6X.js +180 -0
- package/dist/clojure-o2ZKLeMp.js +767 -0
- package/dist/coffee-DOQff5VC.js +238 -0
- package/dist/cpp-CQGJnWhD.js +395 -0
- package/dist/csharp-C1jLsHl8.js +332 -0
- package/dist/csp-C_ttMQaW.js +59 -0
- package/dist/css-BC202kVV.js +193 -0
- package/dist/cssMode-D3INtz5D.js +1541 -0
- package/dist/cypher-DwtEH7Fi.js +269 -0
- package/dist/dart-D9XknsP2.js +287 -0
- package/dist/dockerfile-DgsNjqqa.js +136 -0
- package/dist/ecl-BAMCHBl6.js +462 -0
- package/dist/elixir-CegIttP8.js +575 -0
- package/dist/favicon.ico +0 -0
- package/dist/flow9-9608t7UV.js +148 -0
- package/dist/freemarker2-hasIzj0A.js +995 -0
- package/dist/fsharp-CCtt9-1_.js +223 -0
- package/dist/go-CGUIPbct.js +224 -0
- package/dist/graphql-BNRIFFIn.js +157 -0
- package/dist/handlebars-Cqza9dif.js +425 -0
- package/dist/hcl-C__KLIXe.js +189 -0
- package/dist/html-QpDlLWtS.js +314 -0
- package/dist/htmlMode-3p93KT8l.js +1551 -0
- package/dist/index2-jkDcibEo.js +120443 -0
- package/dist/ini-CeKYn_zA.js +77 -0
- package/dist/java-Dm24deQl.js +238 -0
- package/dist/javascript-CSPB5Brm.js +76 -0
- package/dist/jsonMode-qA6pURD0.js +1957 -0
- package/dist/julia-BImNW7VE.js +517 -0
- package/dist/kotlin-BfE79GEb.js +259 -0
- package/dist/less-DglNOcaC.js +168 -0
- package/dist/lexon-BA0dRz9Q.js +163 -0
- package/dist/liquid-BWuASSim.js +246 -0
- package/dist/lua-DMkWzJcm.js +168 -0
- package/dist/m3-sA-5shO8.js +216 -0
- package/dist/markdown-OYRB1igA.js +235 -0
- package/dist/mdx-CnHJXO9F.js +171 -0
- package/dist/mips-rRzkJ_7G.js +204 -0
- package/dist/msdax-DoVJdUhd.js +381 -0
- package/dist/mysql-Ty44IHXo.js +884 -0
- package/dist/objective-c-VUfyhYrA.js +189 -0
- package/dist/pascal-DkASiYyw.js +257 -0
- package/dist/pascaligo-p-ELPlVO.js +170 -0
- package/dist/perl-Cjl1FxLZ.js +632 -0
- package/dist/pgsql-DjVenF7s.js +857 -0
- package/dist/php-CwvGzZOO.js +506 -0
- package/dist/pla-Br1iaBIV.js +143 -0
- package/dist/postiats-BaeP8zZY.js +913 -0
- package/dist/powerquery-CLCshuo8.js +896 -0
- package/dist/powershell-CZV50w5N.js +245 -0
- package/dist/protobuf-MV3XTewJ.js +426 -0
- package/dist/pug-DkDg4c4l.js +408 -0
- package/dist/python-CRYsEVap.js +282 -0
- package/dist/qsharp-BAtiKA97.js +291 -0
- package/dist/r-8ocrd-h-.js +249 -0
- package/dist/razor-DyEtGntt.js +556 -0
- package/dist/redis-9sZiddxc.js +308 -0
- package/dist/redshift-DQfTOGC0.js +815 -0
- package/dist/restructuredtext-DXU-vkgr.js +180 -0
- package/dist/ruby-DotfqwMf.js +517 -0
- package/dist/rust-BIauJ5KN.js +349 -0
- package/dist/sb-CmWMvDEV.js +121 -0
- package/dist/scala-C81brEbk.js +376 -0
- package/dist/scheme-D0pcFz2x.js +114 -0
- package/dist/scss-BOdN2fGG.js +268 -0
- package/dist/shell-6E09eAkU.js +227 -0
- package/dist/solidity-CWStzA1K.js +1373 -0
- package/dist/sophia-76Sb6CWe.js +205 -0
- package/dist/sparql-BmZTkOWT.js +207 -0
- package/dist/sql-Cs9TBAW5.js +859 -0
- package/dist/st-B-rqE1Bu.js +422 -0
- package/dist/style.css +1 -0
- package/dist/sun-form-v3.es.js +4 -0
- package/dist/sun-form-v3.umd.js +1902 -0
- package/dist/swift-Btsj6YxQ.js +318 -0
- package/dist/systemverilog-B3RHBRa2.js +582 -0
- package/dist/tcl-Dpj776pn.js +238 -0
- package/dist/tsMode-BrlIPEQw.js +885 -0
- package/dist/twig-Bb9JmBsE.js +398 -0
- package/dist/typescript-CYTudnTM.js +349 -0
- package/dist/typespec-CDWeg3SU.js +123 -0
- package/dist/vb-DEXnYwEI.js +378 -0
- package/dist/wgsl-D602c1lx.js +445 -0
- package/dist/xml-B-x5164u.js +101 -0
- package/dist/yaml-Buq2hM65.js +212 -0
- package/package.json +5 -8
- package/src/App.vue +0 -9
- package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
- package/src/assets/font/demo.css +0 -539
- package/src/assets/font/demo_index.html +0 -1200
- package/src/assets/font/iconfont.css +0 -191
- package/src/assets/font/iconfont.js +0 -1
- package/src/assets/font/iconfont.json +0 -317
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/font/iconfont.woff2 +0 -0
- package/src/assets/img/bg_footer.png +0 -0
- package/src/assets/img/bg_title.png +0 -0
- package/src/assets/img/file.png +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/logo2.png +0 -0
- package/src/assets/img/logo22.png +0 -0
- package/src/assets/img/logo23.png +0 -0
- package/src/assets/img/logo3.png +0 -0
- package/src/assets/img//347/237/251/345/275/242@2x.png +0 -0
- package/src/assets/logo.svg +0 -1
- package/src/assets/styles/element/index.scss +0 -15
- package/src/assets/styles/index.css +0 -3
- package/src/components/a.js +0 -14
- package/src/components/aDesigner/config.vue +0 -127
- package/src/components/aDesigner/design.vue +0 -20
- package/src/components/aDesigner/designer.js +0 -342
- package/src/components/aDesigner/http.js +0 -292
- package/src/components/aDesigner/index.vue +0 -144
- package/src/components/aDesigner/panel.vue +0 -144
- package/src/components/aDesigner/show.vue +0 -24
- package/src/components/widgetCommonComps/commonApiConfig/index.vue +0 -194
- package/src/components/widgetCommonComps/commonCard/index.vue +0 -36
- package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +0 -219
- package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +0 -68
- package/src/components/widgetCommonComps/commonCollapseCard/index.vue +0 -10
- package/src/components/widgetCommonComps/commonContainer/index.vue +0 -95
- package/src/components/widgetCommonComps/commonJsonInput/index.vue +0 -59
- package/src/components/widgetCommonComps/commonLabelContainer/index.vue +0 -39
- package/src/components/widgetCommonComps/commonSidetree/index.vue +0 -61
- package/src/components/widgetCommonComps/commonTypeInput/index.vue +0 -75
- package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +0 -55
- package/src/components/widgetCommonComps/index copy.js +0 -17
- package/src/components/widgetCommonComps/index.js +0 -17
- package/src/components/widgetConfigComps/config-input/index.vue +0 -60
- package/src/components/widgetConfigComps/index copy.js +0 -13
- package/src/components/widgetConfigComps/index.js +0 -17
- package/src/components/widgetShowComps/index.js +0 -29
- package/src/components/widgetShowComps/widget-form/index.vue +0 -43
- package/src/components/widgetShowComps/widget-homepage/index.vue +0 -41
- package/src/components/widgetShowComps/widget-input/index.vue +0 -85
- package/src/components/widgetShowComps/widget-select/index.vue +0 -31
- package/src/designer.js +0 -342
- package/src/http.js +0 -293
- package/src/index.js +0 -24
- package/src/index2.js +0 -23
- package/src/main.js +0 -19
- package/src/remark.js +0 -708
- package/src/testBtn.vue +0 -11
- package/src/testInput.vue +0 -12
- package/src/util/jsformat.js +0 -568
- package/src/widgetConfig.js +0 -1112
@@ -0,0 +1,291 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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
|
+
},
|
11
|
+
brackets: [
|
12
|
+
["{", "}"],
|
13
|
+
["[", "]"],
|
14
|
+
["(", ")"]
|
15
|
+
],
|
16
|
+
autoClosingPairs: [
|
17
|
+
{ open: "{", close: "}" },
|
18
|
+
{ open: "[", close: "]" },
|
19
|
+
{ open: "(", close: ")" },
|
20
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
21
|
+
],
|
22
|
+
surroundingPairs: [
|
23
|
+
{ open: "{", close: "}" },
|
24
|
+
{ open: "[", close: "]" },
|
25
|
+
{ open: "(", close: ")" },
|
26
|
+
{ open: '"', close: '"' }
|
27
|
+
]
|
28
|
+
}, t = {
|
29
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
30
|
+
keywords: [
|
31
|
+
"namespace",
|
32
|
+
"open",
|
33
|
+
"as",
|
34
|
+
"operation",
|
35
|
+
"function",
|
36
|
+
"body",
|
37
|
+
"adjoint",
|
38
|
+
"newtype",
|
39
|
+
"controlled",
|
40
|
+
"if",
|
41
|
+
"elif",
|
42
|
+
"else",
|
43
|
+
"repeat",
|
44
|
+
"until",
|
45
|
+
"fixup",
|
46
|
+
"for",
|
47
|
+
"in",
|
48
|
+
"while",
|
49
|
+
"return",
|
50
|
+
"fail",
|
51
|
+
"within",
|
52
|
+
"apply",
|
53
|
+
"Adjoint",
|
54
|
+
"Controlled",
|
55
|
+
"Adj",
|
56
|
+
"Ctl",
|
57
|
+
"is",
|
58
|
+
"self",
|
59
|
+
"auto",
|
60
|
+
"distribute",
|
61
|
+
"invert",
|
62
|
+
"intrinsic",
|
63
|
+
"let",
|
64
|
+
"set",
|
65
|
+
"w/",
|
66
|
+
"new",
|
67
|
+
"not",
|
68
|
+
"and",
|
69
|
+
"or",
|
70
|
+
"use",
|
71
|
+
"borrow",
|
72
|
+
"using",
|
73
|
+
"borrowing",
|
74
|
+
"mutable",
|
75
|
+
"internal"
|
76
|
+
],
|
77
|
+
typeKeywords: [
|
78
|
+
"Unit",
|
79
|
+
"Int",
|
80
|
+
"BigInt",
|
81
|
+
"Double",
|
82
|
+
"Bool",
|
83
|
+
"String",
|
84
|
+
"Qubit",
|
85
|
+
"Result",
|
86
|
+
"Pauli",
|
87
|
+
"Range"
|
88
|
+
],
|
89
|
+
invalidKeywords: [
|
90
|
+
"abstract",
|
91
|
+
"base",
|
92
|
+
"bool",
|
93
|
+
"break",
|
94
|
+
"byte",
|
95
|
+
"case",
|
96
|
+
"catch",
|
97
|
+
"char",
|
98
|
+
"checked",
|
99
|
+
"class",
|
100
|
+
"const",
|
101
|
+
"continue",
|
102
|
+
"decimal",
|
103
|
+
"default",
|
104
|
+
"delegate",
|
105
|
+
"do",
|
106
|
+
"double",
|
107
|
+
"enum",
|
108
|
+
"event",
|
109
|
+
"explicit",
|
110
|
+
"extern",
|
111
|
+
"finally",
|
112
|
+
"fixed",
|
113
|
+
"float",
|
114
|
+
"foreach",
|
115
|
+
"goto",
|
116
|
+
"implicit",
|
117
|
+
"int",
|
118
|
+
"interface",
|
119
|
+
"lock",
|
120
|
+
"long",
|
121
|
+
"null",
|
122
|
+
"object",
|
123
|
+
"operator",
|
124
|
+
"out",
|
125
|
+
"override",
|
126
|
+
"params",
|
127
|
+
"private",
|
128
|
+
"protected",
|
129
|
+
"public",
|
130
|
+
"readonly",
|
131
|
+
"ref",
|
132
|
+
"sbyte",
|
133
|
+
"sealed",
|
134
|
+
"short",
|
135
|
+
"sizeof",
|
136
|
+
"stackalloc",
|
137
|
+
"static",
|
138
|
+
"string",
|
139
|
+
"struct",
|
140
|
+
"switch",
|
141
|
+
"this",
|
142
|
+
"throw",
|
143
|
+
"try",
|
144
|
+
"typeof",
|
145
|
+
"unit",
|
146
|
+
"ulong",
|
147
|
+
"unchecked",
|
148
|
+
"unsafe",
|
149
|
+
"ushort",
|
150
|
+
"virtual",
|
151
|
+
"void",
|
152
|
+
"volatile"
|
153
|
+
],
|
154
|
+
constants: ["true", "false", "PauliI", "PauliX", "PauliY", "PauliZ", "One", "Zero"],
|
155
|
+
builtin: [
|
156
|
+
"X",
|
157
|
+
"Y",
|
158
|
+
"Z",
|
159
|
+
"H",
|
160
|
+
"HY",
|
161
|
+
"S",
|
162
|
+
"T",
|
163
|
+
"SWAP",
|
164
|
+
"CNOT",
|
165
|
+
"CCNOT",
|
166
|
+
"MultiX",
|
167
|
+
"R",
|
168
|
+
"RFrac",
|
169
|
+
"Rx",
|
170
|
+
"Ry",
|
171
|
+
"Rz",
|
172
|
+
"R1",
|
173
|
+
"R1Frac",
|
174
|
+
"Exp",
|
175
|
+
"ExpFrac",
|
176
|
+
"Measure",
|
177
|
+
"M",
|
178
|
+
"MultiM",
|
179
|
+
"Message",
|
180
|
+
"Length",
|
181
|
+
"Assert",
|
182
|
+
"AssertProb",
|
183
|
+
"AssertEqual"
|
184
|
+
],
|
185
|
+
operators: [
|
186
|
+
"and=",
|
187
|
+
"<-",
|
188
|
+
"->",
|
189
|
+
"*",
|
190
|
+
"*=",
|
191
|
+
"@",
|
192
|
+
"!",
|
193
|
+
"^",
|
194
|
+
"^=",
|
195
|
+
":",
|
196
|
+
"::",
|
197
|
+
"..",
|
198
|
+
"==",
|
199
|
+
"...",
|
200
|
+
"=",
|
201
|
+
"=>",
|
202
|
+
">",
|
203
|
+
">=",
|
204
|
+
"<",
|
205
|
+
"<=",
|
206
|
+
"-",
|
207
|
+
"-=",
|
208
|
+
"!=",
|
209
|
+
"or=",
|
210
|
+
"%",
|
211
|
+
"%=",
|
212
|
+
"|",
|
213
|
+
"+",
|
214
|
+
"+=",
|
215
|
+
"?",
|
216
|
+
"/",
|
217
|
+
"/=",
|
218
|
+
"&&&",
|
219
|
+
"&&&=",
|
220
|
+
"^^^",
|
221
|
+
"^^^=",
|
222
|
+
">>>",
|
223
|
+
">>>=",
|
224
|
+
"<<<",
|
225
|
+
"<<<=",
|
226
|
+
"|||",
|
227
|
+
"|||=",
|
228
|
+
"~~~",
|
229
|
+
"_",
|
230
|
+
"w/",
|
231
|
+
"w/="
|
232
|
+
],
|
233
|
+
namespaceFollows: ["namespace", "open"],
|
234
|
+
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
235
|
+
escapes: /\\[\s\S]/,
|
236
|
+
// The main tokenizer for our languages
|
237
|
+
tokenizer: {
|
238
|
+
root: [
|
239
|
+
// identifiers and keywords
|
240
|
+
[
|
241
|
+
/[a-zA-Z_$][\w$]*/,
|
242
|
+
{
|
243
|
+
cases: {
|
244
|
+
"@namespaceFollows": {
|
245
|
+
token: "keyword.$0",
|
246
|
+
next: "@namespace"
|
247
|
+
},
|
248
|
+
"@typeKeywords": "type",
|
249
|
+
"@keywords": "keyword",
|
250
|
+
"@constants": "constant",
|
251
|
+
"@builtin": "keyword",
|
252
|
+
"@invalidKeywords": "invalid",
|
253
|
+
"@default": "identifier"
|
254
|
+
}
|
255
|
+
}
|
256
|
+
],
|
257
|
+
// whitespace
|
258
|
+
{ include: "@whitespace" },
|
259
|
+
// delimiters and operators
|
260
|
+
[/[{}()\[\]]/, "@brackets"],
|
261
|
+
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
262
|
+
// numbers
|
263
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
264
|
+
[/\d+/, "number"],
|
265
|
+
// delimiter: after number because of .\d floats
|
266
|
+
[/[;,.]/, "delimiter"],
|
267
|
+
// strings
|
268
|
+
//[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-teminated string
|
269
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
270
|
+
],
|
271
|
+
string: [
|
272
|
+
[/[^\\"]+/, "string"],
|
273
|
+
[/@escapes/, "string.escape"],
|
274
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
275
|
+
],
|
276
|
+
namespace: [
|
277
|
+
{ include: "@whitespace" },
|
278
|
+
[/[A-Za-z]\w*/, "namespace"],
|
279
|
+
[/[\.=]/, "delimiter"],
|
280
|
+
["", "", "@pop"]
|
281
|
+
],
|
282
|
+
whitespace: [
|
283
|
+
[/[ \t\r\n]+/, "white"],
|
284
|
+
[/(\/\/).*/, "comment"]
|
285
|
+
]
|
286
|
+
}
|
287
|
+
};
|
288
|
+
export {
|
289
|
+
e as conf,
|
290
|
+
t as language
|
291
|
+
};
|
@@ -0,0 +1,249 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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
|
+
},
|
11
|
+
brackets: [
|
12
|
+
["{", "}"],
|
13
|
+
["[", "]"],
|
14
|
+
["(", ")"]
|
15
|
+
],
|
16
|
+
autoClosingPairs: [
|
17
|
+
{ open: "{", close: "}" },
|
18
|
+
{ open: "[", close: "]" },
|
19
|
+
{ open: "(", close: ")" },
|
20
|
+
{ open: '"', close: '"' }
|
21
|
+
],
|
22
|
+
surroundingPairs: [
|
23
|
+
{ open: "{", close: "}" },
|
24
|
+
{ open: "[", close: "]" },
|
25
|
+
{ open: "(", close: ")" },
|
26
|
+
{ open: '"', close: '"' }
|
27
|
+
]
|
28
|
+
}, o = {
|
29
|
+
defaultToken: "",
|
30
|
+
tokenPostfix: ".r",
|
31
|
+
roxygen: [
|
32
|
+
"@alias",
|
33
|
+
"@aliases",
|
34
|
+
"@assignee",
|
35
|
+
"@author",
|
36
|
+
"@backref",
|
37
|
+
"@callGraph",
|
38
|
+
"@callGraphDepth",
|
39
|
+
"@callGraphPrimitives",
|
40
|
+
"@concept",
|
41
|
+
"@describeIn",
|
42
|
+
"@description",
|
43
|
+
"@details",
|
44
|
+
"@docType",
|
45
|
+
"@encoding",
|
46
|
+
"@evalNamespace",
|
47
|
+
"@evalRd",
|
48
|
+
"@example",
|
49
|
+
"@examples",
|
50
|
+
"@export",
|
51
|
+
"@exportClass",
|
52
|
+
"@exportMethod",
|
53
|
+
"@exportPattern",
|
54
|
+
"@family",
|
55
|
+
"@field",
|
56
|
+
"@formals",
|
57
|
+
"@format",
|
58
|
+
"@import",
|
59
|
+
"@importClassesFrom",
|
60
|
+
"@importFrom",
|
61
|
+
"@importMethodsFrom",
|
62
|
+
"@include",
|
63
|
+
"@inherit",
|
64
|
+
"@inheritDotParams",
|
65
|
+
"@inheritParams",
|
66
|
+
"@inheritSection",
|
67
|
+
"@keywords",
|
68
|
+
"@md",
|
69
|
+
"@method",
|
70
|
+
"@name",
|
71
|
+
"@noMd",
|
72
|
+
"@noRd",
|
73
|
+
"@note",
|
74
|
+
"@param",
|
75
|
+
"@rawNamespace",
|
76
|
+
"@rawRd",
|
77
|
+
"@rdname",
|
78
|
+
"@references",
|
79
|
+
"@return",
|
80
|
+
"@S3method",
|
81
|
+
"@section",
|
82
|
+
"@seealso",
|
83
|
+
"@setClass",
|
84
|
+
"@slot",
|
85
|
+
"@source",
|
86
|
+
"@template",
|
87
|
+
"@templateVar",
|
88
|
+
"@title",
|
89
|
+
"@TODO",
|
90
|
+
"@usage",
|
91
|
+
"@useDynLib"
|
92
|
+
],
|
93
|
+
constants: [
|
94
|
+
"NULL",
|
95
|
+
"FALSE",
|
96
|
+
"TRUE",
|
97
|
+
"NA",
|
98
|
+
"Inf",
|
99
|
+
"NaN",
|
100
|
+
"NA_integer_",
|
101
|
+
"NA_real_",
|
102
|
+
"NA_complex_",
|
103
|
+
"NA_character_",
|
104
|
+
"T",
|
105
|
+
"F",
|
106
|
+
"LETTERS",
|
107
|
+
"letters",
|
108
|
+
"month.abb",
|
109
|
+
"month.name",
|
110
|
+
"pi",
|
111
|
+
"R.version.string"
|
112
|
+
],
|
113
|
+
keywords: [
|
114
|
+
"break",
|
115
|
+
"next",
|
116
|
+
"return",
|
117
|
+
"if",
|
118
|
+
"else",
|
119
|
+
"for",
|
120
|
+
"in",
|
121
|
+
"repeat",
|
122
|
+
"while",
|
123
|
+
"array",
|
124
|
+
"category",
|
125
|
+
"character",
|
126
|
+
"complex",
|
127
|
+
"double",
|
128
|
+
"function",
|
129
|
+
"integer",
|
130
|
+
"list",
|
131
|
+
"logical",
|
132
|
+
"matrix",
|
133
|
+
"numeric",
|
134
|
+
"vector",
|
135
|
+
"data.frame",
|
136
|
+
"factor",
|
137
|
+
"library",
|
138
|
+
"require",
|
139
|
+
"attach",
|
140
|
+
"detach",
|
141
|
+
"source"
|
142
|
+
],
|
143
|
+
special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"],
|
144
|
+
brackets: [
|
145
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
146
|
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
147
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
148
|
+
],
|
149
|
+
tokenizer: {
|
150
|
+
root: [
|
151
|
+
{ include: "@numbers" },
|
152
|
+
{ include: "@strings" },
|
153
|
+
[/[{}\[\]()]/, "@brackets"],
|
154
|
+
{ include: "@operators" },
|
155
|
+
[/#'$/, "comment.doc"],
|
156
|
+
[/#'/, "comment.doc", "@roxygen"],
|
157
|
+
[/(^#.*$)/, "comment"],
|
158
|
+
[/\s+/, "white"],
|
159
|
+
[/[,:;]/, "delimiter"],
|
160
|
+
[/@[a-zA-Z]\w*/, "tag"],
|
161
|
+
[
|
162
|
+
/[a-zA-Z]\w*/,
|
163
|
+
{
|
164
|
+
cases: {
|
165
|
+
"@keywords": "keyword",
|
166
|
+
"@constants": "constant",
|
167
|
+
"@default": "identifier"
|
168
|
+
}
|
169
|
+
}
|
170
|
+
]
|
171
|
+
],
|
172
|
+
// Recognize Roxygen comments
|
173
|
+
roxygen: [
|
174
|
+
[
|
175
|
+
/@\w+/,
|
176
|
+
{
|
177
|
+
cases: {
|
178
|
+
"@roxygen": "tag",
|
179
|
+
"@eos": { token: "comment.doc", next: "@pop" },
|
180
|
+
"@default": "comment.doc"
|
181
|
+
}
|
182
|
+
}
|
183
|
+
],
|
184
|
+
[
|
185
|
+
/\s+/,
|
186
|
+
{
|
187
|
+
cases: {
|
188
|
+
"@eos": { token: "comment.doc", next: "@pop" },
|
189
|
+
"@default": "comment.doc"
|
190
|
+
}
|
191
|
+
}
|
192
|
+
],
|
193
|
+
[/.*/, { token: "comment.doc", next: "@pop" }]
|
194
|
+
],
|
195
|
+
// Recognize positives, negatives, decimals, imaginaries, and scientific notation
|
196
|
+
numbers: [
|
197
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
198
|
+
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
|
199
|
+
],
|
200
|
+
// Recognize operators
|
201
|
+
operators: [
|
202
|
+
[/<{1,2}-/, "operator"],
|
203
|
+
[/->{1,2}/, "operator"],
|
204
|
+
[/%[^%\s]+%/, "operator"],
|
205
|
+
[/\*\*/, "operator"],
|
206
|
+
[/%%/, "operator"],
|
207
|
+
[/&&/, "operator"],
|
208
|
+
[/\|\|/, "operator"],
|
209
|
+
[/<</, "operator"],
|
210
|
+
[/>>/, "operator"],
|
211
|
+
[/[-+=&|!<>^~*/:$]/, "operator"]
|
212
|
+
],
|
213
|
+
// Recognize strings, including those broken across lines
|
214
|
+
strings: [
|
215
|
+
[/'/, "string.escape", "@stringBody"],
|
216
|
+
[/"/, "string.escape", "@dblStringBody"]
|
217
|
+
],
|
218
|
+
stringBody: [
|
219
|
+
[
|
220
|
+
/\\./,
|
221
|
+
{
|
222
|
+
cases: {
|
223
|
+
"@special": "string",
|
224
|
+
"@default": "error-token"
|
225
|
+
}
|
226
|
+
}
|
227
|
+
],
|
228
|
+
[/'/, "string.escape", "@popall"],
|
229
|
+
[/./, "string"]
|
230
|
+
],
|
231
|
+
dblStringBody: [
|
232
|
+
[
|
233
|
+
/\\./,
|
234
|
+
{
|
235
|
+
cases: {
|
236
|
+
"@special": "string",
|
237
|
+
"@default": "error-token"
|
238
|
+
}
|
239
|
+
}
|
240
|
+
],
|
241
|
+
[/"/, "string.escape", "@popall"],
|
242
|
+
[/./, "string"]
|
243
|
+
]
|
244
|
+
}
|
245
|
+
};
|
246
|
+
export {
|
247
|
+
e as conf,
|
248
|
+
o as language
|
249
|
+
};
|