act-plus 1.1.23 → 1.1.25

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 (106) hide show
  1. package/act-plus.js +6 -5
  2. package/act-plus.umd.cjs +87 -1733
  3. package/lib/configBtns-63d416ef.js +152 -0
  4. package/lib/{configFileds-4633be91.js → configFileds-105ca288.js} +13 -11
  5. package/lib/{configTable-160a99e8.js → configTable-5bf09aac.js} +33 -31
  6. package/lib/{dialogAddField-a8db1c57.js → dialogAddField-bb493c88.js} +6 -4
  7. package/lib/{dialogConfigBtn-e5c41ad9.js → dialogConfigBtn-1fcd1496.js} +57 -55
  8. package/lib/{dialogSiteComponentsParams-05a400cc.js → dialogSiteComponentsParams-708737d2.js} +1 -1
  9. package/lib/{index-28cfa770.js → index-6b7ddc83.js} +74 -65
  10. package/lib/{index-44e2732a.js → index-740fe217.js} +10 -8
  11. package/lib/{index-7a1700c3.js → index-9071c381.js} +12 -10
  12. package/lib/{index-421ea84f.js → index-9bd009b2.js} +32 -30
  13. package/lib/index-ba8fa827.js +61597 -0
  14. package/lib/{index-cceb15dd.js → index-f8e81c41.js} +126 -148
  15. package/package.json +2 -6
  16. package/style.css +1 -1
  17. package/assets/css.worker-1af1972f.js +0 -84
  18. package/assets/editor.worker-df55e1ff.js +0 -8
  19. package/assets/html.worker-38c267f1.js +0 -456
  20. package/assets/json.worker-bf861c27.js +0 -39
  21. package/assets/ts.worker-e151483b.js +0 -33972
  22. package/lib/abap-1354785f.js +0 -1314
  23. package/lib/apex-279d4f27.js +0 -315
  24. package/lib/azcli-ba812c55.js +0 -74
  25. package/lib/bat-4d77495d.js +0 -95
  26. package/lib/bicep-7b240724.js +0 -108
  27. package/lib/cameligo-5d2daeb8.js +0 -168
  28. package/lib/clojure-b7ea12a3.js +0 -754
  29. package/lib/coffee-1a8cfbf4.js +0 -228
  30. package/lib/configBtns-c51c642b.js +0 -150
  31. package/lib/cpp-642b10c4.js +0 -387
  32. package/lib/csharp-d987ddad.js +0 -320
  33. package/lib/csp-96407af0.js +0 -57
  34. package/lib/css-5dd354ac.js +0 -186
  35. package/lib/cssMode-55e3e2b9.js +0 -1448
  36. package/lib/cypher-11e5a4b6.js +0 -262
  37. package/lib/dart-5d209f63.js +0 -270
  38. package/lib/dockerfile-8739cff7.js +0 -132
  39. package/lib/ecl-a20c5155.js +0 -454
  40. package/lib/elixir-8b028584.js +0 -467
  41. package/lib/flow9-0dea2e73.js +0 -141
  42. package/lib/freemarker2-86429a9d.js +0 -646
  43. package/lib/fsharp-49a70fad.js +0 -210
  44. package/lib/go-46e3b371.js +0 -208
  45. package/lib/graphql-51a577e5.js +0 -141
  46. package/lib/handlebars-dcad112f.js +0 -394
  47. package/lib/hcl-56b85754.js +0 -177
  48. package/lib/html-95cf87e3.js +0 -284
  49. package/lib/htmlMode-93d4ea14.js +0 -1458
  50. package/lib/index-22ab90dc.js +0 -162522
  51. package/lib/index-e2f2023d.js +0 -35
  52. package/lib/ini-1d58d82f.js +0 -68
  53. package/lib/java-cd017f60.js +0 -221
  54. package/lib/javascript-55252557.js +0 -78
  55. package/lib/jsonMode-b73c28d1.js +0 -1869
  56. package/lib/julia-a0caf483.js +0 -496
  57. package/lib/kotlin-c6e52a56.js +0 -245
  58. package/lib/less-718543b4.js +0 -168
  59. package/lib/lexon-5e6e7a44.js +0 -151
  60. package/lib/liquid-c923578c.js +0 -241
  61. package/lib/lua-f159160b.js +0 -157
  62. package/lib/m3-aadaf771.js +0 -210
  63. package/lib/markdown-9b448c46.js +0 -202
  64. package/lib/mips-161e49ce.js +0 -194
  65. package/lib/msdax-f65cb1e6.js +0 -377
  66. package/lib/mysql-24549dd1.js +0 -875
  67. package/lib/objective-c-e129a5ca.js +0 -188
  68. package/lib/pascal-4ccdf5ce.js +0 -245
  69. package/lib/pascaligo-a9603dcd.js +0 -158
  70. package/lib/perl-ba1fb97a.js +0 -599
  71. package/lib/pgsql-89978310.js +0 -843
  72. package/lib/php-987b9d87.js +0 -471
  73. package/lib/pla-96c2695d.js +0 -131
  74. package/lib/postiats-7b52ebac.js +0 -544
  75. package/lib/powerquery-8954ec26.js +0 -890
  76. package/lib/powershell-f00d0274.js +0 -233
  77. package/lib/protobuf-3eb85f80.js +0 -422
  78. package/lib/pug-6fab415a.js +0 -393
  79. package/lib/python-319c4cbb.js +0 -262
  80. package/lib/qsharp-4792f872.js +0 -282
  81. package/lib/r-630f5d6b.js +0 -245
  82. package/lib/razor-9a8bae51.js +0 -515
  83. package/lib/redis-276b8288.js +0 -298
  84. package/lib/redshift-520a7359.js +0 -806
  85. package/lib/restructuredtext-4676a3fc.js +0 -162
  86. package/lib/ruby-764137cd.js +0 -444
  87. package/lib/rust-97f8f6e1.js +0 -337
  88. package/lib/sb-8c22f14c.js +0 -110
  89. package/lib/scala-c68c650c.js +0 -353
  90. package/lib/scheme-e6a52cb0.js +0 -114
  91. package/lib/scss-45104c77.js +0 -244
  92. package/lib/shell-09452d42.js +0 -224
  93. package/lib/solidity-d4979008.js +0 -1351
  94. package/lib/sophia-21995caf.js +0 -190
  95. package/lib/sparql-5088743c.js +0 -193
  96. package/lib/sql-63ec8e76.js +0 -818
  97. package/lib/st-fa9ab362.js +0 -414
  98. package/lib/swift-abdf1835.js +0 -315
  99. package/lib/systemverilog-a4f858ed.js +0 -556
  100. package/lib/tcl-8adf937f.js +0 -232
  101. package/lib/tsMode-7111578e.js +0 -792
  102. package/lib/twig-404eb73e.js +0 -323
  103. package/lib/typescript-0c5e909b.js +0 -330
  104. package/lib/vb-e21e8153.js +0 -364
  105. package/lib/xml-acd745c7.js +0 -98
  106. package/lib/yaml-c114fa81.js +0 -187
