@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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/package.json +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/qsharp-DnrWSUlt.js
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "//"
|
|
4
|
-
},
|
|
5
|
-
brackets: [
|
|
6
|
-
["{", "}"],
|
|
7
|
-
["[", "]"],
|
|
8
|
-
["(", ")"]
|
|
9
|
-
],
|
|
10
|
-
autoClosingPairs: [
|
|
11
|
-
{ open: "{", close: "}" },
|
|
12
|
-
{ open: "[", close: "]" },
|
|
13
|
-
{ open: "(", close: ")" },
|
|
14
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
15
|
-
],
|
|
16
|
-
surroundingPairs: [
|
|
17
|
-
{ open: "{", close: "}" },
|
|
18
|
-
{ open: "[", close: "]" },
|
|
19
|
-
{ open: "(", close: ")" },
|
|
20
|
-
{ open: '"', close: '"' }
|
|
21
|
-
]
|
|
22
|
-
}, t = {
|
|
23
|
-
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
24
|
-
keywords: [
|
|
25
|
-
"namespace",
|
|
26
|
-
"open",
|
|
27
|
-
"import",
|
|
28
|
-
"export",
|
|
29
|
-
"as",
|
|
30
|
-
"operation",
|
|
31
|
-
"function",
|
|
32
|
-
"body",
|
|
33
|
-
"adjoint",
|
|
34
|
-
"newtype",
|
|
35
|
-
"struct",
|
|
36
|
-
"controlled",
|
|
37
|
-
"if",
|
|
38
|
-
"elif",
|
|
39
|
-
"else",
|
|
40
|
-
"repeat",
|
|
41
|
-
"until",
|
|
42
|
-
"fixup",
|
|
43
|
-
"for",
|
|
44
|
-
"in",
|
|
45
|
-
"while",
|
|
46
|
-
"return",
|
|
47
|
-
"fail",
|
|
48
|
-
"within",
|
|
49
|
-
"apply",
|
|
50
|
-
"Adjoint",
|
|
51
|
-
"Controlled",
|
|
52
|
-
"Adj",
|
|
53
|
-
"Ctl",
|
|
54
|
-
"is",
|
|
55
|
-
"self",
|
|
56
|
-
"auto",
|
|
57
|
-
"distribute",
|
|
58
|
-
"invert",
|
|
59
|
-
"intrinsic",
|
|
60
|
-
"let",
|
|
61
|
-
"set",
|
|
62
|
-
"w/",
|
|
63
|
-
"new",
|
|
64
|
-
"not",
|
|
65
|
-
"and",
|
|
66
|
-
"or",
|
|
67
|
-
"use",
|
|
68
|
-
"borrow",
|
|
69
|
-
"using",
|
|
70
|
-
"borrowing",
|
|
71
|
-
"mutable",
|
|
72
|
-
"internal"
|
|
73
|
-
],
|
|
74
|
-
typeKeywords: [
|
|
75
|
-
"Unit",
|
|
76
|
-
"Int",
|
|
77
|
-
"BigInt",
|
|
78
|
-
"Double",
|
|
79
|
-
"Bool",
|
|
80
|
-
"String",
|
|
81
|
-
"Qubit",
|
|
82
|
-
"Result",
|
|
83
|
-
"Pauli",
|
|
84
|
-
"Range"
|
|
85
|
-
],
|
|
86
|
-
invalidKeywords: [
|
|
87
|
-
"abstract",
|
|
88
|
-
"base",
|
|
89
|
-
"bool",
|
|
90
|
-
"break",
|
|
91
|
-
"byte",
|
|
92
|
-
"case",
|
|
93
|
-
"catch",
|
|
94
|
-
"char",
|
|
95
|
-
"checked",
|
|
96
|
-
"class",
|
|
97
|
-
"const",
|
|
98
|
-
"continue",
|
|
99
|
-
"decimal",
|
|
100
|
-
"default",
|
|
101
|
-
"delegate",
|
|
102
|
-
"do",
|
|
103
|
-
"double",
|
|
104
|
-
"enum",
|
|
105
|
-
"event",
|
|
106
|
-
"explicit",
|
|
107
|
-
"extern",
|
|
108
|
-
"finally",
|
|
109
|
-
"fixed",
|
|
110
|
-
"float",
|
|
111
|
-
"foreach",
|
|
112
|
-
"goto",
|
|
113
|
-
"implicit",
|
|
114
|
-
"int",
|
|
115
|
-
"interface",
|
|
116
|
-
"lock",
|
|
117
|
-
"long",
|
|
118
|
-
"null",
|
|
119
|
-
"object",
|
|
120
|
-
"operator",
|
|
121
|
-
"out",
|
|
122
|
-
"override",
|
|
123
|
-
"params",
|
|
124
|
-
"private",
|
|
125
|
-
"protected",
|
|
126
|
-
"public",
|
|
127
|
-
"readonly",
|
|
128
|
-
"ref",
|
|
129
|
-
"sbyte",
|
|
130
|
-
"sealed",
|
|
131
|
-
"short",
|
|
132
|
-
"sizeof",
|
|
133
|
-
"stackalloc",
|
|
134
|
-
"static",
|
|
135
|
-
"string",
|
|
136
|
-
"switch",
|
|
137
|
-
"this",
|
|
138
|
-
"throw",
|
|
139
|
-
"try",
|
|
140
|
-
"typeof",
|
|
141
|
-
"unit",
|
|
142
|
-
"ulong",
|
|
143
|
-
"unchecked",
|
|
144
|
-
"unsafe",
|
|
145
|
-
"ushort",
|
|
146
|
-
"virtual",
|
|
147
|
-
"void",
|
|
148
|
-
"volatile"
|
|
149
|
-
],
|
|
150
|
-
constants: ["true", "false", "PauliI", "PauliX", "PauliY", "PauliZ", "One", "Zero"],
|
|
151
|
-
builtin: [
|
|
152
|
-
"X",
|
|
153
|
-
"Y",
|
|
154
|
-
"Z",
|
|
155
|
-
"H",
|
|
156
|
-
"HY",
|
|
157
|
-
"S",
|
|
158
|
-
"T",
|
|
159
|
-
"SWAP",
|
|
160
|
-
"CNOT",
|
|
161
|
-
"CCNOT",
|
|
162
|
-
"MultiX",
|
|
163
|
-
"R",
|
|
164
|
-
"RFrac",
|
|
165
|
-
"Rx",
|
|
166
|
-
"Ry",
|
|
167
|
-
"Rz",
|
|
168
|
-
"R1",
|
|
169
|
-
"R1Frac",
|
|
170
|
-
"Exp",
|
|
171
|
-
"ExpFrac",
|
|
172
|
-
"Measure",
|
|
173
|
-
"M",
|
|
174
|
-
"MultiM",
|
|
175
|
-
"Message",
|
|
176
|
-
"Length",
|
|
177
|
-
"Assert",
|
|
178
|
-
"AssertProb",
|
|
179
|
-
"AssertEqual"
|
|
180
|
-
],
|
|
181
|
-
operators: [
|
|
182
|
-
"and=",
|
|
183
|
-
"<-",
|
|
184
|
-
"->",
|
|
185
|
-
"*",
|
|
186
|
-
"*=",
|
|
187
|
-
"@",
|
|
188
|
-
"!",
|
|
189
|
-
"^",
|
|
190
|
-
"^=",
|
|
191
|
-
":",
|
|
192
|
-
"::",
|
|
193
|
-
".",
|
|
194
|
-
"..",
|
|
195
|
-
"==",
|
|
196
|
-
"...",
|
|
197
|
-
"=",
|
|
198
|
-
"=>",
|
|
199
|
-
">",
|
|
200
|
-
">=",
|
|
201
|
-
"<",
|
|
202
|
-
"<=",
|
|
203
|
-
"-",
|
|
204
|
-
"-=",
|
|
205
|
-
"!=",
|
|
206
|
-
"or=",
|
|
207
|
-
"%",
|
|
208
|
-
"%=",
|
|
209
|
-
"|",
|
|
210
|
-
"+",
|
|
211
|
-
"+=",
|
|
212
|
-
"?",
|
|
213
|
-
"/",
|
|
214
|
-
"/=",
|
|
215
|
-
"&&&",
|
|
216
|
-
"&&&=",
|
|
217
|
-
"^^^",
|
|
218
|
-
"^^^=",
|
|
219
|
-
">>>",
|
|
220
|
-
">>>=",
|
|
221
|
-
"<<<",
|
|
222
|
-
"<<<=",
|
|
223
|
-
"|||",
|
|
224
|
-
"|||=",
|
|
225
|
-
"~~~",
|
|
226
|
-
"_",
|
|
227
|
-
"w/",
|
|
228
|
-
"w/="
|
|
229
|
-
],
|
|
230
|
-
namespaceFollows: ["namespace", "open"],
|
|
231
|
-
importsFollows: ["import"],
|
|
232
|
-
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
|
233
|
-
escapes: /\\[\s\S]/,
|
|
234
|
-
// The main tokenizer for our languages
|
|
235
|
-
tokenizer: {
|
|
236
|
-
root: [
|
|
237
|
-
// identifiers and keywords
|
|
238
|
-
[
|
|
239
|
-
/[a-zA-Z_$][\w$]*/,
|
|
240
|
-
{
|
|
241
|
-
cases: {
|
|
242
|
-
"@namespaceFollows": {
|
|
243
|
-
token: "keyword.$0",
|
|
244
|
-
next: "@namespace"
|
|
245
|
-
},
|
|
246
|
-
"@importsFollows": {
|
|
247
|
-
token: "keyword.$0",
|
|
248
|
-
next: "@imports"
|
|
249
|
-
},
|
|
250
|
-
"@typeKeywords": "type",
|
|
251
|
-
"@keywords": "keyword",
|
|
252
|
-
"@constants": "constant",
|
|
253
|
-
"@builtin": "keyword",
|
|
254
|
-
"@invalidKeywords": "invalid",
|
|
255
|
-
"@default": "identifier"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
// whitespace
|
|
260
|
-
{ include: "@whitespace" },
|
|
261
|
-
// delimiters and operators
|
|
262
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
263
|
-
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }],
|
|
264
|
-
// numbers
|
|
265
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
266
|
-
[/\d+/, "number"],
|
|
267
|
-
// delimiter: after number because of .\d floats
|
|
268
|
-
[/[;,.]/, "delimiter"],
|
|
269
|
-
// strings
|
|
270
|
-
//[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-terminated string
|
|
271
|
-
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }]
|
|
272
|
-
],
|
|
273
|
-
string: [
|
|
274
|
-
[/[^\\"]+/, "string"],
|
|
275
|
-
[/@escapes/, "string.escape"],
|
|
276
|
-
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
277
|
-
],
|
|
278
|
-
namespace: [
|
|
279
|
-
{ include: "@whitespace" },
|
|
280
|
-
[/[A-Za-z]\w*/, "namespace"],
|
|
281
|
-
[/[\.]/, "delimiter"],
|
|
282
|
-
["", "", "@pop"]
|
|
283
|
-
],
|
|
284
|
-
imports: [
|
|
285
|
-
{ include: "@whitespace" },
|
|
286
|
-
[/[A-Za-z]\w*(?=\.)/, "namespace"],
|
|
287
|
-
[/[A-Za-z]\w*/, "identifier"],
|
|
288
|
-
[/\*/, "wildcard"],
|
|
289
|
-
[/[\.,]/, "delimiter"],
|
|
290
|
-
["", "", "@pop"]
|
|
291
|
-
],
|
|
292
|
-
whitespace: [
|
|
293
|
-
[/[ \t\r\n]+/, "white"],
|
|
294
|
-
[/(\/\/).*/, "comment"]
|
|
295
|
-
]
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
export {
|
|
299
|
-
e as conf,
|
|
300
|
-
t as language
|
|
301
|
-
};
|
package/dist/r-Cv309K2z.js
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "#"
|
|
4
|
-
},
|
|
5
|
-
brackets: [
|
|
6
|
-
["{", "}"],
|
|
7
|
-
["[", "]"],
|
|
8
|
-
["(", ")"]
|
|
9
|
-
],
|
|
10
|
-
autoClosingPairs: [
|
|
11
|
-
{ open: "{", close: "}" },
|
|
12
|
-
{ open: "[", close: "]" },
|
|
13
|
-
{ open: "(", close: ")" },
|
|
14
|
-
{ open: '"', close: '"' }
|
|
15
|
-
],
|
|
16
|
-
surroundingPairs: [
|
|
17
|
-
{ open: "{", close: "}" },
|
|
18
|
-
{ open: "[", close: "]" },
|
|
19
|
-
{ open: "(", close: ")" },
|
|
20
|
-
{ open: '"', close: '"' }
|
|
21
|
-
]
|
|
22
|
-
}, o = {
|
|
23
|
-
defaultToken: "",
|
|
24
|
-
tokenPostfix: ".r",
|
|
25
|
-
roxygen: [
|
|
26
|
-
"@alias",
|
|
27
|
-
"@aliases",
|
|
28
|
-
"@assignee",
|
|
29
|
-
"@author",
|
|
30
|
-
"@backref",
|
|
31
|
-
"@callGraph",
|
|
32
|
-
"@callGraphDepth",
|
|
33
|
-
"@callGraphPrimitives",
|
|
34
|
-
"@concept",
|
|
35
|
-
"@describeIn",
|
|
36
|
-
"@description",
|
|
37
|
-
"@details",
|
|
38
|
-
"@docType",
|
|
39
|
-
"@encoding",
|
|
40
|
-
"@evalNamespace",
|
|
41
|
-
"@evalRd",
|
|
42
|
-
"@example",
|
|
43
|
-
"@examples",
|
|
44
|
-
"@export",
|
|
45
|
-
"@exportClass",
|
|
46
|
-
"@exportMethod",
|
|
47
|
-
"@exportPattern",
|
|
48
|
-
"@family",
|
|
49
|
-
"@field",
|
|
50
|
-
"@formals",
|
|
51
|
-
"@format",
|
|
52
|
-
"@import",
|
|
53
|
-
"@importClassesFrom",
|
|
54
|
-
"@importFrom",
|
|
55
|
-
"@importMethodsFrom",
|
|
56
|
-
"@include",
|
|
57
|
-
"@inherit",
|
|
58
|
-
"@inheritDotParams",
|
|
59
|
-
"@inheritParams",
|
|
60
|
-
"@inheritSection",
|
|
61
|
-
"@keywords",
|
|
62
|
-
"@md",
|
|
63
|
-
"@method",
|
|
64
|
-
"@name",
|
|
65
|
-
"@noMd",
|
|
66
|
-
"@noRd",
|
|
67
|
-
"@note",
|
|
68
|
-
"@param",
|
|
69
|
-
"@rawNamespace",
|
|
70
|
-
"@rawRd",
|
|
71
|
-
"@rdname",
|
|
72
|
-
"@references",
|
|
73
|
-
"@return",
|
|
74
|
-
"@S3method",
|
|
75
|
-
"@section",
|
|
76
|
-
"@seealso",
|
|
77
|
-
"@setClass",
|
|
78
|
-
"@slot",
|
|
79
|
-
"@source",
|
|
80
|
-
"@template",
|
|
81
|
-
"@templateVar",
|
|
82
|
-
"@title",
|
|
83
|
-
"@TODO",
|
|
84
|
-
"@usage",
|
|
85
|
-
"@useDynLib"
|
|
86
|
-
],
|
|
87
|
-
constants: [
|
|
88
|
-
"NULL",
|
|
89
|
-
"FALSE",
|
|
90
|
-
"TRUE",
|
|
91
|
-
"NA",
|
|
92
|
-
"Inf",
|
|
93
|
-
"NaN",
|
|
94
|
-
"NA_integer_",
|
|
95
|
-
"NA_real_",
|
|
96
|
-
"NA_complex_",
|
|
97
|
-
"NA_character_",
|
|
98
|
-
"T",
|
|
99
|
-
"F",
|
|
100
|
-
"LETTERS",
|
|
101
|
-
"letters",
|
|
102
|
-
"month.abb",
|
|
103
|
-
"month.name",
|
|
104
|
-
"pi",
|
|
105
|
-
"R.version.string"
|
|
106
|
-
],
|
|
107
|
-
keywords: [
|
|
108
|
-
"break",
|
|
109
|
-
"next",
|
|
110
|
-
"return",
|
|
111
|
-
"if",
|
|
112
|
-
"else",
|
|
113
|
-
"for",
|
|
114
|
-
"in",
|
|
115
|
-
"repeat",
|
|
116
|
-
"while",
|
|
117
|
-
"array",
|
|
118
|
-
"category",
|
|
119
|
-
"character",
|
|
120
|
-
"complex",
|
|
121
|
-
"double",
|
|
122
|
-
"function",
|
|
123
|
-
"integer",
|
|
124
|
-
"list",
|
|
125
|
-
"logical",
|
|
126
|
-
"matrix",
|
|
127
|
-
"numeric",
|
|
128
|
-
"vector",
|
|
129
|
-
"data.frame",
|
|
130
|
-
"factor",
|
|
131
|
-
"library",
|
|
132
|
-
"require",
|
|
133
|
-
"attach",
|
|
134
|
-
"detach",
|
|
135
|
-
"source"
|
|
136
|
-
],
|
|
137
|
-
special: ["\\n", "\\r", "\\t", "\\b", "\\a", "\\f", "\\v", "\\'", '\\"', "\\\\"],
|
|
138
|
-
brackets: [
|
|
139
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
140
|
-
{ open: "[", close: "]", token: "delimiter.bracket" },
|
|
141
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
142
|
-
],
|
|
143
|
-
tokenizer: {
|
|
144
|
-
root: [
|
|
145
|
-
{ include: "@numbers" },
|
|
146
|
-
{ include: "@strings" },
|
|
147
|
-
[/[{}\[\]()]/, "@brackets"],
|
|
148
|
-
{ include: "@operators" },
|
|
149
|
-
[/#'$/, "comment.doc"],
|
|
150
|
-
[/#'/, "comment.doc", "@roxygen"],
|
|
151
|
-
[/(^#.*$)/, "comment"],
|
|
152
|
-
[/\s+/, "white"],
|
|
153
|
-
[/[,:;]/, "delimiter"],
|
|
154
|
-
[/@[a-zA-Z]\w*/, "tag"],
|
|
155
|
-
[
|
|
156
|
-
/[a-zA-Z]\w*/,
|
|
157
|
-
{
|
|
158
|
-
cases: {
|
|
159
|
-
"@keywords": "keyword",
|
|
160
|
-
"@constants": "constant",
|
|
161
|
-
"@default": "identifier"
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
],
|
|
166
|
-
// Recognize Roxygen comments
|
|
167
|
-
roxygen: [
|
|
168
|
-
[
|
|
169
|
-
/@\w+/,
|
|
170
|
-
{
|
|
171
|
-
cases: {
|
|
172
|
-
"@roxygen": "tag",
|
|
173
|
-
"@eos": { token: "comment.doc", next: "@pop" },
|
|
174
|
-
"@default": "comment.doc"
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
[
|
|
179
|
-
/\s+/,
|
|
180
|
-
{
|
|
181
|
-
cases: {
|
|
182
|
-
"@eos": { token: "comment.doc", next: "@pop" },
|
|
183
|
-
"@default": "comment.doc"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
[/.*/, { token: "comment.doc", next: "@pop" }]
|
|
188
|
-
],
|
|
189
|
-
// Recognize positives, negatives, decimals, imaginaries, and scientific notation
|
|
190
|
-
numbers: [
|
|
191
|
-
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
192
|
-
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, "number"]
|
|
193
|
-
],
|
|
194
|
-
// Recognize operators
|
|
195
|
-
operators: [
|
|
196
|
-
[/<{1,2}-/, "operator"],
|
|
197
|
-
[/->{1,2}/, "operator"],
|
|
198
|
-
[/%[^%\s]+%/, "operator"],
|
|
199
|
-
[/\*\*/, "operator"],
|
|
200
|
-
[/%%/, "operator"],
|
|
201
|
-
[/&&/, "operator"],
|
|
202
|
-
[/\|\|/, "operator"],
|
|
203
|
-
[/<</, "operator"],
|
|
204
|
-
[/>>/, "operator"],
|
|
205
|
-
[/[-+=&|!<>^~*/:$]/, "operator"]
|
|
206
|
-
],
|
|
207
|
-
// Recognize strings, including those broken across lines
|
|
208
|
-
strings: [
|
|
209
|
-
[/'/, "string.escape", "@stringBody"],
|
|
210
|
-
[/"/, "string.escape", "@dblStringBody"]
|
|
211
|
-
],
|
|
212
|
-
stringBody: [
|
|
213
|
-
[
|
|
214
|
-
/\\./,
|
|
215
|
-
{
|
|
216
|
-
cases: {
|
|
217
|
-
"@special": "string",
|
|
218
|
-
"@default": "error-token"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
[/'/, "string.escape", "@popall"],
|
|
223
|
-
[/./, "string"]
|
|
224
|
-
],
|
|
225
|
-
dblStringBody: [
|
|
226
|
-
[
|
|
227
|
-
/\\./,
|
|
228
|
-
{
|
|
229
|
-
cases: {
|
|
230
|
-
"@special": "string",
|
|
231
|
-
"@default": "error-token"
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
[/"/, "string.escape", "@popall"],
|
|
236
|
-
[/./, "string"]
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
export {
|
|
241
|
-
e as conf,
|
|
242
|
-
o as language
|
|
243
|
-
};
|