@devtron-labs/devtron-fe-common-lib 0.0.64 → 0.0.65-beta-2

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 (138) hide show
  1. package/dist/Common/Constants.d.ts +1 -0
  2. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
  3. package/dist/Common/DraggableWrapper/types.d.ts +8 -1
  4. package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
  5. package/dist/Common/Hooks/useUrlFilters/types.d.ts +54 -1
  6. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +2 -14
  7. package/dist/Common/Types.d.ts +2 -1
  8. package/dist/Common/index.d.ts +0 -1
  9. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +5 -1
  10. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -0
  11. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +23 -0
  12. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +1 -1
  13. package/dist/Shared/Components/BulkSelection/constants.d.ts +1 -1
  14. package/dist/Shared/Components/BulkSelection/types.d.ts +3 -0
  15. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +3 -0
  16. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
  17. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
  18. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +6 -0
  19. package/dist/Shared/Components/FilterChips/index.d.ts +2 -0
  20. package/dist/Shared/Components/FilterChips/types.d.ts +37 -0
  21. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +3 -0
  22. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
  23. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +3 -0
  24. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +3 -0
  25. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +3 -0
  26. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
  27. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
  28. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +9 -0
  29. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +2 -0
  30. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +3 -0
  31. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
  32. package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
  33. package/dist/Shared/Components/ImageCard/types.d.ts +38 -0
  34. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +3 -0
  35. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
  36. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +22 -0
  37. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +3 -0
  38. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
  39. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
  40. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +3 -0
  41. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  42. package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
  43. package/dist/Shared/Components/Vulnerabilities/service.d.ts +28 -0
  44. package/dist/Shared/Components/Vulnerabilities/types.d.ts +9 -0
  45. package/dist/Shared/Components/index.d.ts +6 -0
  46. package/dist/Shared/constants.d.ts +19 -0
  47. package/dist/Shared/index.d.ts +2 -0
  48. package/dist/Shared/types.d.ts +23 -0
  49. package/dist/assets/index.css +1 -1
  50. package/dist/index.js +23868 -215
  51. package/package.json +1 -1
  52. package/dist/abap-9f67f57a.js +0 -1314
  53. package/dist/apex-ff62e532.js +0 -315
  54. package/dist/assets/editor.worker-d26000ef.js +0 -9
  55. package/dist/assets/json.worker-f23a4654.js +0 -40
  56. package/dist/assets/yaml.worker-35ea3f9a.js +0 -467
  57. package/dist/azcli-31e64a7f.js +0 -74
  58. package/dist/bat-0ffe897e.js +0 -95
  59. package/dist/bicep-3414a2b1.js +0 -108
  60. package/dist/cameligo-df1f3f25.js +0 -168
  61. package/dist/clojure-65b0f010.js +0 -754
  62. package/dist/coffee-437f0fba.js +0 -228
  63. package/dist/cpp-66843dd5.js +0 -390
  64. package/dist/csharp-621d9a49.js +0 -320
  65. package/dist/csp-de0d5244.js +0 -57
  66. package/dist/css-7cd5ed4c.js +0 -186
  67. package/dist/cssMode-0eb181b8.js +0 -1446
  68. package/dist/cypher-70ad96fe.js +0 -262
  69. package/dist/dart-33ae3739.js +0 -270
  70. package/dist/dockerfile-f2274a50.js +0 -132
  71. package/dist/ecl-3b8294a3.js +0 -454
  72. package/dist/elixir-b9dcc73a.js +0 -489
  73. package/dist/flow9-bdde8316.js +0 -141
  74. package/dist/freemarker2-4361569f.js +0 -643
  75. package/dist/fsharp-eac2e449.js +0 -210
  76. package/dist/go-d12ed8d4.js +0 -208
  77. package/dist/graphql-c7356b69.js +0 -141
  78. package/dist/handlebars-babdfc67.js +0 -391
  79. package/dist/hcl-e883a0d4.js +0 -177
  80. package/dist/html-23b49eab.js +0 -281
  81. package/dist/htmlMode-f37a1616.js +0 -1456
  82. package/dist/index-3a430320.js +0 -127405
  83. package/dist/ini-425ab711.js +0 -68
  84. package/dist/java-2bc0fd68.js +0 -221
  85. package/dist/javascript-3597fa14.js +0 -75
  86. package/dist/jsonMode-b97d1b5f.js +0 -1867
  87. package/dist/julia-1c932615.js +0 -496
  88. package/dist/kotlin-1ab839c8.js +0 -245
  89. package/dist/less-6fe856f5.js +0 -168
  90. package/dist/lexon-4955ac52.js +0 -151
  91. package/dist/liquid-9778cbb4.js +0 -238
  92. package/dist/lua-3cca0047.js +0 -157
  93. package/dist/m3-132e9cb6.js +0 -210
  94. package/dist/markdown-ea59a0c1.js +0 -202
  95. package/dist/mips-19811f4b.js +0 -194
  96. package/dist/msdax-69954a10.js +0 -377
  97. package/dist/mysql-82088e5d.js +0 -876
  98. package/dist/objective-c-1976eccc.js +0 -188
  99. package/dist/pascal-8ef177cb.js +0 -245
  100. package/dist/pascaligo-bc517b9e.js +0 -158
  101. package/dist/perl-8b93582c.js +0 -599
  102. package/dist/pgsql-00c11a6d.js +0 -847
  103. package/dist/php-4c8c276f.js +0 -471
  104. package/dist/pla-e9b4ffb1.js +0 -131
  105. package/dist/postiats-2071af8c.js +0 -544
  106. package/dist/powerquery-8e388ceb.js +0 -890
  107. package/dist/powershell-e35db398.js +0 -233
  108. package/dist/protobuf-a24b9176.js +0 -422
  109. package/dist/pug-2c94d9b8.js +0 -393
  110. package/dist/python-e4dba3c0.js +0 -259
  111. package/dist/qsharp-d730d7fe.js +0 -282
  112. package/dist/r-be193556.js +0 -245
  113. package/dist/razor-242f0a8f.js +0 -512
  114. package/dist/redis-9690c6ac.js +0 -298
  115. package/dist/redshift-6bdcdeaa.js +0 -806
  116. package/dist/restructuredtext-a08c1d20.js +0 -162
  117. package/dist/ruby-2247692b.js +0 -444
  118. package/dist/rust-1dffb4d5.js +0 -337
  119. package/dist/sb-136598e9.js +0 -110
  120. package/dist/scala-b1100fed.js +0 -353
  121. package/dist/scheme-038c8094.js +0 -114
  122. package/dist/scss-700d1b52.js +0 -244
  123. package/dist/shell-86c16e0f.js +0 -224
  124. package/dist/solidity-c05fdf3c.js +0 -1351
  125. package/dist/sophia-cd645d71.js +0 -190
  126. package/dist/sparql-01d9ec9c.js +0 -193
  127. package/dist/sql-4c33df41.js +0 -818
  128. package/dist/st-52cf1408.js +0 -414
  129. package/dist/swift-13c792ba.js +0 -315
  130. package/dist/systemverilog-0bd8b730.js +0 -556
  131. package/dist/tcl-463d7c75.js +0 -232
  132. package/dist/tsMode-bf606946.js +0 -811
  133. package/dist/twig-0d98f5ec.js +0 -323
  134. package/dist/typescript-9ed04bdd.js +0 -328
  135. package/dist/vb-3a2b0a51.js +0 -364
  136. package/dist/wgsl-b2ddb3e4.js +0 -420
  137. package/dist/xml-825eaa31.js +0 -95
  138. package/dist/yaml-c9fb7842.js +0 -184
