@covalent/components 8.15.0-beta.5 → 8.15.0-beta.7

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.
Files changed (148) hide show
  1. package/cell.js +2 -2
  2. package/cell.mjs +2 -2
  3. package/code-editor/code-editor.d.ts +23 -1
  4. package/code-editor/code-editor.d.ts.map +1 -1
  5. package/code-editor-3a09cbf1.js +732 -0
  6. package/{code-editor-50658551.mjs → code-editor-ce557bd5.mjs} +14343 -47224
  7. package/code-editor.js +1 -1
  8. package/code-editor.mjs +1 -1
  9. package/{html-e9028ad1.js → html-4fffc46e.js} +1 -1
  10. package/{html-201c3d5b.mjs → html-783f1e7c.mjs} +1 -1
  11. package/index.js +1 -1
  12. package/index.mjs +1 -1
  13. package/{javascript-b57f3bab.mjs → javascript-4d09cd3c.mjs} +2 -2
  14. package/{javascript-3c211951.js → javascript-90bb18e6.js} +1 -1
  15. package/notebook/notebook.d.ts.map +1 -1
  16. package/notebook.js +4 -4
  17. package/notebook.mjs +40 -33
  18. package/package.json +1 -1
  19. package/{python-fc06c865.mjs → python-562f8e9b.mjs} +1 -1
  20. package/{python-bc49c081.js → python-af3aad7d.js} +1 -1
  21. package/style.css +1 -1
  22. package/{typescript-40210801.js → typescript-76d039b3.js} +1 -1
  23. package/{typescript-43c5c20d.mjs → typescript-a2a5d6b2.mjs} +1 -1
  24. package/{xml-fa896994.mjs → xml-89571455.mjs} +1 -1
  25. package/{xml-7bc2fc7c.js → xml-e66929d0.js} +1 -1
  26. package/{yaml-ed9aa786.js → yaml-11a91e71.js} +1 -1
  27. package/{yaml-78bd2cbe.mjs → yaml-4eccd122.mjs} +1 -1
  28. package/abap-1354785f.mjs +0 -1314
  29. package/abap-c7187853.js +0 -6
  30. package/apex-279d4f27.mjs +0 -315
  31. package/apex-fc5f2b3e.js +0 -6
  32. package/azcli-ba812c55.mjs +0 -74
  33. package/azcli-eb191d91.js +0 -6
  34. package/bat-34d38df4.js +0 -6
  35. package/bat-4d77495d.mjs +0 -95
  36. package/bicep-7b240724.mjs +0 -108
  37. package/bicep-a8264e77.js +0 -7
  38. package/cameligo-5d2daeb8.mjs +0 -168
  39. package/cameligo-6e71c8f3.js +0 -6
  40. package/clojure-355adae1.js +0 -6
  41. package/clojure-b7ea12a3.mjs +0 -754
  42. package/code-editor-1a85e0d5.js +0 -1200
  43. package/coffee-1a8cfbf4.mjs +0 -228
  44. package/coffee-fd8a7421.js +0 -6
  45. package/csp-54919de0.js +0 -6
  46. package/csp-96407af0.mjs +0 -57
  47. package/cssMode-2b74fdc2.mjs +0 -1450
  48. package/cssMode-9d3a459c.js +0 -9
  49. package/cypher-11e5a4b6.mjs +0 -262
  50. package/cypher-cc849b67.js +0 -6
  51. package/dockerfile-2f8684f7.js +0 -6
  52. package/dockerfile-8739cff7.mjs +0 -132
  53. package/ecl-68a6f20f.js +0 -6
  54. package/ecl-a20c5155.mjs +0 -454
  55. package/elixir-32cc668e.js +0 -6
  56. package/elixir-8b028584.mjs +0 -467
  57. package/flow9-0dea2e73.mjs +0 -141
  58. package/flow9-1d2ab5f6.js +0 -6
  59. package/freemarker2-bde9aca2.js +0 -8
  60. package/freemarker2-cfbd8857.mjs +0 -648
  61. package/fsharp-49a70fad.mjs +0 -210
  62. package/fsharp-a22f5013.js +0 -6
  63. package/graphql-1a14eb34.js +0 -6
  64. package/graphql-51a577e5.mjs +0 -141
  65. package/handlebars-c9cf3ba5.mjs +0 -396
  66. package/handlebars-f9941f98.js +0 -6
  67. package/hcl-0833427e.js +0 -6
  68. package/hcl-56b85754.mjs +0 -177
  69. package/htmlMode-81e069aa.mjs +0 -1460
  70. package/htmlMode-8825beb1.js +0 -9
  71. package/ini-1d58d82f.mjs +0 -68
  72. package/ini-34a929df.js +0 -6
  73. package/jsonMode-1e42d08e.mjs +0 -1871
  74. package/jsonMode-8cd3f8b9.js +0 -11
  75. package/julia-7db1fb9a.js +0 -6
  76. package/julia-a0caf483.mjs +0 -496
  77. package/less-5219eae1.js +0 -7
  78. package/less-718543b4.mjs +0 -168
  79. package/lexon-5e6e7a44.mjs +0 -151
  80. package/lexon-dfd683ab.js +0 -6
  81. package/liquid-987381d2.mjs +0 -243
  82. package/liquid-c3f3aaaf.js +0 -6
  83. package/m3-87473279.js +0 -6
  84. package/m3-aadaf771.mjs +0 -210
  85. package/mips-161e49ce.mjs +0 -194
  86. package/mips-82a1ce59.js +0 -6
  87. package/msdax-b3b5017e.js +0 -6
  88. package/msdax-f65cb1e6.mjs +0 -377
  89. package/mysql-24549dd1.mjs +0 -875
  90. package/mysql-69f1c589.js +0 -6
  91. package/objective-c-c8319b65.js +0 -6
  92. package/objective-c-e129a5ca.mjs +0 -188
  93. package/pascal-4ccdf5ce.mjs +0 -245
  94. package/pascal-e5207a08.js +0 -6
  95. package/pascaligo-8eb79945.js +0 -6
  96. package/pascaligo-a9603dcd.mjs +0 -158
  97. package/perl-ba1fb97a.mjs +0 -599
  98. package/perl-e8264c91.js +0 -6
  99. package/pgsql-89978310.mjs +0 -843
  100. package/pgsql-c8ba6faf.js +0 -6
  101. package/pla-96c2695d.mjs +0 -131
  102. package/pla-c85b0e59.js +0 -6
  103. package/postiats-3c2c478e.js +0 -6
  104. package/postiats-7b52ebac.mjs +0 -544
  105. package/powerquery-8954ec26.mjs +0 -890
  106. package/powerquery-b0d5f9e4.js +0 -6
  107. package/powershell-cdb88123.js +0 -6
  108. package/powershell-f00d0274.mjs +0 -233
  109. package/protobuf-3eb85f80.mjs +0 -422
  110. package/protobuf-a3b2ca94.js +0 -7
  111. package/pug-6fab415a.mjs +0 -393
  112. package/pug-c5df821d.js +0 -6
  113. package/qsharp-4792f872.mjs +0 -282
  114. package/qsharp-7eddb7b9.js +0 -6
  115. package/razor-52a04ea4.mjs +0 -517
  116. package/razor-90572182.js +0 -6
  117. package/redis-0d0a89dd.js +0 -6
  118. package/redis-276b8288.mjs +0 -298
  119. package/redshift-520a7359.mjs +0 -806
  120. package/redshift-b6bdaeca.js +0 -6
  121. package/restructuredtext-4676a3fc.mjs +0 -162
  122. package/restructuredtext-c83d56ed.js +0 -6
  123. package/ruby-764137cd.mjs +0 -444
  124. package/ruby-96103dcf.js +0 -6
  125. package/sb-8c22f14c.mjs +0 -110
  126. package/sb-e2701210.js +0 -6
  127. package/scheme-b9cbf7cb.js +0 -6
  128. package/scheme-e6a52cb0.mjs +0 -114
  129. package/scss-45104c77.mjs +0 -244
  130. package/scss-d0f4f80e.js +0 -8
  131. package/solidity-d4979008.mjs +0 -1351
  132. package/solidity-f1319e8a.js +0 -6
  133. package/sophia-21995caf.mjs +0 -190
  134. package/sophia-a1ce907f.js +0 -6
  135. package/sparql-5088743c.mjs +0 -193
  136. package/sparql-98d9e092.js +0 -6
  137. package/st-122893c4.js +0 -6
  138. package/st-fa9ab362.mjs +0 -414
  139. package/systemverilog-8139818b.js +0 -6
  140. package/systemverilog-a4f858ed.mjs +0 -556
  141. package/tcl-8adf937f.mjs +0 -232
  142. package/tcl-e49fed0b.js +0 -6
  143. package/tsMode-d31816b7.js +0 -16
  144. package/tsMode-f63ee283.mjs +0 -794
  145. package/twig-404eb73e.mjs +0 -323
  146. package/twig-4bfb5b04.js +0 -6
  147. package/vb-8dfd000c.js +0 -6
  148. package/vb-e21e8153.mjs +0 -364
