monaco-editor11 1.2.1 → 1.2.4

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 (197) hide show
  1. package/dist/assets/editor.worker-iXcRX1Tq.js +26 -0
  2. package/dist/index.d.ts +2 -3
  3. package/dist/monaco-editor11.es.js +55 -0
  4. package/dist/monaco-editor11.umd.js +1 -0
  5. package/dist/views/Home.vue.d.ts +1 -1
  6. package/dist/worker/json.worker.js +0 -0
  7. package/package.json +9 -13
  8. package/dist/abap-BmV14C8H.js +0 -1
  9. package/dist/abap-CrvW7_qN.mjs +0 -1398
  10. package/dist/apex-BAOI8p1v.mjs +0 -327
  11. package/dist/apex-vQDebnNk.js +0 -1
  12. package/dist/azcli-BlCk_UqW.mjs +0 -68
  13. package/dist/azcli-C4hxwus7.js +0 -1
  14. package/dist/bat-DPoEelVx.mjs +0 -100
  15. package/dist/bat-DYHIOgJW.js +0 -1
  16. package/dist/bicep-BJDZ3U7c.js +0 -2
  17. package/dist/bicep-Cp1F394l.mjs +0 -102
  18. package/dist/cameligo-CWqtSlQs.mjs +0 -174
  19. package/dist/cameligo-l0J6eaPU.js +0 -1
  20. package/dist/clojure-BUv_1vEn.js +0 -1
  21. package/dist/clojure-CKBp32Gf.mjs +0 -761
  22. package/dist/coffee-CDo6vc-J.mjs +0 -232
  23. package/dist/coffee-Cw3141X6.js +0 -1
  24. package/dist/cpp-CHPWmTTa.js +0 -1
  25. package/dist/cpp-DokufPgf.mjs +0 -389
  26. package/dist/csharp-0ISFInBU.js +0 -1
  27. package/dist/csharp-BQi3szM0.mjs +0 -326
  28. package/dist/csp-BSGtCCZ-.mjs +0 -53
  29. package/dist/csp-Dcy9EUAZ.js +0 -1
  30. package/dist/css-DEPFDJfb.mjs +0 -187
  31. package/dist/css-UDjyEDNM.js +0 -3
  32. package/dist/css.worker.js +0 -66
  33. package/dist/cssMode-CZvh5Cxi.js +0 -1
  34. package/dist/cssMode-D5wFpBcJ.mjs +0 -141
  35. package/dist/cypher-BoSKj8sy.js +0 -1
  36. package/dist/cypher-DAb1vOxS.mjs +0 -263
  37. package/dist/dart-75fOVMIC.js +0 -1
  38. package/dist/dart-C8p4jewR.mjs +0 -281
  39. package/dist/dockerfile-CeTDdZJB.js +0 -1
  40. package/dist/dockerfile-DP0iLFPN.mjs +0 -130
  41. package/dist/ecl-BDQHA6fi.mjs +0 -456
  42. package/dist/ecl-BZ8GfbIS.js +0 -1
  43. package/dist/editor.worker.js +0 -1
  44. package/dist/editorWorkerHost-CXSl__Sw.mjs +0 -11917
  45. package/dist/editorWorkerHost-J3OLr02l.js +0 -33
  46. package/dist/elixir-D4II6kDM.mjs +0 -569
  47. package/dist/elixir-HwUoMs-6.js +0 -1
  48. package/dist/flow9-Co-egZvn.js +0 -1
  49. package/dist/flow9-StcnL-VB.mjs +0 -142
  50. package/dist/freemarker2-0KWO0y3D.mjs +0 -982
  51. package/dist/freemarker2-CWgJ4a-p.js +0 -3
  52. package/dist/fsharp-By4FMj_K.js +0 -1
  53. package/dist/fsharp-DdUVp3EN.mjs +0 -217
  54. package/dist/go-D0-3Iavh.js +0 -1
  55. package/dist/go-D1-I258M.mjs +0 -218
  56. package/dist/graphql-DWkL3f8U.mjs +0 -151
  57. package/dist/graphql-arXy5b1U.js +0 -1
  58. package/dist/handlebars-B3DRUYqI.js +0 -1
  59. package/dist/handlebars-CtTh3MzK.mjs +0 -412
  60. package/dist/hcl-DQpT3BXv.js +0 -1
  61. package/dist/hcl-D_0MNifv.mjs +0 -183
  62. package/dist/html-Bfagd5f8.mjs +0 -301
  63. package/dist/html-Cq6ODg2A.js +0 -1
  64. package/dist/htmlMode-BCWHN8H1.js +0 -1
  65. package/dist/htmlMode-Ca4o_48E.mjs +0 -152
  66. package/dist/index-BnVmN2qp.js +0 -875
  67. package/dist/index-CcXLAo11.js +0 -1
  68. package/dist/index-D7fx9aNv.mjs +0 -498
  69. package/dist/index-DnKFAZ-F.mjs +0 -117301
  70. package/dist/index.js +0 -1
  71. package/dist/ini-C4I2-MT7.mjs +0 -71
  72. package/dist/ini-CHrdBSR6.js +0 -1
  73. package/dist/initialize-7Tsg9DJ6.mjs +0 -44
  74. package/dist/initialize-8Cpp42Fp.js +0 -1
  75. package/dist/java-DkNlCtA8.js +0 -1
  76. package/dist/java-OBvaP_SS.mjs +0 -232
  77. package/dist/javascript-C_YSapv9.js +0 -1
  78. package/dist/javascript-D2KmymLa.mjs +0 -70
  79. package/dist/json.worker.js +0 -17
  80. package/dist/jsonMode-DaXUMuRa.js +0 -1
  81. package/dist/jsonMode-Dnqj4FWW.mjs +0 -306
  82. package/dist/julia-BmDH8Kkf.mjs +0 -511
  83. package/dist/julia-D2YHJdZy.js +0 -1
  84. package/dist/kotlin-BSyr2f_w.js +0 -1
  85. package/dist/kotlin-Dhu5AGOD.mjs +0 -252
  86. package/dist/less-C8csD237.js +0 -2
  87. package/dist/less-CzmjXREq.mjs +0 -162
  88. package/dist/lexon-CV2c4pN9.mjs +0 -157
  89. package/dist/lexon-Dg5XMXM-.js +0 -1
  90. package/dist/liquid-CQtA4TA-.mjs +0 -233
  91. package/dist/liquid-Dc6vO2KK.js +0 -1
  92. package/dist/lspLanguageFeatures-CeustN1U.js +0 -2
  93. package/dist/lspLanguageFeatures-DUzyYYsS.mjs +0 -534
  94. package/dist/lua-BOoO7Ej7.js +0 -1
  95. package/dist/lua-CFY5U8qF.mjs +0 -162
  96. package/dist/m3-BL_AnZVh.mjs +0 -210
  97. package/dist/m3-Bny7JARg.js +0 -1
  98. package/dist/main-B2xgQ6G2.mjs +0 -687
  99. package/dist/main-C27EQSK2.mjs +0 -947
  100. package/dist/main-DXJICgQq.js +0 -3
  101. package/dist/main-Dt1Bdcpc.js +0 -15
  102. package/dist/markdown-CWKQPXCv.mjs +0 -229
  103. package/dist/markdown-cseWCS9n.js +0 -1
  104. package/dist/mdx-C2nK3qTe.js +0 -1
  105. package/dist/mdx-cjfOdSKt.mjs +0 -158
  106. package/dist/mips-7JuqcyJ4.js +0 -1
  107. package/dist/mips-ButYmJ5E.mjs +0 -198
  108. package/dist/monaco-editor11.css +0 -1
  109. package/dist/msdax-BmYA5eV5.js +0 -1
  110. package/dist/msdax-C3cnXqDh.mjs +0 -375
  111. package/dist/mysql-CHTrPhJ_.js +0 -1
  112. package/dist/mysql-YlSHaf6G.mjs +0 -878
  113. package/dist/objective-c-CUdbM2R7.js +0 -1
  114. package/dist/objective-c-Dwnlproe.mjs +0 -183
  115. package/dist/pascal-CNC6uGuD.js +0 -1
  116. package/dist/pascal-UzGbSWEN.mjs +0 -251
  117. package/dist/pascaligo-BEZzSZnI.js +0 -1
  118. package/dist/pascaligo-CslTgu68.mjs +0 -164
  119. package/dist/perl-JOl0jAD9.js +0 -1
  120. package/dist/perl-oj6r_mgw.mjs +0 -626
  121. package/dist/pgsql-BlC3cJBr.js +0 -1
  122. package/dist/pgsql-DSBO0Mev.mjs +0 -851
  123. package/dist/php-6ijfJ2jK.js +0 -1
  124. package/dist/php-YzCD--7j.mjs +0 -500
  125. package/dist/pla-CmylB8vQ.mjs +0 -137
  126. package/dist/pla-DB8tU9Tm.js +0 -1
  127. package/dist/postiats-BMJJQsUH.js +0 -1
  128. package/dist/postiats-CLFW5gNY.mjs +0 -907
  129. package/dist/powerquery-CmOWUvlh.mjs +0 -890
  130. package/dist/powerquery-CoLfQ6__.js +0 -1
  131. package/dist/powershell-BA5owzqH.js +0 -1
  132. package/dist/powershell-fHQcmBLK.mjs +0 -239
  133. package/dist/protobuf-DUMRTG9C.js +0 -2
  134. package/dist/protobuf-p5BArb-9.mjs +0 -420
  135. package/dist/pug-D3HDBCR9.js +0 -1
  136. package/dist/pug-gVdUDvqf.mjs +0 -402
  137. package/dist/python-BaSW5leI.js +0 -1
  138. package/dist/python-DA6ByLCZ.mjs +0 -294
  139. package/dist/qsharp-DN7Y6XhL.js +0 -1
  140. package/dist/qsharp-DnrWSUlt.mjs +0 -301
  141. package/dist/r-Bc6rlFXl.js +0 -1
  142. package/dist/r-Cv309K2z.mjs +0 -243
  143. package/dist/razor-3z9XYGZf.mjs +0 -543
  144. package/dist/razor-nQE2Djhf.js +0 -1
  145. package/dist/redis-BVBmvApp.js +0 -1
  146. package/dist/redis-DTcS4wMj.mjs +0 -302
  147. package/dist/redshift-BdEMv0YI.js +0 -1
  148. package/dist/redshift-hLxZVESM.mjs +0 -809
  149. package/dist/restructuredtext-C898lK4f.mjs +0 -174
  150. package/dist/restructuredtext-Cwgkbiv3.js +0 -1
  151. package/dist/ruby-BPqQ0TOE.js +0 -1
  152. package/dist/ruby-CgKtnJIQ.mjs +0 -511
  153. package/dist/rust-DGojqpAN.js +0 -1
  154. package/dist/rust-bj8oxVnh.mjs +0 -343
  155. package/dist/sb-B572kJZe.js +0 -1
  156. package/dist/sb-DWynz26l.mjs +0 -115
  157. package/dist/scala-BL5z1UEd.mjs +0 -370
  158. package/dist/scala-CDQ1h1Nd.js +0 -1
  159. package/dist/scheme-CgaAfqMQ.js +0 -1
  160. package/dist/scheme-DUJsH6VU.mjs +0 -108
  161. package/dist/scss-CxjmhvaL.mjs +0 -262
  162. package/dist/scss-DZHIl239.js +0 -3
  163. package/dist/shell-D14Zs1dF.mjs +0 -221
  164. package/dist/shell-D5kOdfAA.js +0 -1
  165. package/dist/solidity-D6vCwnFo.js +0 -1
  166. package/dist/solidity-WyRm-BGK.mjs +0 -1367
  167. package/dist/sophia-BJdevZpo.js +0 -1
  168. package/dist/sophia-CKk-_Oa5.mjs +0 -199
  169. package/dist/sparql-DHtmINMZ.mjs +0 -201
  170. package/dist/sparql-v4dsLpAQ.js +0 -1
  171. package/dist/sql-Dqaj5JHC.mjs +0 -853
  172. package/dist/sql-RAt0uxGh.js +0 -1
  173. package/dist/st-Bj2IIaop.mjs +0 -416
  174. package/dist/st-CjwpLApO.js +0 -1
  175. package/dist/swift-BcIVfYEa.js +0 -3
  176. package/dist/swift-DwxP72iM.mjs +0 -312
  177. package/dist/systemverilog-CX2A8v2w.js +0 -1
  178. package/dist/systemverilog-D7wJfuql.mjs +0 -576
  179. package/dist/tcl-0ApMt-eC.mjs +0 -232
  180. package/dist/tcl-CCvdS1Ng.js +0 -1
  181. package/dist/ts.worker.js +0 -67706
  182. package/dist/tsMode-CieVaThB.js +0 -11
  183. package/dist/tsMode-pbVGEqHg.mjs +0 -946
  184. package/dist/twig-DxwbdmvQ.mjs +0 -392
  185. package/dist/twig-KWJe-gee.js +0 -1
  186. package/dist/typescript-CL7lZGgL.mjs +0 -336
  187. package/dist/typescript-D-fgoGBJ.js +0 -1
  188. package/dist/typespec-Fd-JwSuS.mjs +0 -117
  189. package/dist/typespec-gb5rMy4D.js +0 -1
  190. package/dist/vb-CxuyYE1I.mjs +0 -372
  191. package/dist/vb-D2rfixXK.js +0 -1
  192. package/dist/wgsl-DoEGc31J.mjs +0 -439
  193. package/dist/wgsl-Dpy8Oyoq.js +0 -298
  194. package/dist/xml-Dm8zU0Zq.mjs +0 -88
  195. package/dist/xml-luJ1w-__.js +0 -1
  196. package/dist/yaml-DDKFPb37.mjs +0 -199
  197. package/dist/yaml-DZkx0RTO.js +0 -1