@@ -1,364 +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 = {
8
- comments: {
9
- lineComment: "'",
10
- blockComment: ["/*", "*/"]
11
- },
12
- brackets: [
13
- ["{", "}"],
14
- ["[", "]"],
15
- ["(", ")"],
16
- ["<", ">"],
17
- ["addhandler", "end addhandler"],
18
- ["class", "end class"],
19
- ["enum", "end enum"],
20
- ["event", "end event"],
21
- ["function", "end function"],
22
- ["get", "end get"],
23
- ["if", "end if"],
24
- ["interface", "end interface"],
25
- ["module", "end module"],
26
- ["namespace", "end namespace"],
27
- ["operator", "end operator"],
28
- ["property", "end property"],
29
- ["raiseevent", "end raiseevent"],
30
- ["removehandler", "end removehandler"],
31
- ["select", "end select"],
32
- ["set", "end set"],
33
- ["structure", "end structure"],
34
- ["sub", "end sub"],
35
- ["synclock", "end synclock"],
36
- ["try", "end try"],
37
- ["while", "end while"],
38
- ["with", "end with"],
39
- ["using", "end using"],
40
- ["do", "loop"],
41
- ["for", "next"]
42
- ],
43
- autoClosingPairs: [
44
- { open: "{", close: "}", notIn: ["string", "comment"] },
45
- { open: "[", close: "]", notIn: ["string", "comment"] },
46
- { open: "(", close: ")", notIn: ["string", "comment"] },
47
- { open: '"', close: '"', notIn: ["string", "comment"] },
48
- { open: "<", close: ">", notIn: ["string", "comment"] }
49
- ],
50
- folding: {
51
- markers: {
52
- start: new RegExp("^\\s*#Region\\b"),
53
- end: new RegExp("^\\s*#End Region\\b")
54
- }
55
- }
56
- }, n = {
57
- defaultToken: "",
58
- tokenPostfix: ".vb",
59
- ignoreCase: !0,
60
- brackets: [
61
- { token: "delimiter.bracket", open: "{", close: "}" },
62
- { token: "delimiter.array", open: "[", close: "]" },
63
- { token: "delimiter.parenthesis", open: "(", close: ")" },
64
- { token: "delimiter.angle", open: "<", close: ">" },
65
- {
66
- token: "keyword.tag-addhandler",
67
- open: "addhandler",
68
- close: "end addhandler"
69
- },
70
- { token: "keyword.tag-class", open: "class", close: "end class" },
71
- { token: "keyword.tag-enum", open: "enum", close: "end enum" },
72
- { token: "keyword.tag-event", open: "event", close: "end event" },
73
- {
74
- token: "keyword.tag-function",
75
- open: "function",
76
- close: "end function"
77
- },
78
- { token: "keyword.tag-get", open: "get", close: "end get" },
79
- { token: "keyword.tag-if", open: "if", close: "end if" },
80
- {
81
- token: "keyword.tag-interface",
82
- open: "interface",
83
- close: "end interface"
84
- },
85
- { token: "keyword.tag-module", open: "module", close: "end module" },
86
- {
87
- token: "keyword.tag-namespace",
88
- open: "namespace",
89
- close: "end namespace"
90
- },
91
- {
92
- token: "keyword.tag-operator",
93
- open: "operator",
94
- close: "end operator"
95
- },
96
- {
97
- token: "keyword.tag-property",
98
- open: "property",
99
- close: "end property"
100
- },
101
- {
102
- token: "keyword.tag-raiseevent",
103
- open: "raiseevent",
104
- close: "end raiseevent"
105
- },
106
- {
107
- token: "keyword.tag-removehandler",
108
- open: "removehandler",
109
- close: "end removehandler"
110
- },
111
- { token: "keyword.tag-select", open: "select", close: "end select" },
112
- { token: "keyword.tag-set", open: "set", close: "end set" },
113
- {
114
- token: "keyword.tag-structure",
115
- open: "structure",
116
- close: "end structure"
117
- },
118
- { token: "keyword.tag-sub", open: "sub", close: "end sub" },
119
- {
120
- token: "keyword.tag-synclock",
121
- open: "synclock",
122
- close: "end synclock"
123
- },
124
- { token: "keyword.tag-try", open: "try", close: "end try" },
125
- { token: "keyword.tag-while", open: "while", close: "end while" },
126
- { token: "keyword.tag-with", open: "with", close: "end with" },
127
- { token: "keyword.tag-using", open: "using", close: "end using" },
128
- { token: "keyword.tag-do", open: "do", close: "loop" },
129
- { token: "keyword.tag-for", open: "for", close: "next" }
130
- ],
131
- keywords: [
132
- "AddHandler",
133
- "AddressOf",
134
- "Alias",
135
- "And",
136
- "AndAlso",
137
- "As",
138
- "Async",
139
- "Boolean",
140
- "ByRef",
141
- "Byte",
142
- "ByVal",
143
- "Call",
144
- "Case",
145
- "Catch",
146
- "CBool",
147
- "CByte",
148
- "CChar",
149
- "CDate",
150
- "CDbl",
151
- "CDec",
152
- "Char",
153
- "CInt",
154
- "Class",
155
- "CLng",
156
- "CObj",
157
- "Const",
158
- "Continue",
159
- "CSByte",
160
- "CShort",
161
- "CSng",
162
- "CStr",
163
- "CType",
164
- "CUInt",
165
- "CULng",
166
- "CUShort",
167
- "Date",
168
- "Decimal",
169
- "Declare",
170
- "Default",
171
- "Delegate",
172
- "Dim",
173
- "DirectCast",
174
- "Do",
175
- "Double",
176
- "Each",
177
- "Else",
178
- "ElseIf",
179
- "End",
180
- "EndIf",
181
- "Enum",
182
- "Erase",
183
- "Error",
184
- "Event",
185
- "Exit",
186
- "False",
187
- "Finally",
188
- "For",
189
- "Friend",
190
- "Function",
191
- "Get",
192
- "GetType",
193
- "GetXMLNamespace",
194
- "Global",
195
- "GoSub",
196
- "GoTo",
197
- "Handles",
198
- "If",
199
- "Implements",
200
- "Imports",
201
- "In",
202
- "Inherits",
203
- "Integer",
204
- "Interface",
205
- "Is",
206
- "IsNot",
207
- "Let",
208
- "Lib",
209
- "Like",
210
- "Long",
211
- "Loop",
212
- "Me",
213
- "Mod",
214
- "Module",
215
- "MustInherit",
216
- "MustOverride",
217
- "MyBase",
218
- "MyClass",
219
- "NameOf",
220
- "Namespace",
221
- "Narrowing",
222
- "New",
223
- "Next",
224
- "Not",
225
- "Nothing",
226
- "NotInheritable",
227
- "NotOverridable",
228
- "Object",
229
- "Of",
230
- "On",
231
- "Operator",
232
- "Option",
233
- "Optional",
234
- "Or",
235
- "OrElse",
236
- "Out",
237
- "Overloads",
238
- "Overridable",
239
- "Overrides",
240
- "ParamArray",
241
- "Partial",
242
- "Private",
243
- "Property",
244
- "Protected",
245
- "Public",
246
- "RaiseEvent",
247
- "ReadOnly",
248
- "ReDim",
249
- "RemoveHandler",
250
- "Resume",
251
- "Return",
252
- "SByte",
253
- "Select",
254
- "Set",
255
- "Shadows",
256
- "Shared",
257
- "Short",
258
- "Single",
259
- "Static",
260
- "Step",
261
- "Stop",
262
- "String",
263
- "Structure",
264
- "Sub",
265
- "SyncLock",
266
- "Then",
267
- "Throw",
268
- "To",
269
- "True",
270
- "Try",
271
- "TryCast",
272
- "TypeOf",
273
- "UInteger",
274
- "ULong",
275
- "UShort",
276
- "Using",
277
- "Variant",
278
- "Wend",
279
- "When",
280
- "While",
281
- "Widening",
282
- "With",
283
- "WithEvents",
284
- "WriteOnly",
285
- "Xor"
286
- ],
287
- tagwords: [
288
- "If",
289
- "Sub",
290
- "Select",
291
- "Try",
292
- "Class",
293
- "Enum",
294
- "Function",
295
- "Get",
296
- "Interface",
297
- "Module",
298
- "Namespace",
299
- "Operator",
300
- "Set",
301
- "Structure",
302
- "Using",
303
- "While",
304
- "With",
305
- "Do",
306
- "Loop",
307
- "For",
308
- "Next",
309
- "Property",
310
- "Continue",
311
- "AddHandler",
312
- "RemoveHandler",
313
- "Event",
314
- "RaiseEvent",
315
- "SyncLock"
316
- ],
317
- symbols: /[=><!~?;\.,:&|+\-*\/\^%]+/,
318
- integersuffix: /U?[DI%L&S@]?/,
319
- floatsuffix: /[R#F!]?/,
320
- tokenizer: {
321
- root: [
322
- { include: "@whitespace" },
323
- [/next(?!\w)/, { token: "keyword.tag-for" }],
324
- [/loop(?!\w)/, { token: "keyword.tag-do" }],
325
- [
326
- /end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,
327
- { token: "keyword.tag-$1" }
328
- ],
329
- [
330
- /[a-zA-Z_]\w*/,
331
- {
332
- cases: {
333
- "@tagwords": { token: "keyword.tag-$0" },
334
- "@keywords": { token: "keyword.$0" },
335
- "@default": "identifier"
336
- }
337
- }
338
- ],
339
- [/^\s*#\w+/, "keyword"],
340
- [/\d*\d+e([\-+]?\d+)?(@floatsuffix)/, "number.float"],
341
- [/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/, "number.float"],
342
- [/&H[0-9a-f]+(@integersuffix)/, "number.hex"],
343
- [/&0[0-7]+(@integersuffix)/, "number.octal"],
344
- [/\d+(@integersuffix)/, "number"],
345
- [/#.*#/, "number"],
346
- [/[{}()\[\]]/, "@brackets"],
347
- [/@symbols/, "delimiter"],
348
- [/["\u201c\u201d]/, { token: "string.quote", next: "@string" }]
349
- ],
350
- whitespace: [
351
- [/[ \t\r\n]+/, ""],
352
- [/(\'|REM(?!\w)).*$/, "comment"]
353
- ],
354
- string: [
355
- [/[^"\u201c\u201d]+/, "string"],
356
- [/["\u201c\u201d]{2}/, "string.escape"],
357
- [/["\u201c\u201d]C?/, { token: "string.quote", next: "@pop" }]
358
- ]
359
- }
360
- };
361
- export {
362
- e as conf,
363
- n as language
364
- };
@@ -1,98 +0,0 @@
1
- import { m } from "./index-22ab90dc.js";
2
- import "vue";
3
- import "vue-router";
4
- import "element-plus";
5
- /*!-----------------------------------------------------------------------------
6
- * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
8
- * Released under the MIT license
9
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
10
- *-----------------------------------------------------------------------------*/
11
- var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, r = (t, e, o, i) => {
12
- if (e && typeof e == "object" || typeof e == "function")
13
- for (let n of p(e))
14
- !d.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = l(e, n)) || i.enumerable });
15
- return t;
16
- }, s = (t, e, o) => (r(t, e, "default"), o && r(o, e, "default")), a = {};
17
- s(a, m);
18
- var _ = {
19
- comments: {
20
- blockComment: ["<!--", "-->"]
21
- },
22
- brackets: [["<", ">"]],
23
- autoClosingPairs: [
24
- { open: "<", close: ">" },
25
- { open: "'", close: "'" },
26
- { open: '"', close: '"' }
27
- ],
28
- surroundingPairs: [
29
- { open: "<", close: ">" },
30
- { open: "'", close: "'" },
31
- { open: '"', close: '"' }
32
- ],
33
- onEnterRules: [
34
- {
35
- beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
36
- afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
37
- action: {
38
- indentAction: a.languages.IndentAction.IndentOutdent
39
- }
40
- },
41
- {
42
- beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
43
- action: { indentAction: a.languages.IndentAction.Indent }
44
- }
45
- ]
46
- }, x = {
47
- defaultToken: "",
48
- tokenPostfix: ".xml",
49
- ignoreCase: !0,
50
- qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/,
51
- tokenizer: {
52
- root: [
53
- [/[^<&]+/, ""],
54
- { include: "@whitespace" },
55
- [/(<)(@qualifiedName)/, [{ token: "delimiter" }, { token: "tag", next: "@tag" }]],
56
- [
57
- /(<\/)(@qualifiedName)(\s*)(>)/,
58
- [{ token: "delimiter" }, { token: "tag" }, "", { token: "delimiter" }]
59
- ],
60
- [/(<\?)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
61
- [/(<\!)(@qualifiedName)/, [{ token: "delimiter" }, { token: "metatag", next: "@tag" }]],
62
- [/<\!\[CDATA\[/, { token: "delimiter.cdata", next: "@cdata" }],
63
- [/&\w+;/, "string.escape"]
64
- ],
65
- cdata: [
66
- [/[^\]]+/, ""],
67
- [/\]\]>/, { token: "delimiter.cdata", next: "@pop" }],
68
- [/\]/, ""]
69
- ],
70
- tag: [
71
- [/[ \t\r\n]+/, ""],
72
- [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]],
73
- [
74
- /(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,
75
- ["attribute.name", "", "attribute.value"]
76
- ],
77
- [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]],
78
- [/@qualifiedName/, "attribute.name"],
79
- [/\?>/, { token: "delimiter", next: "@pop" }],
80
- [/(\/)(>)/, [{ token: "tag" }, { token: "delimiter", next: "@pop" }]],
81
- [/>/, { token: "delimiter", next: "@pop" }]
82
- ],
83
- whitespace: [
84
- [/[ \t\r\n]+/, ""],
85
- [/<!--/, { token: "comment", next: "@comment" }]
86
- ],
87
- comment: [
88
- [/[^<\-]+/, "comment.content"],
89
- [/-->/, { token: "comment", next: "@pop" }],
90
- [/<!--/, "comment.content.invalid"],
91
- [/[<\-]/, "comment.content"]
92
- ]
93
- }
94
- };
95
- export {
96
- _ as conf,
97
- x as language
98
- };
@@ -1,187 +0,0 @@
1
- import { m as i } from "./index-22ab90dc.js";
2
- import "vue";
3
- import "vue-router";
4
- import "element-plus";
5
- /*!-----------------------------------------------------------------------------
6
- * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
8
- * Released under the MIT license
9
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
10
- *-----------------------------------------------------------------------------*/
11
- var c = Object.defineProperty, u = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, a = (n, e, r, o) => {
12
- if (e && typeof e == "object" || typeof e == "function")
13
- for (let t of s(e))
14
- !d.call(n, t) && t !== r && c(n, t, { get: () => e[t], enumerable: !(o = u(e, t)) || o.enumerable });
15
- return n;
16
- }, m = (n, e, r) => (a(n, e, "default"), r && a(r, e, "default")), l = {};
17
- m(l, i);
18
- var w = {
19
- comments: {
20
- lineComment: "#"
21
- },
22
- brackets: [
23
- ["{", "}"],
24
- ["[", "]"],
25
- ["(", ")"]
26
- ],
27
- autoClosingPairs: [
28
- { open: "{", close: "}" },
29
- { open: "[", close: "]" },
30
- { open: "(", close: ")" },
31
- { open: '"', close: '"' },
32
- { open: "'", close: "'" }
33
- ],
34
- surroundingPairs: [
35
- { open: "{", close: "}" },
36
- { open: "[", close: "]" },
37
- { open: "(", close: ")" },
38
- { open: '"', close: '"' },
39
- { open: "'", close: "'" }
40
- ],
41
- folding: {
42
- offSide: !0
43
- },
44
- onEnterRules: [
45
- {
46
- beforeText: /:\s*$/,
47
- action: {
48
- indentAction: l.languages.IndentAction.Indent
49
- }
50
- }
51
- ]
52
- }, y = {
53
- tokenPostfix: ".yaml",
54
- brackets: [
55
- { token: "delimiter.bracket", open: "{", close: "}" },
56
- { token: "delimiter.square", open: "[", close: "]" }
57
- ],
58
- keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
59
- numberInteger: /(?:0|[+-]?[0-9]+)/,
60
- numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
61
- numberOctal: /0o[0-7]+/,
62
- numberHex: /0x[0-9a-fA-F]+/,
63
- numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
64
- numberNaN: /\.(?:nan|Nan|NAN)/,
65
- numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
66
- escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
67
- tokenizer: {
68
- root: [
69
- { include: "@whitespace" },
70
- { include: "@comment" },
71
- [/%[^ ]+.*$/, "meta.directive"],
72
- [/---/, "operators.directivesEnd"],
73
- [/\.{3}/, "operators.documentEnd"],
74
- [/[-?:](?= )/, "operators"],
75
- { include: "@anchor" },
76
- { include: "@tagHandle" },
77
- { include: "@flowCollections" },
78
- { include: "@blockStyle" },
79
- [/@numberInteger(?![ \t]*\S+)/, "number"],
80
- [/@numberFloat(?![ \t]*\S+)/, "number.float"],
81
- [/@numberOctal(?![ \t]*\S+)/, "number.octal"],
82
- [/@numberHex(?![ \t]*\S+)/, "number.hex"],
83
- [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
84
- [/@numberNaN(?![ \t]*\S+)/, "number.nan"],
85
- [/@numberDate(?![ \t]*\S+)/, "number.date"],
86
- [/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
87
- { include: "@flowScalars" },
88
- [
89
- /[^#]+/,
90
- {
91
- cases: {
92
- "@keywords": "keyword",
93
- "@default": "string"
94
- }
95
- }
96
- ]
97
- ],
98
- object: [
99
- { include: "@whitespace" },
100
- { include: "@comment" },
101
- [/\}/, "@brackets", "@pop"],
102
- [/,/, "delimiter.comma"],
103
- [/:(?= )/, "operators"],
104
- [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
105
- { include: "@flowCollections" },
106
- { include: "@flowScalars" },
107
- { include: "@tagHandle" },
108
- { include: "@anchor" },
109
- { include: "@flowNumber" },
110
- [
111
- /[^\},]+/,
112
- {
113
- cases: {
114
- "@keywords": "keyword",
115
- "@default": "string"
116
- }
117
- }
118
- ]
119
- ],
120
- array: [
121
- { include: "@whitespace" },
122
- { include: "@comment" },
123
- [/\]/, "@brackets", "@pop"],
124
- [/,/, "delimiter.comma"],
125
- { include: "@flowCollections" },
126
- { include: "@flowScalars" },
127
- { include: "@tagHandle" },
128
- { include: "@anchor" },
129
- { include: "@flowNumber" },
130
- [
131
- /[^\],]+/,
132
- {
133
- cases: {
134
- "@keywords": "keyword",
135
- "@default": "string"
136
- }
137
- }
138
- ]
139
- ],
140
- multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
141
- multiStringContinued: [
142
- [
143
- /^( *).+$/,
144
- {
145
- cases: {
146
- "$1==$S2": "string",
147
- "@default": { token: "@rematch", next: "@popall" }
148
- }
149
- }
150
- ]
151
- ],
152
- whitespace: [[/[ \t\r\n]+/, "white"]],
153
- comment: [[/#.*$/, "comment"]],
154
- flowCollections: [
155
- [/\[/, "@brackets", "@array"],
156
- [/\{/, "@brackets", "@object"]
157
- ],
158
- flowScalars: [
159
- [/"([^"\\]|\\.)*$/, "string.invalid"],
160
- [/'([^'\\]|\\.)*$/, "string.invalid"],
161
- [/'[^']*'/, "string"],
162
- [/"/, "string", "@doubleQuotedString"]
163
- ],
164
- doubleQuotedString: [
165
- [/[^\\"]+/, "string"],
166
- [/@escapes/, "string.escape"],
167
- [/\\./, "string.escape.invalid"],
168
- [/"/, "string", "@pop"]
169
- ],
170
- blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
171
- flowNumber: [
172
- [/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
173
- [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
174
- [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
175
- [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
176
- [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
177
- [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
178
- [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
179
- ],
180
- tagHandle: [[/\![^ ]*/, "tag"]],
181
- anchor: [[/[&*][^ ]+/, "namespace"]]
182
- }
183
- };
184
- export {
185
- w as conf,
186
- y as language
187
- };