@@ -1,489 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
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
- surroundingPairs: [
17
- { open: "{", close: "}" },
18
- { open: "[", close: "]" },
19
- { open: "(", close: ")" },
20
- { open: "'", close: "'" },
21
- { open: '"', close: '"' }
22
- ],
23
- autoClosingPairs: [
24
- { open: "'", close: "'", notIn: ["string", "comment"] },
25
- { open: '"', close: '"', notIn: ["comment"] },
26
- { open: '"""', close: '"""' },
27
- { open: "`", close: "`", notIn: ["string", "comment"] },
28
- { open: "(", close: ")" },
29
- { open: "{", close: "}" },
30
- { open: "[", close: "]" },
31
- { open: "<<", close: ">>" }
32
- ],
33
- indentationRules: {
34
- increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
35
- decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
36
- }
37
- }, t = {
38
- defaultToken: "source",
39
- tokenPostfix: ".elixir",
40
- brackets: [
41
- { open: "[", close: "]", token: "delimiter.square" },
42
- { open: "(", close: ")", token: "delimiter.parenthesis" },
43
- { open: "{", close: "}", token: "delimiter.curly" },
44
- { open: "<<", close: ">>", token: "delimiter.angle.special" }
45
- ],
46
- declarationKeywords: [
47
- "def",
48
- "defp",
49
- "defn",
50
- "defnp",
51
- "defguard",
52
- "defguardp",
53
- "defmacro",
54
- "defmacrop",
55
- "defdelegate",
56
- "defcallback",
57
- "defmacrocallback",
58
- "defmodule",
59
- "defprotocol",
60
- "defexception",
61
- "defimpl",
62
- "defstruct"
63
- ],
64
- operatorKeywords: ["and", "in", "not", "or", "when"],
65
- namespaceKeywords: ["alias", "import", "require", "use"],
66
- otherKeywords: [
67
- "after",
68
- "case",
69
- "catch",
70
- "cond",
71
- "do",
72
- "else",
73
- "end",
74
- "fn",
75
- "for",
76
- "if",
77
- "quote",
78
- "raise",
79
- "receive",
80
- "rescue",
81
- "super",
82
- "throw",
83
- "try",
84
- "unless",
85
- "unquote_splicing",
86
- "unquote",
87
- "with"
88
- ],
89
- constants: ["true", "false", "nil"],
90
- nameBuiltin: ["__MODULE__", "__DIR__", "__ENV__", "__CALLER__", "__STACKTRACE__"],
91
- operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
92
- variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
93
- atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
94
- specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
95
- aliasPart: /[A-Z][a-zA-Z0-9_]*/,
96
- moduleName: /@aliasPart(?:\.@aliasPart)*/,
97
- sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
98
- sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
99
- sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
100
- sigilModifiers: /[a-zA-Z0-9]*/,
101
- decimal: /\d(?:_?\d)*/,
102
- hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
103
- octal: /[0-7](_?[0-7])*/,
104
- binary: /[01](_?[01])*/,
105
- escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
106
- tokenizer: {
107
- root: [
108
- { include: "@whitespace" },
109
- { include: "@comments" },
110
- { include: "@keywordsShorthand" },
111
- { include: "@numbers" },
112
- { include: "@identifiers" },
113
- { include: "@strings" },
114
- { include: "@atoms" },
115
- { include: "@sigils" },
116
- { include: "@attributes" },
117
- { include: "@symbols" }
118
- ],
119
- whitespace: [[/\s+/, "white"]],
120
- comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
121
- keywordsShorthand: [
122
- [/(@atomName)(:)(\s+)/, ["constant", "constant.punctuation", "white"]],
123
- [
124
- /"(?=([^"]|#\{.*?\}|\\")*":)/,
125
- { token: "constant.delimiter", next: "@doubleQuotedStringKeyword" }
126
- ],
127
- [
128
- /'(?=([^']|#\{.*?\}|\\')*':)/,
129
- { token: "constant.delimiter", next: "@singleQuotedStringKeyword" }
130
- ]
131
- ],
132
- doubleQuotedStringKeyword: [
133
- [/":/, { token: "constant.delimiter", next: "@pop" }],
134
- { include: "@stringConstantContentInterpol" }
135
- ],
136
- singleQuotedStringKeyword: [
137
- [/':/, { token: "constant.delimiter", next: "@pop" }],
138
- { include: "@stringConstantContentInterpol" }
139
- ],
140
- numbers: [
141
- [/0b@binary/, "number.binary"],
142
- [/0o@octal/, "number.octal"],
143
- [/0x@hex/, "number.hex"],
144
- [/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
145
- [/@decimal/, "number"]
146
- ],
147
- identifiers: [
148
- [
149
- /\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
150
- [
151
- "keyword.declaration",
152
- "white",
153
- {
154
- cases: {
155
- unquote: "keyword",
156
- "@default": "function"
157
- }
158
- }
159
- ]
160
- ],
161
- [
162
- /(@variableName)(?=\s*\.?\s*\()/,
163
- {
164
- cases: {
165
- "@declarationKeywords": "keyword.declaration",
166
- "@namespaceKeywords": "keyword",
167
- "@otherKeywords": "keyword",
168
- "@default": "function.call"
169
- }
170
- }
171
- ],
172
- [
173
- /(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
174
- ["type.identifier", "white", "operator", "white", "function.call"]
175
- ],
176
- [
177
- /(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
178
- ["constant.punctuation", "constant", "white", "operator", "white", "function.call"]
179
- ],
180
- [
181
- /(\|>)(\s*)(@variableName)/,
182
- [
183
- "operator",
184
- "white",
185
- {
186
- cases: {
187
- "@otherKeywords": "keyword",
188
- "@default": "function.call"
189
- }
190
- }
191
- ]
192
- ],
193
- [
194
- /(&)(\s*)(@variableName)/,
195
- ["operator", "white", "function.call"]
196
- ],
197
- [
198
- /@variableName/,
199
- {
200
- cases: {
201
- "@declarationKeywords": "keyword.declaration",
202
- "@operatorKeywords": "keyword.operator",
203
- "@namespaceKeywords": "keyword",
204
- "@otherKeywords": "keyword",
205
- "@constants": "constant.language",
206
- "@nameBuiltin": "variable.language",
207
- "_.*": "comment.unused",
208
- "@default": "identifier"
209
- }
210
- }
211
- ],
212
- [/@moduleName/, "type.identifier"]
213
- ],
214
- strings: [
215
- [/"""/, { token: "string.delimiter", next: "@doubleQuotedHeredoc" }],
216
- [/'''/, { token: "string.delimiter", next: "@singleQuotedHeredoc" }],
217
- [/"/, { token: "string.delimiter", next: "@doubleQuotedString" }],
218
- [/'/, { token: "string.delimiter", next: "@singleQuotedString" }]
219
- ],
220
- doubleQuotedHeredoc: [
221
- [/"""/, { token: "string.delimiter", next: "@pop" }],
222
- { include: "@stringContentInterpol" }
223
- ],
224
- singleQuotedHeredoc: [
225
- [/'''/, { token: "string.delimiter", next: "@pop" }],
226
- { include: "@stringContentInterpol" }
227
- ],
228
- doubleQuotedString: [
229
- [/"/, { token: "string.delimiter", next: "@pop" }],
230
- { include: "@stringContentInterpol" }
231
- ],
232
- singleQuotedString: [
233
- [/'/, { token: "string.delimiter", next: "@pop" }],
234
- { include: "@stringContentInterpol" }
235
- ],
236
- atoms: [
237
- [/(:)(@atomName)/, ["constant.punctuation", "constant"]],
238
- [/:"/, { token: "constant.delimiter", next: "@doubleQuotedStringAtom" }],
239
- [/:'/, { token: "constant.delimiter", next: "@singleQuotedStringAtom" }]
240
- ],
241
- doubleQuotedStringAtom: [
242
- [/"/, { token: "constant.delimiter", next: "@pop" }],
243
- { include: "@stringConstantContentInterpol" }
244
- ],
245
- singleQuotedStringAtom: [
246
- [/'/, { token: "constant.delimiter", next: "@pop" }],
247
- { include: "@stringConstantContentInterpol" }
248
- ],
249
- sigils: [
250
- [/~[a-z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.interpol" }],
251
- [/~[A-Z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.noInterpol" }]
252
- ],
253
- sigil: [
254
- [/~([a-zA-Z])\{/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.{.}" }],
255
- [/~([a-zA-Z])\[/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.[.]" }],
256
- [/~([a-zA-Z])\(/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.(.)" }],
257
- [/~([a-zA-Z])\</, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.<.>" }],
258
- [
259
- /~([a-zA-Z])(@sigilSymmetricDelimiter)/,
260
- { token: "@rematch", switchTo: "@sigilStart.$S2.$1.$2.$2" }
261
- ]
262
- ],
263
- "sigilStart.interpol.s": [
264
- [
265
- /~s@sigilStartDelimiter/,
266
- {
267
- token: "string.delimiter",
268
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
269
- }
270
- ]
271
- ],
272
- "sigilContinue.interpol.s": [
273
- [
274
- /(@sigilEndDelimiter)@sigilModifiers/,
275
- {
276
- cases: {
277
- "$1==$S5": { token: "string.delimiter", next: "@pop" },
278
- "@default": "string"
279
- }
280
- }
281
- ],
282
- { include: "@stringContentInterpol" }
283
- ],
284
- "sigilStart.noInterpol.S": [
285
- [
286
- /~S@sigilStartDelimiter/,
287
- {
288
- token: "string.delimiter",
289
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
290
- }
291
- ]
292
- ],
293
- "sigilContinue.noInterpol.S": [
294
- [/(^|[^\\])\\@sigilEndDelimiter/, "string"],
295
- [
296
- /(@sigilEndDelimiter)@sigilModifiers/,
297
- {
298
- cases: {
299
- "$1==$S5": { token: "string.delimiter", next: "@pop" },
300
- "@default": "string"
301
- }
302
- }
303
- ],
304
- { include: "@stringContent" }
305
- ],
306
- "sigilStart.interpol.r": [
307
- [
308
- /~r@sigilStartDelimiter/,
309
- {
310
- token: "regexp.delimiter",
311
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
312
- }
313
- ]
314
- ],
315
- "sigilContinue.interpol.r": [
316
- [
317
- /(@sigilEndDelimiter)@sigilModifiers/,
318
- {
319
- cases: {
320
- "$1==$S5": { token: "regexp.delimiter", next: "@pop" },
321
- "@default": "regexp"
322
- }
323
- }
324
- ],
325
- { include: "@regexpContentInterpol" }
326
- ],
327
- "sigilStart.noInterpol.R": [
328
- [
329
- /~R@sigilStartDelimiter/,
330
- {
331
- token: "regexp.delimiter",
332
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
333
- }
334
- ]
335
- ],
336
- "sigilContinue.noInterpol.R": [
337
- [/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
338
- [
339
- /(@sigilEndDelimiter)@sigilModifiers/,
340
- {
341
- cases: {
342
- "$1==$S5": { token: "regexp.delimiter", next: "@pop" },
343
- "@default": "regexp"
344
- }
345
- }
346
- ],
347
- { include: "@regexpContent" }
348
- ],
349
- "sigilStart.interpol": [
350
- [
351
- /~([a-zA-Z])@sigilStartDelimiter/,
352
- {
353
- token: "sigil.delimiter",
354
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
355
- }
356
- ]
357
- ],
358
- "sigilContinue.interpol": [
359
- [
360
- /(@sigilEndDelimiter)@sigilModifiers/,
361
- {
362
- cases: {
363
- "$1==$S5": { token: "sigil.delimiter", next: "@pop" },
364
- "@default": "sigil"
365
- }
366
- }
367
- ],
368
- { include: "@sigilContentInterpol" }
369
- ],
370
- "sigilStart.noInterpol": [
371
- [
372
- /~([a-zA-Z])@sigilStartDelimiter/,
373
- {
374
- token: "sigil.delimiter",
375
- switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
376
- }
377
- ]
378
- ],
379
- "sigilContinue.noInterpol": [
380
- [/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
381
- [
382
- /(@sigilEndDelimiter)@sigilModifiers/,
383
- {
384
- cases: {
385
- "$1==$S5": { token: "sigil.delimiter", next: "@pop" },
386
- "@default": "sigil"
387
- }
388
- }
389
- ],
390
- { include: "@sigilContent" }
391
- ],
392
- attributes: [
393
- [
394
- /\@(module|type)?doc (~[sS])?"""/,
395
- {
396
- token: "comment.block.documentation",
397
- next: "@doubleQuotedHeredocDocstring"
398
- }
399
- ],
400
- [
401
- /\@(module|type)?doc (~[sS])?'''/,
402
- {
403
- token: "comment.block.documentation",
404
- next: "@singleQuotedHeredocDocstring"
405
- }
406
- ],
407
- [
408
- /\@(module|type)?doc (~[sS])?"/,
409
- {
410
- token: "comment.block.documentation",
411
- next: "@doubleQuotedStringDocstring"
412
- }
413
- ],
414
- [
415
- /\@(module|type)?doc (~[sS])?'/,
416
- {
417
- token: "comment.block.documentation",
418
- next: "@singleQuotedStringDocstring"
419
- }
420
- ],
421
- [/\@(module|type)?doc false/, "comment.block.documentation"],
422
- [/\@(@variableName)/, "variable"]
423
- ],
424
- doubleQuotedHeredocDocstring: [
425
- [/"""/, { token: "comment.block.documentation", next: "@pop" }],
426
- { include: "@docstringContent" }
427
- ],
428
- singleQuotedHeredocDocstring: [
429
- [/'''/, { token: "comment.block.documentation", next: "@pop" }],
430
- { include: "@docstringContent" }
431
- ],
432
- doubleQuotedStringDocstring: [
433
- [/"/, { token: "comment.block.documentation", next: "@pop" }],
434
- { include: "@docstringContent" }
435
- ],
436
- singleQuotedStringDocstring: [
437
- [/'/, { token: "comment.block.documentation", next: "@pop" }],
438
- { include: "@docstringContent" }
439
- ],
440
- symbols: [
441
- [/\?(\\.|[^\\\s])/, "number.constant"],
442
- [/&\d+/, "operator"],
443
- [/<<<|>>>/, "operator"],
444
- [/[()\[\]\{\}]|<<|>>/, "@brackets"],
445
- [/\.\.\./, "identifier"],
446
- [/=>/, "punctuation"],
447
- [/@operator/, "operator"],
448
- [/[:;,.%]/, "punctuation"]
449
- ],
450
- stringContentInterpol: [
451
- { include: "@interpolation" },
452
- { include: "@escapeChar" },
453
- { include: "@stringContent" }
454
- ],
455
- stringContent: [[/./, "string"]],
456
- stringConstantContentInterpol: [
457
- { include: "@interpolation" },
458
- { include: "@escapeChar" },
459
- { include: "@stringConstantContent" }
460
- ],
461
- stringConstantContent: [[/./, "constant"]],
462
- regexpContentInterpol: [
463
- { include: "@interpolation" },
464
- { include: "@escapeChar" },
465
- { include: "@regexpContent" }
466
- ],
467
- regexpContent: [
468
- [/(\s)(#)(\s.*)$/, ["white", "comment.punctuation", "comment"]],
469
- [/./, "regexp"]
470
- ],
471
- sigilContentInterpol: [
472
- { include: "@interpolation" },
473
- { include: "@escapeChar" },
474
- { include: "@sigilContent" }
475
- ],
476
- sigilContent: [[/./, "sigil"]],
477
- docstringContent: [[/./, "comment.block.documentation"]],
478
- escapeChar: [[/@escape/, "constant.character.escape"]],
479
- interpolation: [[/#{/, { token: "delimiter.bracket.embed", next: "@interpolationContinue" }]],
480
- interpolationContinue: [
481
- [/}/, { token: "delimiter.bracket.embed", next: "@pop" }],
482
- { include: "@root" }
483
- ]
484
- }
485
- };
486
- export {
487
- e as conf,
488
- t as language
489
- };
@@ -1,141 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/
7
- var e = {
8
- comments: {
9
- blockComment: ["/*", "*/"],
10
- lineComment: "//"
11
- },
12
- brackets: [
13
- ["{", "}"],
14
- ["[", "]"],
15
- ["(", ")"]
16
- ],
17
- autoClosingPairs: [
18
- { open: "{", close: "}", notIn: ["string"] },
19
- { open: "[", close: "]", notIn: ["string"] },
20
- { open: "(", close: ")", notIn: ["string"] },
21
- { open: '"', close: '"', notIn: ["string"] },
22
- { open: "'", close: "'", notIn: ["string"] }
23
- ],
24
- surroundingPairs: [
25
- { open: "{", close: "}" },
26
- { open: "[", close: "]" },
27
- { open: "(", close: ")" },
28
- { open: '"', close: '"' },
29
- { open: "'", close: "'" },
30
- { open: "<", close: ">" }
31
- ]
32
- }, o = {
33
- defaultToken: "",
34
- tokenPostfix: ".flow",
35
- keywords: [
36
- "import",
37
- "require",
38
- "export",
39
- "forbid",
40
- "native",
41
- "if",
42
- "else",
43
- "cast",
44
- "unsafe",
45
- "switch",
46
- "default"
47
- ],
48
- types: [
49
- "io",
50
- "mutable",
51
- "bool",
52
- "int",
53
- "double",
54
- "string",
55
- "flow",
56
- "void",
57
- "ref",
58
- "true",
59
- "false",
60
- "with"
61
- ],
62
- operators: [
63
- "=",
64
- ">",
65
- "<",
66
- "<=",
67
- ">=",
68
- "==",
69
- "!",
70
- "!=",
71
- ":=",
72
- "::=",
73
- "&&",
74
- "||",
75
- "+",
76
- "-",
77
- "*",
78
- "/",
79
- "@",
80
- "&",
81
- "%",
82
- ":",
83
- "->",
84
- "\\",
85
- "$",
86
- "??",
87
- "^"
88
- ],
89
- symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
90
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
91
- tokenizer: {
92
- root: [
93
- [
94
- /[a-zA-Z_]\w*/,
95
- {
96
- cases: {
97
- "@keywords": "keyword",
98
- "@types": "type",
99
- "@default": "identifier"
100
- }
101
- }
102
- ],
103
- { include: "@whitespace" },
104
- [/[{}()\[\]]/, "delimiter"],
105
- [/[<>](?!@symbols)/, "delimiter"],
106
- [
107
- /@symbols/,
108
- {
109
- cases: {
110
- "@operators": "delimiter",
111
- "@default": ""
112
- }
113
- }
114
- ],
115
- [/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
116
- [/[;,.]/, "delimiter"],
117
- [/"([^"\\]|\\.)*$/, "string.invalid"],
118
- [/"/, "string", "@string"]
119
- ],
120
- whitespace: [
121
- [/[ \t\r\n]+/, ""],
122
- [/\/\*/, "comment", "@comment"],
123
- [/\/\/.*$/, "comment"]
124
- ],
125
- comment: [
126
- [/[^\/*]+/, "comment"],
127
- [/\*\//, "comment", "@pop"],
128
- [/[\/*]/, "comment"]
129
- ],
130
- string: [
131
- [/[^\\"]+/, "string"],
132
- [/@escapes/, "string.escape"],
133
- [/\\./, "string.escape.invalid"],
134
- [/"/, "string", "@pop"]
135
- ]
136
- }
137
- };
138
- export {
139
- e as conf,
140
- o as language
141
- };