@@ -1,326 +0,0 @@
1
- const e = {
2
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
3
- comments: {
4
- lineComment: "//",
5
- blockComment: ["/*", "*/"]
6
- },
7
- brackets: [
8
- ["{", "}"],
9
- ["[", "]"],
10
- ["(", ")"]
11
- ],
12
- autoClosingPairs: [
13
- { open: "{", close: "}" },
14
- { open: "[", close: "]" },
15
- { open: "(", close: ")" },
16
- { open: "'", close: "'", notIn: ["string", "comment"] },
17
- { open: '"', close: '"', notIn: ["string", "comment"] }
18
- ],
19
- surroundingPairs: [
20
- { open: "{", close: "}" },
21
- { open: "[", close: "]" },
22
- { open: "(", close: ")" },
23
- { open: "<", close: ">" },
24
- { open: "'", close: "'" },
25
- { open: '"', close: '"' }
26
- ],
27
- folding: {
28
- markers: {
29
- start: new RegExp("^\\s*#region\\b"),
30
- end: new RegExp("^\\s*#endregion\\b")
31
- }
32
- }
33
- }, t = {
34
- defaultToken: "",
35
- tokenPostfix: ".cs",
36
- brackets: [
37
- { open: "{", close: "}", token: "delimiter.curly" },
38
- { open: "[", close: "]", token: "delimiter.square" },
39
- { open: "(", close: ")", token: "delimiter.parenthesis" },
40
- { open: "<", close: ">", token: "delimiter.angle" }
41
- ],
42
- keywords: [
43
- "extern",
44
- "alias",
45
- "using",
46
- "bool",
47
- "decimal",
48
- "sbyte",
49
- "byte",
50
- "short",
51
- "ushort",
52
- "int",
53
- "uint",
54
- "long",
55
- "ulong",
56
- "char",
57
- "float",
58
- "double",
59
- "object",
60
- "dynamic",
61
- "string",
62
- "assembly",
63
- "is",
64
- "as",
65
- "ref",
66
- "out",
67
- "this",
68
- "base",
69
- "new",
70
- "typeof",
71
- "void",
72
- "checked",
73
- "unchecked",
74
- "default",
75
- "delegate",
76
- "var",
77
- "const",
78
- "if",
79
- "else",
80
- "switch",
81
- "case",
82
- "while",
83
- "do",
84
- "for",
85
- "foreach",
86
- "in",
87
- "break",
88
- "continue",
89
- "goto",
90
- "return",
91
- "throw",
92
- "try",
93
- "catch",
94
- "finally",
95
- "lock",
96
- "yield",
97
- "from",
98
- "let",
99
- "where",
100
- "join",
101
- "on",
102
- "equals",
103
- "into",
104
- "orderby",
105
- "ascending",
106
- "descending",
107
- "select",
108
- "group",
109
- "by",
110
- "namespace",
111
- "partial",
112
- "class",
113
- "field",
114
- "event",
115
- "method",
116
- "param",
117
- "public",
118
- "protected",
119
- "internal",
120
- "private",
121
- "abstract",
122
- "sealed",
123
- "static",
124
- "struct",
125
- "readonly",
126
- "volatile",
127
- "virtual",
128
- "override",
129
- "params",
130
- "get",
131
- "set",
132
- "add",
133
- "remove",
134
- "operator",
135
- "true",
136
- "false",
137
- "implicit",
138
- "explicit",
139
- "interface",
140
- "enum",
141
- "null",
142
- "async",
143
- "await",
144
- "fixed",
145
- "sizeof",
146
- "stackalloc",
147
- "unsafe",
148
- "nameof",
149
- "when"
150
- ],
151
- namespaceFollows: ["namespace", "using"],
152
- parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
153
- operators: [
154
- "=",
155
- "??",
156
- "||",
157
- "&&",
158
- "|",
159
- "^",
160
- "&",
161
- "==",
162
- "!=",
163
- "<=",
164
- ">=",
165
- "<<",
166
- "+",
167
- "-",
168
- "*",
169
- "/",
170
- "%",
171
- "!",
172
- "~",
173
- "++",
174
- "--",
175
- "+=",
176
- "-=",
177
- "*=",
178
- "/=",
179
- "%=",
180
- "&=",
181
- "|=",
182
- "^=",
183
- "<<=",
184
- ">>=",
185
- ">>",
186
- "=>"
187
- ],
188
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
189
- // escape sequences
190
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
191
- // The main tokenizer for our languages
192
- tokenizer: {
193
- root: [
194
- // identifiers and keywords
195
- [
196
- /\@?[a-zA-Z_]\w*/,
197
- {
198
- cases: {
199
- "@namespaceFollows": {
200
- token: "keyword.$0",
201
- next: "@namespace"
202
- },
203
- "@keywords": {
204
- token: "keyword.$0",
205
- next: "@qualified"
206
- },
207
- "@default": { token: "identifier", next: "@qualified" }
208
- }
209
- }
210
- ],
211
- // whitespace
212
- { include: "@whitespace" },
213
- // delimiters and operators
214
- [
215
- /}/,
216
- {
217
- cases: {
218
- "$S2==interpolatedstring": {
219
- token: "string.quote",
220
- next: "@pop"
221
- },
222
- "$S2==litinterpstring": {
223
- token: "string.quote",
224
- next: "@pop"
225
- },
226
- "@default": "@brackets"
227
- }
228
- }
229
- ],
230
- [/[{}()\[\]]/, "@brackets"],
231
- [/[<>](?!@symbols)/, "@brackets"],
232
- [
233
- /@symbols/,
234
- {
235
- cases: {
236
- "@operators": "delimiter",
237
- "@default": ""
238
- }
239
- }
240
- ],
241
- // numbers
242
- [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
243
- [/0[xX][0-9a-fA-F_]+/, "number.hex"],
244
- [/0[bB][01_]+/, "number.hex"],
245
- // binary: use same theme style as hex
246
- [/[0-9_]+/, "number"],
247
- // delimiter: after number because of .\d floats
248
- [/[;,.]/, "delimiter"],
249
- // strings
250
- [/"([^"\\]|\\.)*$/, "string.invalid"],
251
- // non-teminated string
252
- [/"/, { token: "string.quote", next: "@string" }],
253
- [/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
254
- [/\@"/, { token: "string.quote", next: "@litstring" }],
255
- [/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
256
- // characters
257
- [/'[^\\']'/, "string"],
258
- [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
259
- [/'/, "string.invalid"]
260
- ],
261
- qualified: [
262
- [
263
- /[a-zA-Z_][\w]*/,
264
- {
265
- cases: {
266
- "@keywords": { token: "keyword.$0" },
267
- "@default": "identifier"
268
- }
269
- }
270
- ],
271
- [/\./, "delimiter"],
272
- ["", "", "@pop"]
273
- ],
274
- namespace: [
275
- { include: "@whitespace" },
276
- [/[A-Z]\w*/, "namespace"],
277
- [/[\.=]/, "delimiter"],
278
- ["", "", "@pop"]
279
- ],
280
- comment: [
281
- [/[^\/*]+/, "comment"],
282
- // [/\/\*/, 'comment', '@push' ], // no nested comments :-(
283
- ["\\*/", "comment", "@pop"],
284
- [/[\/*]/, "comment"]
285
- ],
286
- string: [
287
- [/[^\\"]+/, "string"],
288
- [/@escapes/, "string.escape"],
289
- [/\\./, "string.escape.invalid"],
290
- [/"/, { token: "string.quote", next: "@pop" }]
291
- ],
292
- litstring: [
293
- [/[^"]+/, "string"],
294
- [/""/, "string.escape"],
295
- [/"/, { token: "string.quote", next: "@pop" }]
296
- ],
297
- litinterpstring: [
298
- [/[^"{]+/, "string"],
299
- [/""/, "string.escape"],
300
- [/{{/, "string.escape"],
301
- [/}}/, "string.escape"],
302
- [/{/, { token: "string.quote", next: "root.litinterpstring" }],
303
- [/"/, { token: "string.quote", next: "@pop" }]
304
- ],
305
- interpolatedstring: [
306
- [/[^\\"{]+/, "string"],
307
- [/@escapes/, "string.escape"],
308
- [/\\./, "string.escape.invalid"],
309
- [/{{/, "string.escape"],
310
- [/}}/, "string.escape"],
311
- [/{/, { token: "string.quote", next: "root.interpolatedstring" }],
312
- [/"/, { token: "string.quote", next: "@pop" }]
313
- ],
314
- whitespace: [
315
- [/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
316
- [/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
317
- [/[ \t\v\f\r\n]+/, ""],
318
- [/\/\*/, "comment", "@comment"],
319
- [/\/\/.*$/, "comment"]
320
- ]
321
- }
322
- };
323
- export {
324
- e as conf,
325
- t as language
326
- };
@@ -1,53 +0,0 @@
1
- const t = {
2
- brackets: [],
3
- autoClosingPairs: [],
4
- surroundingPairs: []
5
- }, r = {
6
- // Set defaultToken to invalid to see what you do not tokenize yet
7
- // defaultToken: 'invalid',
8
- keywords: [],
9
- typeKeywords: [],
10
- tokenPostfix: ".csp",
11
- operators: [],
12
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
13
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
14
- tokenizer: {
15
- root: [
16
- [/child-src/, "string.quote"],
17
- [/connect-src/, "string.quote"],
18
- [/default-src/, "string.quote"],
19
- [/font-src/, "string.quote"],
20
- [/frame-src/, "string.quote"],
21
- [/img-src/, "string.quote"],
22
- [/manifest-src/, "string.quote"],
23
- [/media-src/, "string.quote"],
24
- [/object-src/, "string.quote"],
25
- [/script-src/, "string.quote"],
26
- [/style-src/, "string.quote"],
27
- [/worker-src/, "string.quote"],
28
- [/base-uri/, "string.quote"],
29
- [/plugin-types/, "string.quote"],
30
- [/sandbox/, "string.quote"],
31
- [/disown-opener/, "string.quote"],
32
- [/form-action/, "string.quote"],
33
- [/frame-ancestors/, "string.quote"],
34
- [/report-uri/, "string.quote"],
35
- [/report-to/, "string.quote"],
36
- [/upgrade-insecure-requests/, "string.quote"],
37
- [/block-all-mixed-content/, "string.quote"],
38
- [/require-sri-for/, "string.quote"],
39
- [/reflected-xss/, "string.quote"],
40
- [/referrer/, "string.quote"],
41
- [/policy-uri/, "string.quote"],
42
- [/'self'/, "string.quote"],
43
- [/'unsafe-inline'/, "string.quote"],
44
- [/'unsafe-eval'/, "string.quote"],
45
- [/'strict-dynamic'/, "string.quote"],
46
- [/'unsafe-hashed-attributes'/, "string.quote"]
47
- ]
48
- }
49
- };
50
- export {
51
- t as conf,
52
- r as language
53
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={brackets:[],autoClosingPairs:[],surroundingPairs:[]},e={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,"string.quote"],[/connect-src/,"string.quote"],[/default-src/,"string.quote"],[/font-src/,"string.quote"],[/frame-src/,"string.quote"],[/img-src/,"string.quote"],[/manifest-src/,"string.quote"],[/media-src/,"string.quote"],[/object-src/,"string.quote"],[/script-src/,"string.quote"],[/style-src/,"string.quote"],[/worker-src/,"string.quote"],[/base-uri/,"string.quote"],[/plugin-types/,"string.quote"],[/sandbox/,"string.quote"],[/disown-opener/,"string.quote"],[/form-action/,"string.quote"],[/frame-ancestors/,"string.quote"],[/report-uri/,"string.quote"],[/report-to/,"string.quote"],[/upgrade-insecure-requests/,"string.quote"],[/block-all-mixed-content/,"string.quote"],[/require-sri-for/,"string.quote"],[/reflected-xss/,"string.quote"],[/referrer/,"string.quote"],[/policy-uri/,"string.quote"],[/'self'/,"string.quote"],[/'unsafe-inline'/,"string.quote"],[/'unsafe-eval'/,"string.quote"],[/'strict-dynamic'/,"string.quote"],[/'unsafe-hashed-attributes'/,"string.quote"]]}};exports.conf=t;exports.language=e;
@@ -1,187 +0,0 @@
1
- const e = {
2
- wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
3
- comments: {
4
- blockComment: ["/*", "*/"]
5
- },
6
- brackets: [
7
- ["{", "}"],
8
- ["[", "]"],
9
- ["(", ")"]
10
- ],
11
- autoClosingPairs: [
12
- { open: "{", close: "}", notIn: ["string", "comment"] },
13
- { open: "[", close: "]", notIn: ["string", "comment"] },
14
- { open: "(", close: ")", notIn: ["string", "comment"] },
15
- { open: '"', close: '"', notIn: ["string", "comment"] },
16
- { open: "'", close: "'", notIn: ["string", "comment"] }
17
- ],
18
- surroundingPairs: [
19
- { open: "{", close: "}" },
20
- { open: "[", close: "]" },
21
- { open: "(", close: ")" },
22
- { open: '"', close: '"' },
23
- { open: "'", close: "'" }
24
- ],
25
- folding: {
26
- markers: {
27
- start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
28
- end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
29
- }
30
- }
31
- }, t = {
32
- defaultToken: "",
33
- tokenPostfix: ".css",
34
- ws: `[
35
- \r\f]*`,
36
- // whitespaces (referenced in several rules)
37
- identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
38
- brackets: [
39
- { open: "{", close: "}", token: "delimiter.bracket" },
40
- { open: "[", close: "]", token: "delimiter.bracket" },
41
- { open: "(", close: ")", token: "delimiter.parenthesis" },
42
- { open: "<", close: ">", token: "delimiter.angle" }
43
- ],
44
- tokenizer: {
45
- root: [{ include: "@selector" }],
46
- selector: [
47
- { include: "@comments" },
48
- { include: "@import" },
49
- { include: "@strings" },
50
- [
51
- "[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
52
- { token: "keyword", next: "@keyframedeclaration" }
53
- ],
54
- ["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
55
- ["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
56
- [
57
- "(url-prefix)(\\()",
58
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
59
- ],
60
- [
61
- "(url)(\\()",
62
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
63
- ],
64
- { include: "@selectorname" },
65
- ["[\\*]", "tag"],
66
- // selector symbols
67
- ["[>\\+,]", "delimiter"],
68
- // selector operators
69
- ["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
70
- ["{", { token: "delimiter.bracket", next: "@selectorbody" }]
71
- ],
72
- selectorbody: [
73
- { include: "@comments" },
74
- ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
75
- // rule definition: to distinguish from a nested selector check for whitespace, number or a semicolon
76
- ["}", { token: "delimiter.bracket", next: "@pop" }]
77
- ],
78
- selectorname: [
79
- ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
80
- // selector (.foo, div, ...)
81
- ],
82
- selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
83
- term: [
84
- { include: "@comments" },
85
- [
86
- "(url-prefix)(\\()",
87
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
88
- ],
89
- [
90
- "(url)(\\()",
91
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
92
- ],
93
- { include: "@functioninvocation" },
94
- { include: "@numbers" },
95
- { include: "@name" },
96
- { include: "@strings" },
97
- ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
98
- [",", "delimiter"]
99
- ],
100
- rulevalue: [
101
- { include: "@comments" },
102
- { include: "@strings" },
103
- { include: "@term" },
104
- ["!important", "keyword"],
105
- [";", "delimiter", "@pop"],
106
- ["(?=})", { token: "", next: "@pop" }]
107
- // missing semicolon
108
- ],
109
- warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
110
- import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
111
- urldeclaration: [
112
- { include: "@strings" },
113
- [`[^)\r
114
- ]+`, "string"],
115
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
116
- ],
117
- parenthizedterm: [
118
- { include: "@term" },
119
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
120
- ],
121
- declarationbody: [
122
- { include: "@term" },
123
- [";", "delimiter", "@pop"],
124
- ["(?=})", { token: "", next: "@pop" }]
125
- // missing semicolon
126
- ],
127
- comments: [
128
- ["\\/\\*", "comment", "@comment"],
129
- ["\\/\\/+.*", "comment"]
130
- ],
131
- comment: [
132
- ["\\*\\/", "comment", "@pop"],
133
- [/[^*/]+/, "comment"],
134
- [/./, "comment"]
135
- ],
136
- name: [["@identifier", "attribute.value"]],
137
- numbers: [
138
- ["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
139
- ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
140
- ],
141
- units: [
142
- [
143
- "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
144
- "attribute.value.unit",
145
- "@pop"
146
- ]
147
- ],
148
- keyframedeclaration: [
149
- ["@identifier", "attribute.value"],
150
- ["{", { token: "delimiter.bracket", switchTo: "@keyframebody" }]
151
- ],
152
- keyframebody: [
153
- { include: "@term" },
154
- ["{", { token: "delimiter.bracket", next: "@selectorbody" }],
155
- ["}", { token: "delimiter.bracket", next: "@pop" }]
156
- ],
157
- functioninvocation: [
158
- ["@identifier\\(", { token: "attribute.value", next: "@functionarguments" }]
159
- ],
160
- functionarguments: [
161
- ["\\$@identifier@ws:", "attribute.name"],
162
- ["[,]", "delimiter"],
163
- { include: "@term" },
164
- ["\\)", { token: "attribute.value", next: "@pop" }]
165
- ],
166
- strings: [
167
- ['~?"', { token: "string", next: "@stringenddoublequote" }],
168
- ["~?'", { token: "string", next: "@stringendquote" }]
169
- ],
170
- stringenddoublequote: [
171
- ["\\\\.", "string"],
172
- ['"', { token: "string", next: "@pop" }],
173
- [/[^\\"]+/, "string"],
174
- [".", "string"]
175
- ],
176
- stringendquote: [
177
- ["\\\\.", "string"],
178
- ["'", { token: "string", next: "@pop" }],
179
- [/[^\\']+/, "string"],
180
- [".", "string"]
181
- ]
182
- }
183
- };
184
- export {
185
- e as conf,
186
- t as language
187
- };
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t={defaultToken:"",tokenPostfix:".css",ws:`[
2
- \r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r
3
- ]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};exports.conf=e;exports.language=t;