@@ -1,422 +0,0 @@
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 = ["true", "false"], t = {
8
- comments: {
9
- lineComment: "//",
10
- blockComment: ["/*", "*/"]
11
- },
12
- brackets: [
13
- ["{", "}"],
14
- ["[", "]"],
15
- ["(", ")"],
16
- ["<", ">"]
17
- ],
18
- surroundingPairs: [
19
- { open: "{", close: "}" },
20
- { open: "[", close: "]" },
21
- { open: "(", close: ")" },
22
- { open: "<", close: ">" },
23
- { open: '"', close: '"' },
24
- { open: "'", close: "'" }
25
- ],
26
- autoClosingPairs: [
27
- { open: "{", close: "}" },
28
- { open: "[", close: "]" },
29
- { open: "(", close: ")" },
30
- { open: "<", close: ">" },
31
- { open: '"', close: '"', notIn: ["string"] },
32
- { open: "'", close: "'", notIn: ["string"] }
33
- ],
34
- autoCloseBefore: `.,=}])>'
35
- `,
36
- indentationRules: {
37
- increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
38
- decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
39
- }
40
- }, n = {
41
- defaultToken: "",
42
- tokenPostfix: ".proto",
43
- brackets: [
44
- { open: "{", close: "}", token: "delimiter.curly" },
45
- { open: "[", close: "]", token: "delimiter.square" },
46
- { open: "(", close: ")", token: "delimiter.parenthesis" },
47
- { open: "<", close: ">", token: "delimiter.angle" }
48
- ],
49
- symbols: /[=><!~?:&|+\-*/^%]+/,
50
- keywords: [
51
- "syntax",
52
- "import",
53
- "weak",
54
- "public",
55
- "package",
56
- "option",
57
- "repeated",
58
- "oneof",
59
- "map",
60
- "reserved",
61
- "to",
62
- "max",
63
- "enum",
64
- "message",
65
- "service",
66
- "rpc",
67
- "stream",
68
- "returns",
69
- "package",
70
- "optional",
71
- "true",
72
- "false"
73
- ],
74
- builtinTypes: [
75
- "double",
76
- "float",
77
- "int32",
78
- "int64",
79
- "uint32",
80
- "uint64",
81
- "sint32",
82
- "sint64",
83
- "fixed32",
84
- "fixed64",
85
- "sfixed32",
86
- "sfixed64",
87
- "bool",
88
- "string",
89
- "bytes"
90
- ],
91
- operators: ["=", "+", "-"],
92
- namedLiterals: e,
93
- escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
94
- identifier: /[a-zA-Z]\w*/,
95
- fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
96
- optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
97
- messageName: /@identifier/,
98
- enumName: /@identifier/,
99
- messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
100
- enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
101
- floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
102
- exponent: /[eE]\s*[+-]?\s*[0-9]+/,
103
- boolLit: /true\b|false\b/,
104
- decimalLit: /[1-9][0-9]*/,
105
- octalLit: /0[0-7]*/,
106
- hexLit: /0[xX][0-9a-fA-F]+/,
107
- type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
108
- keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
109
- tokenizer: {
110
- root: [
111
- { include: "@whitespace" },
112
- [/syntax/, "keyword"],
113
- [/=/, "operators"],
114
- [/;/, "delimiter"],
115
- [
116
- /(")(proto3)(")/,
117
- ["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
118
- ],
119
- [
120
- /(")(proto2)(")/,
121
- ["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
122
- ],
123
- [
124
- /.*?/,
125
- { token: "", switchTo: "@topLevel.proto2" }
126
- ]
127
- ],
128
- topLevel: [
129
- { include: "@whitespace" },
130
- { include: "@constant" },
131
- [/=/, "operators"],
132
- [/[;.]/, "delimiter"],
133
- [
134
- /@fullIdentifier/,
135
- {
136
- cases: {
137
- option: { token: "keyword", next: "@option.$S2" },
138
- enum: { token: "keyword", next: "@enumDecl.$S2" },
139
- message: { token: "keyword", next: "@messageDecl.$S2" },
140
- service: { token: "keyword", next: "@serviceDecl.$S2" },
141
- extend: {
142
- cases: {
143
- "$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
144
- }
145
- },
146
- "@keywords": "keyword",
147
- "@default": "identifier"
148
- }
149
- }
150
- ]
151
- ],
152
- enumDecl: [
153
- { include: "@whitespace" },
154
- [/@identifier/, "type.identifier"],
155
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
156
- ],
157
- enumBody: [
158
- { include: "@whitespace" },
159
- { include: "@constant" },
160
- [/=/, "operators"],
161
- [/;/, "delimiter"],
162
- [/option\b/, "keyword", "@option.$S2"],
163
- [/@identifier/, "identifier"],
164
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
165
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
166
- ],
167
- messageDecl: [
168
- { include: "@whitespace" },
169
- [/@identifier/, "type.identifier"],
170
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
171
- ],
172
- messageBody: [
173
- { include: "@whitespace" },
174
- { include: "@constant" },
175
- [/=/, "operators"],
176
- [/;/, "delimiter"],
177
- [
178
- "(map)(s*)(<)",
179
- ["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
180
- ],
181
- [
182
- /@identifier/,
183
- {
184
- cases: {
185
- option: { token: "keyword", next: "@option.$S2" },
186
- enum: { token: "keyword", next: "@enumDecl.$S2" },
187
- message: { token: "keyword", next: "@messageDecl.$S2" },
188
- oneof: { token: "keyword", next: "@oneofDecl.$S2" },
189
- extensions: {
190
- cases: {
191
- "$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
192
- }
193
- },
194
- reserved: { token: "keyword", next: "@reserved.$S2" },
195
- "(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
196
- required: {
197
- cases: {
198
- "$S2==proto2": { token: "keyword", next: "@field.$S2" }
199
- }
200
- },
201
- "$S2==proto3": { token: "@rematch", next: "@field.$S2" }
202
- }
203
- }
204
- ],
205
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
206
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
207
- ],
208
- extendDecl: [
209
- { include: "@whitespace" },
210
- [/@identifier/, "type.identifier"],
211
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
212
- ],
213
- extendBody: [
214
- { include: "@whitespace" },
215
- { include: "@constant" },
216
- [/;/, "delimiter"],
217
- [/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
218
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
219
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
220
- ],
221
- options: [
222
- { include: "@whitespace" },
223
- { include: "@constant" },
224
- [/;/, "delimiter"],
225
- [/@optionName/, "annotation"],
226
- [/[()]/, "annotation.brackets"],
227
- [/=/, "operator"],
228
- [/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
229
- ],
230
- option: [
231
- { include: "@whitespace" },
232
- [/@optionName/, "annotation"],
233
- [/[()]/, "annotation.brackets"],
234
- [/=/, "operator", "@pop"]
235
- ],
236
- oneofDecl: [
237
- { include: "@whitespace" },
238
- [/@identifier/, "identifier"],
239
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
240
- ],
241
- oneofBody: [
242
- { include: "@whitespace" },
243
- { include: "@constant" },
244
- [/;/, "delimiter"],
245
- [/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
246
- [
247
- /@fullIdentifier|\./,
248
- {
249
- cases: {
250
- "@builtinTypes": "keyword",
251
- "@default": "type.identifier"
252
- }
253
- }
254
- ],
255
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
256
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
257
- ],
258
- reserved: [
259
- { include: "@whitespace" },
260
- [/,/, "delimiter"],
261
- [/;/, "delimiter", "@pop"],
262
- { include: "@constant" },
263
- [/to\b|max\b/, "keyword"]
264
- ],
265
- map: [
266
- { include: "@whitespace" },
267
- [
268
- /@fullIdentifier|\./,
269
- {
270
- cases: {
271
- "@builtinTypes": "keyword",
272
- "@default": "type.identifier"
273
- }
274
- }
275
- ],
276
- [/,/, "delimiter"],
277
- [/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
278
- ],
279
- field: [
280
- { include: "@whitespace" },
281
- [
282
- "group",
283
- {
284
- cases: {
285
- "$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
286
- }
287
- }
288
- ],
289
- [/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
290
- [
291
- /@fullIdentifier|\./,
292
- {
293
- cases: {
294
- "@builtinTypes": "keyword",
295
- "@default": "type.identifier"
296
- }
297
- }
298
- ]
299
- ],
300
- groupDecl: [
301
- { include: "@whitespace" },
302
- [/@identifier/, "identifier"],
303
- ["=", "operator"],
304
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
305
- { include: "@constant" }
306
- ],
307
- type: [
308
- { include: "@whitespace" },
309
- [/@identifier/, "type.identifier", "@pop"],
310
- [/./, "delimiter"]
311
- ],
312
- identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
313
- serviceDecl: [
314
- { include: "@whitespace" },
315
- [/@identifier/, "identifier"],
316
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
317
- ],
318
- serviceBody: [
319
- { include: "@whitespace" },
320
- { include: "@constant" },
321
- [/;/, "delimiter"],
322
- [/option\b/, "keyword", "@option.$S2"],
323
- [/rpc\b/, "keyword", "@rpc.$S2"],
324
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
325
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
326
- ],
327
- rpc: [
328
- { include: "@whitespace" },
329
- [/@identifier/, "identifier"],
330
- [/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
331
- [/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
332
- [/;/, "delimiter", "@pop"]
333
- ],
334
- request: [
335
- { include: "@whitespace" },
336
- [
337
- /@messageType/,
338
- {
339
- cases: {
340
- stream: { token: "keyword", next: "@type.$S2" },
341
- "@default": "type.identifier"
342
- }
343
- }
344
- ],
345
- [/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
346
- ],
347
- returns: [
348
- { include: "@whitespace" },
349
- [/returns\b/, "keyword"],
350
- [/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
351
- ],
352
- response: [
353
- { include: "@whitespace" },
354
- [
355
- /@messageType/,
356
- {
357
- cases: {
358
- stream: { token: "keyword", next: "@type.$S2" },
359
- "@default": "type.identifier"
360
- }
361
- }
362
- ],
363
- [/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
364
- ],
365
- methodOptions: [
366
- { include: "@whitespace" },
367
- { include: "@constant" },
368
- [/;/, "delimiter"],
369
- ["option", "keyword"],
370
- [/@optionName/, "annotation"],
371
- [/[()]/, "annotation.brackets"],
372
- [/=/, "operator"],
373
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
374
- ],
375
- comment: [
376
- [/[^\/*]+/, "comment"],
377
- [/\/\*/, "comment", "@push"],
378
- ["\\*/", "comment", "@pop"],
379
- [/[\/*]/, "comment"]
380
- ],
381
- string: [
382
- [/[^\\"]+/, "string"],
383
- [/@escapes/, "string.escape"],
384
- [/\\./, "string.escape.invalid"],
385
- [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
386
- ],
387
- stringSingle: [
388
- [/[^\\']+/, "string"],
389
- [/@escapes/, "string.escape"],
390
- [/\\./, "string.escape.invalid"],
391
- [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
392
- ],
393
- constant: [
394
- ["@boolLit", "keyword.constant"],
395
- ["@hexLit", "number.hex"],
396
- ["@octalLit", "number.octal"],
397
- ["@decimalLit", "number"],
398
- ["@floatLit", "number.float"],
399
- [/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
400
- [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
401
- [/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
402
- [/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
403
- [/identifier/, "identifier"]
404
- ],
405
- whitespace: [
406
- [/[ \t\r\n]+/, "white"],
407
- [/\/\*/, "comment", "@comment"],
408
- [/\/\/.*$/, "comment"]
409
- ],
410
- prototext: [
411
- { include: "@whitespace" },
412
- { include: "@constant" },
413
- [/@identifier/, "identifier"],
414
- [/[:;]/, "delimiter"],
415
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
416
- ]
417
- }
418
- };
419
- export {
420
- t as conf,
421
- n as language
422
- };
@@ -1,7 +0,0 @@
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=["true","false"],t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:`.,=}])>'
7
- `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},n={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["syntax","import","weak","public","package","option","repeated","oneof","map","reserved","to","max","enum","message","service","rpc","stream","returns","package","optional","true","false"],builtinTypes:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],operators:["=","+","-"],namedLiterals:e,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:"@whitespace"},[/syntax/,"keyword"],[/=/,"operators"],[/;/,"delimiter"],[/(")(proto3)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto3"}]],[/(")(proto2)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto2"}]],[/.*?/,{token:"",switchTo:"@topLevel.proto2"}]],topLevel:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/[;.]/,"delimiter"],[/@fullIdentifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},service:{token:"keyword",next:"@serviceDecl.$S2"},extend:{cases:{"$S2==proto2":{token:"keyword",next:"@extendDecl.$S2"}}},"@keywords":"keyword","@default":"identifier"}}]],enumDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@enumBody.$S2"}]],enumBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/@identifier/,"identifier"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],messageDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}]],messageBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],["(map)(s*)(<)",["keyword","white",{token:"@brackets",bracket:"@open",next:"@map.$S2"}]],[/@identifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},oneof:{token:"keyword",next:"@oneofDecl.$S2"},extensions:{cases:{"$S2==proto2":{token:"keyword",next:"@reserved.$S2"}}},reserved:{token:"keyword",next:"@reserved.$S2"},"(?:repeated|optional)":{token:"keyword",next:"@field.$S2"},required:{cases:{"$S2==proto2":{token:"keyword",next:"@field.$S2"}}},"$S2==proto3":{token:"@rematch",next:"@field.$S2"}}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],extendDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@extendBody.$S2"}]],extendBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(?:repeated|optional|required)/,"keyword","@field.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],options:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/\]/,{token:"@brackets",bracket:"@close",next:"@pop"}]],option:[{include:"@whitespace"},[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator","@pop"]],oneofDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@oneofBody.$S2"}]],oneofBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(@identifier)(\s*)(=)/,["identifier","white","delimiter"]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],reserved:[{include:"@whitespace"},[/,/,"delimiter"],[/;/,"delimiter","@pop"],{include:"@constant"},[/to\b|max\b/,"keyword"]],map:[{include:"@whitespace"},[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/,/,"delimiter"],[/>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}};exports.conf=t;exports.language=n;