online-compiler-widget 0.0.4 → 1.0.3

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 (161) hide show
  1. package/dist/abap-CrvW7_qN.js +1398 -0
  2. package/dist/apex-BAOI8p1v.js +327 -0
  3. package/dist/assets/css.worker-Cb0JI69t.js +93 -0
  4. package/dist/assets/html.worker-BNFZMwEc.js +470 -0
  5. package/dist/assets/json.worker-BCybXpia.js +58 -0
  6. package/dist/assets/ts.worker-DAVh1bw1.js +67731 -0
  7. package/dist/azcli-BlCk_UqW.js +68 -0
  8. package/dist/bat-DPoEelVx.js +100 -0
  9. package/dist/bicep-Cp1F394l.js +102 -0
  10. package/dist/cameligo-CWqtSlQs.js +174 -0
  11. package/dist/clojure-CKBp32Gf.js +761 -0
  12. package/dist/coffee-CDo6vc-J.js +232 -0
  13. package/dist/cpp-DokufPgf.js +389 -0
  14. package/dist/csharp-BQi3szM0.js +326 -0
  15. package/dist/csp-BSGtCCZ-.js +53 -0
  16. package/dist/css-DEPFDJfb.js +187 -0
  17. package/dist/cssMode-nHrB9Mnr.js +141 -0
  18. package/dist/cypher-DAb1vOxS.js +263 -0
  19. package/dist/dart-C8p4jewR.js +281 -0
  20. package/dist/dockerfile-DP0iLFPN.js +130 -0
  21. package/dist/ecl-BDQHA6fi.js +456 -0
  22. package/dist/elixir-D4II6kDM.js +569 -0
  23. package/dist/flow9-StcnL-VB.js +142 -0
  24. package/dist/freemarker2-BoiXdkJM.js +982 -0
  25. package/dist/fsharp-DdUVp3EN.js +217 -0
  26. package/dist/go-D1-I258M.js +218 -0
  27. package/dist/graphql-DWkL3f8U.js +151 -0
  28. package/dist/handlebars-C7PJzkmo.js +412 -0
  29. package/dist/hcl-D_0MNifv.js +183 -0
  30. package/dist/html-D_xe_tUa.js +301 -0
  31. package/dist/htmlMode-Dk_luXu_.js +152 -0
  32. package/dist/index-Ds0EJmOd.js +129200 -0
  33. package/dist/index.js +14 -0
  34. package/dist/ini-C4I2-MT7.js +71 -0
  35. package/dist/java-OBvaP_SS.js +232 -0
  36. package/dist/javascript-CUK67ITD.js +70 -0
  37. package/dist/jsonMode-BIAYTpVF.js +569 -0
  38. package/dist/julia-BmDH8Kkf.js +511 -0
  39. package/dist/kotlin-Dhu5AGOD.js +252 -0
  40. package/dist/less-CzmjXREq.js +162 -0
  41. package/dist/lexon-CV2c4pN9.js +157 -0
  42. package/dist/liquid-Cgsk8EmK.js +233 -0
  43. package/dist/lspLanguageFeatures-HqO1l9Me.js +1458 -0
  44. package/dist/lua-CFY5U8qF.js +162 -0
  45. package/dist/m3-BL_AnZVh.js +210 -0
  46. package/dist/markdown-CWKQPXCv.js +229 -0
  47. package/dist/mdx-QboWmT4M.js +158 -0
  48. package/dist/mips-ButYmJ5E.js +198 -0
  49. package/dist/msdax-C3cnXqDh.js +375 -0
  50. package/dist/mysql-YlSHaf6G.js +878 -0
  51. package/dist/objective-c-Dwnlproe.js +183 -0
  52. package/dist/pascal-UzGbSWEN.js +251 -0
  53. package/dist/pascaligo-CslTgu68.js +164 -0
  54. package/dist/perl-oj6r_mgw.js +626 -0
  55. package/dist/pgsql-DSBO0Mev.js +851 -0
  56. package/dist/php-YzCD--7j.js +500 -0
  57. package/dist/pla-CmylB8vQ.js +137 -0
  58. package/dist/postiats-CLFW5gNY.js +907 -0
  59. package/dist/powerquery-CmOWUvlh.js +890 -0
  60. package/dist/powershell-fHQcmBLK.js +239 -0
  61. package/dist/protobuf-p5BArb-9.js +420 -0
  62. package/dist/pug-gVdUDvqf.js +402 -0
  63. package/dist/python-kIZaMFF7.js +294 -0
  64. package/dist/qsharp-DnrWSUlt.js +301 -0
  65. package/dist/r-Cv309K2z.js +243 -0
  66. package/dist/razor-ms2cCMGp.js +543 -0
  67. package/dist/redis-DTcS4wMj.js +302 -0
  68. package/dist/redshift-hLxZVESM.js +809 -0
  69. package/dist/restructuredtext-C898lK4f.js +174 -0
  70. package/dist/ruby-CgKtnJIQ.js +511 -0
  71. package/dist/rust-bj8oxVnh.js +343 -0
  72. package/dist/sb-DWynz26l.js +115 -0
  73. package/dist/scala-BL5z1UEd.js +370 -0
  74. package/dist/scheme-DUJsH6VU.js +108 -0
  75. package/dist/scss-CxjmhvaL.js +262 -0
  76. package/dist/shell-D14Zs1dF.js +221 -0
  77. package/dist/solidity-WyRm-BGK.js +1367 -0
  78. package/dist/sophia-CKk-_Oa5.js +199 -0
  79. package/dist/sparql-DHtmINMZ.js +201 -0
  80. package/dist/sql-Dqaj5JHC.js +853 -0
  81. package/dist/st-Bj2IIaop.js +416 -0
  82. package/dist/style.css +1 -0
  83. package/dist/swift-DwxP72iM.js +312 -0
  84. package/dist/systemverilog-D7wJfuql.js +576 -0
  85. package/dist/tcl-0ApMt-eC.js +232 -0
  86. package/dist/tsMode-BiXWAJYS.js +946 -0
  87. package/dist/twig-DxwbdmvQ.js +392 -0
  88. package/dist/typescript-ByMmjZ38.js +336 -0
  89. package/dist/typespec-Fd-JwSuS.js +117 -0
  90. package/dist/vb-CxuyYE1I.js +372 -0
  91. package/dist/wgsl-DoEGc31J.js +439 -0
  92. package/dist/xml-iOXTZgNN.js +88 -0
  93. package/dist/yaml-RRlyy-QW.js +199 -0
  94. package/package.json +41 -36
  95. package/FileStorage/obj/FileStorage.csproj.EntityFrameworkCore.targets +0 -28
  96. package/README.md +0 -1
  97. package/eslint.config.js +0 -26
  98. package/index.html +0 -13
  99. package/index.tsx +0 -3
  100. package/openapitools.json +0 -7
  101. package/pnpm-workspace.yaml +0 -2
  102. package/public/vite.svg +0 -1
  103. package/src/App.css +0 -49
  104. package/src/App.tsx +0 -84
  105. package/src/api/.openapi-generator/FILES +0 -25
  106. package/src/api/.openapi-generator/VERSION +0 -1
  107. package/src/api/.openapi-generator-ignore +0 -23
  108. package/src/api/api.ts +0 -1312
  109. package/src/api/base.ts +0 -62
  110. package/src/api/common.ts +0 -113
  111. package/src/api/configuration.ts +0 -121
  112. package/src/api/docs/CompilationError.md +0 -26
  113. package/src/api/docs/CompileRequest.md +0 -22
  114. package/src/api/docs/CompileResult.md +0 -28
  115. package/src/api/docs/CompilerApi.md +0 -263
  116. package/src/api/docs/CreateFileDto.md +0 -22
  117. package/src/api/docs/CreateProjectRequest.md +0 -20
  118. package/src/api/docs/FileApi.md +0 -274
  119. package/src/api/docs/ProcessStatus.md +0 -28
  120. package/src/api/docs/ProjectApi.md +0 -362
  121. package/src/api/docs/ProjectInfo.md +0 -24
  122. package/src/api/docs/ProjectStats.md +0 -28
  123. package/src/api/docs/RenameFileDto.md +0 -20
  124. package/src/api/docs/RenameProjectRequest.md +0 -20
  125. package/src/api/docs/RunRequest.md +0 -24
  126. package/src/api/docs/RunResult.md +0 -30
  127. package/src/api/docs/RunningProjectInfo.md +0 -26
  128. package/src/api/docs/UpdateFileDto.md +0 -20
  129. package/src/api/git_push.sh +0 -57
  130. package/src/api/index.ts +0 -18
  131. package/src/assets/Badge.svg +0 -17
  132. package/src/assets/closeIcon.svg +0 -20
  133. package/src/assets/documentIcon.svg +0 -11
  134. package/src/assets/history.svg +0 -11
  135. package/src/assets/output.svg +0 -12
  136. package/src/assets/plus.svg +0 -20
  137. package/src/assets/react.svg +0 -1
  138. package/src/assets/save-icon.svg +0 -11
  139. package/src/assets/shield.svg +0 -10
  140. package/src/assets/start.svg +0 -11
  141. package/src/assets/stop.svg +0 -11
  142. package/src/components/CompilerWidget.module.scss +0 -169
  143. package/src/components/CompilerWidget.tsx +0 -331
  144. package/src/components/FileExplorer.module.scss +0 -372
  145. package/src/components/FileExplorer.tsx +0 -285
  146. package/src/components/MonacoEditorWrapper.module.scss +0 -29
  147. package/src/components/MonacoEditorWrapper.tsx +0 -74
  148. package/src/components/OutputPanel.module.scss +0 -123
  149. package/src/components/OutputPanel.tsx +0 -53
  150. package/src/components/RunContainer.module.scss +0 -150
  151. package/src/components/RunContainer.tsx +0 -34
  152. package/src/hooks/useCompiler.ts +0 -228
  153. package/src/hooks/useInitialNodes.ts +0 -0
  154. package/src/index.css +0 -78
  155. package/src/main.tsx +0 -8
  156. package/src/types/EditorDocument.ts +0 -8
  157. package/swagger.json +0 -1020
  158. package/tsconfig.app.json +0 -29
  159. package/tsconfig.json +0 -7
  160. package/tsconfig.node.json +0 -26
  161. package/vite.config.ts +0 -8
@@ -0,0 +1,402 @@
1
+ const e = {
2
+ comments: {
3
+ lineComment: "//"
4
+ },
5
+ brackets: [
6
+ ["{", "}"],
7
+ ["[", "]"],
8
+ ["(", ")"]
9
+ ],
10
+ autoClosingPairs: [
11
+ { open: '"', close: '"', notIn: ["string", "comment"] },
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
+ ],
17
+ folding: {
18
+ offSide: !0
19
+ }
20
+ }, t = {
21
+ defaultToken: "",
22
+ tokenPostfix: ".pug",
23
+ ignoreCase: !0,
24
+ brackets: [
25
+ { token: "delimiter.curly", open: "{", close: "}" },
26
+ { token: "delimiter.array", open: "[", close: "]" },
27
+ { token: "delimiter.parenthesis", open: "(", close: ")" }
28
+ ],
29
+ keywords: [
30
+ "append",
31
+ "block",
32
+ "case",
33
+ "default",
34
+ "doctype",
35
+ "each",
36
+ "else",
37
+ "extends",
38
+ "for",
39
+ "if",
40
+ "in",
41
+ "include",
42
+ "mixin",
43
+ "typeof",
44
+ "unless",
45
+ "var",
46
+ "when"
47
+ ],
48
+ tags: [
49
+ "a",
50
+ "abbr",
51
+ "acronym",
52
+ "address",
53
+ "area",
54
+ "article",
55
+ "aside",
56
+ "audio",
57
+ "b",
58
+ "base",
59
+ "basefont",
60
+ "bdi",
61
+ "bdo",
62
+ "blockquote",
63
+ "body",
64
+ "br",
65
+ "button",
66
+ "canvas",
67
+ "caption",
68
+ "center",
69
+ "cite",
70
+ "code",
71
+ "col",
72
+ "colgroup",
73
+ "command",
74
+ "datalist",
75
+ "dd",
76
+ "del",
77
+ "details",
78
+ "dfn",
79
+ "div",
80
+ "dl",
81
+ "dt",
82
+ "em",
83
+ "embed",
84
+ "fieldset",
85
+ "figcaption",
86
+ "figure",
87
+ "font",
88
+ "footer",
89
+ "form",
90
+ "frame",
91
+ "frameset",
92
+ "h1",
93
+ "h2",
94
+ "h3",
95
+ "h4",
96
+ "h5",
97
+ "h6",
98
+ "head",
99
+ "header",
100
+ "hgroup",
101
+ "hr",
102
+ "html",
103
+ "i",
104
+ "iframe",
105
+ "img",
106
+ "input",
107
+ "ins",
108
+ "keygen",
109
+ "kbd",
110
+ "label",
111
+ "li",
112
+ "link",
113
+ "map",
114
+ "mark",
115
+ "menu",
116
+ "meta",
117
+ "meter",
118
+ "nav",
119
+ "noframes",
120
+ "noscript",
121
+ "object",
122
+ "ol",
123
+ "optgroup",
124
+ "option",
125
+ "output",
126
+ "p",
127
+ "param",
128
+ "pre",
129
+ "progress",
130
+ "q",
131
+ "rp",
132
+ "rt",
133
+ "ruby",
134
+ "s",
135
+ "samp",
136
+ "script",
137
+ "section",
138
+ "select",
139
+ "small",
140
+ "source",
141
+ "span",
142
+ "strike",
143
+ "strong",
144
+ "style",
145
+ "sub",
146
+ "summary",
147
+ "sup",
148
+ "table",
149
+ "tbody",
150
+ "td",
151
+ "textarea",
152
+ "tfoot",
153
+ "th",
154
+ "thead",
155
+ "time",
156
+ "title",
157
+ "tr",
158
+ "tracks",
159
+ "tt",
160
+ "u",
161
+ "ul",
162
+ "video",
163
+ "wbr"
164
+ ],
165
+ // we include these common regular expressions
166
+ symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
167
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
168
+ tokenizer: {
169
+ root: [
170
+ // Tag or a keyword at start
171
+ [
172
+ /^(\s*)([a-zA-Z_-][\w-]*)/,
173
+ {
174
+ cases: {
175
+ "$2@tags": {
176
+ cases: {
177
+ "@eos": ["", "tag"],
178
+ "@default": ["", { token: "tag", next: "@tag.$1" }]
179
+ }
180
+ },
181
+ "$2@keywords": ["", { token: "keyword.$2" }],
182
+ "@default": ["", ""]
183
+ }
184
+ }
185
+ ],
186
+ // id
187
+ [
188
+ /^(\s*)(#[a-zA-Z_-][\w-]*)/,
189
+ {
190
+ cases: {
191
+ "@eos": ["", "tag.id"],
192
+ "@default": ["", { token: "tag.id", next: "@tag.$1" }]
193
+ }
194
+ }
195
+ ],
196
+ // class
197
+ [
198
+ /^(\s*)(\.[a-zA-Z_-][\w-]*)/,
199
+ {
200
+ cases: {
201
+ "@eos": ["", "tag.class"],
202
+ "@default": ["", { token: "tag.class", next: "@tag.$1" }]
203
+ }
204
+ }
205
+ ],
206
+ // plain text with pipe
207
+ [/^(\s*)(\|.*)$/, ""],
208
+ { include: "@whitespace" },
209
+ // keywords
210
+ [
211
+ /[a-zA-Z_$][\w$]*/,
212
+ {
213
+ cases: {
214
+ "@keywords": { token: "keyword.$0" },
215
+ "@default": ""
216
+ }
217
+ }
218
+ ],
219
+ // delimiters and operators
220
+ [/[{}()\[\]]/, "@brackets"],
221
+ [/@symbols/, "delimiter"],
222
+ // numbers
223
+ [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
224
+ [/\d+/, "number"],
225
+ // strings:
226
+ [/"/, "string", '@string."'],
227
+ [/'/, "string", "@string.'"]
228
+ ],
229
+ tag: [
230
+ [/(\.)(\s*$)/, [{ token: "delimiter", next: "@blockText.$S2." }, ""]],
231
+ [/\s+/, { token: "", next: "@simpleText" }],
232
+ // id
233
+ [
234
+ /#[a-zA-Z_-][\w-]*/,
235
+ {
236
+ cases: {
237
+ "@eos": { token: "tag.id", next: "@pop" },
238
+ "@default": "tag.id"
239
+ }
240
+ }
241
+ ],
242
+ // class
243
+ [
244
+ /\.[a-zA-Z_-][\w-]*/,
245
+ {
246
+ cases: {
247
+ "@eos": { token: "tag.class", next: "@pop" },
248
+ "@default": "tag.class"
249
+ }
250
+ }
251
+ ],
252
+ // attributes
253
+ [/\(/, { token: "delimiter.parenthesis", next: "@attributeList" }]
254
+ ],
255
+ simpleText: [
256
+ [/[^#]+$/, { token: "", next: "@popall" }],
257
+ [/[^#]+/, { token: "" }],
258
+ // interpolation
259
+ [
260
+ /(#{)([^}]*)(})/,
261
+ {
262
+ cases: {
263
+ "@eos": [
264
+ "interpolation.delimiter",
265
+ "interpolation",
266
+ {
267
+ token: "interpolation.delimiter",
268
+ next: "@popall"
269
+ }
270
+ ],
271
+ "@default": ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]
272
+ }
273
+ }
274
+ ],
275
+ [/#$/, { token: "", next: "@popall" }],
276
+ [/#/, ""]
277
+ ],
278
+ attributeList: [
279
+ [/\s+/, ""],
280
+ [
281
+ /(\w+)(\s*=\s*)("|')/,
282
+ ["attribute.name", "delimiter", { token: "attribute.value", next: "@value.$3" }]
283
+ ],
284
+ [/\w+/, "attribute.name"],
285
+ [
286
+ /,/,
287
+ {
288
+ cases: {
289
+ "@eos": {
290
+ token: "attribute.delimiter",
291
+ next: "@popall"
292
+ },
293
+ "@default": "attribute.delimiter"
294
+ }
295
+ }
296
+ ],
297
+ [/\)$/, { token: "delimiter.parenthesis", next: "@popall" }],
298
+ [/\)/, { token: "delimiter.parenthesis", next: "@pop" }]
299
+ ],
300
+ whitespace: [
301
+ [/^(\s*)(\/\/.*)$/, { token: "comment", next: "@blockText.$1.comment" }],
302
+ [/[ \t\r\n]+/, ""],
303
+ [/<!--/, { token: "comment", next: "@comment" }]
304
+ ],
305
+ blockText: [
306
+ [
307
+ /^\s+.*$/,
308
+ {
309
+ cases: {
310
+ "($S2\\s+.*$)": { token: "$S3" },
311
+ "@default": { token: "@rematch", next: "@popall" }
312
+ }
313
+ }
314
+ ],
315
+ [/./, { token: "@rematch", next: "@popall" }]
316
+ ],
317
+ comment: [
318
+ [/[^<\-]+/, "comment.content"],
319
+ [/-->/, { token: "comment", next: "@pop" }],
320
+ [/<!--/, "comment.content.invalid"],
321
+ [/[<\-]/, "comment.content"]
322
+ ],
323
+ string: [
324
+ [
325
+ /[^\\"'#]+/,
326
+ {
327
+ cases: {
328
+ "@eos": { token: "string", next: "@popall" },
329
+ "@default": "string"
330
+ }
331
+ }
332
+ ],
333
+ [
334
+ /@escapes/,
335
+ {
336
+ cases: {
337
+ "@eos": { token: "string.escape", next: "@popall" },
338
+ "@default": "string.escape"
339
+ }
340
+ }
341
+ ],
342
+ [
343
+ /\\./,
344
+ {
345
+ cases: {
346
+ "@eos": {
347
+ token: "string.escape.invalid",
348
+ next: "@popall"
349
+ },
350
+ "@default": "string.escape.invalid"
351
+ }
352
+ }
353
+ ],
354
+ // interpolation
355
+ [/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]],
356
+ [/#/, "string"],
357
+ [
358
+ /["']/,
359
+ {
360
+ cases: {
361
+ "$#==$S2": { token: "string", next: "@pop" },
362
+ "@default": { token: "string" }
363
+ }
364
+ }
365
+ ]
366
+ ],
367
+ // Almost identical to above, except for escapes and the output token
368
+ value: [
369
+ [
370
+ /[^\\"']+/,
371
+ {
372
+ cases: {
373
+ "@eos": { token: "attribute.value", next: "@popall" },
374
+ "@default": "attribute.value"
375
+ }
376
+ }
377
+ ],
378
+ [
379
+ /\\./,
380
+ {
381
+ cases: {
382
+ "@eos": { token: "attribute.value", next: "@popall" },
383
+ "@default": "attribute.value"
384
+ }
385
+ }
386
+ ],
387
+ [
388
+ /["']/,
389
+ {
390
+ cases: {
391
+ "$#==$S2": { token: "attribute.value", next: "@pop" },
392
+ "@default": { token: "attribute.value" }
393
+ }
394
+ }
395
+ ]
396
+ ]
397
+ }
398
+ };
399
+ export {
400
+ e as conf,
401
+ t as language
402
+ };
@@ -0,0 +1,294 @@
1
+ import { l as e } from "./index-Ds0EJmOd.js";
2
+ const t = {
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"] },
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
+ ],
26
+ onEnterRules: [
27
+ {
28
+ beforeText: new RegExp(
29
+ "^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"
30
+ ),
31
+ action: { indentAction: e.IndentAction.Indent }
32
+ }
33
+ ],
34
+ folding: {
35
+ offSide: !0,
36
+ markers: {
37
+ start: new RegExp("^\\s*#region\\b"),
38
+ end: new RegExp("^\\s*#endregion\\b")
39
+ }
40
+ }
41
+ }, s = {
42
+ defaultToken: "",
43
+ tokenPostfix: ".python",
44
+ keywords: [
45
+ // This section is the result of running
46
+ // `import keyword; for k in sorted(keyword.kwlist + keyword.softkwlist): print(" '" + k + "',")`
47
+ // in a Python REPL,
48
+ // though note that the output from Python 3 is not a strict superset of the
49
+ // output from Python 2.
50
+ "False",
51
+ // promoted to keyword.kwlist in Python 3
52
+ "None",
53
+ // promoted to keyword.kwlist in Python 3
54
+ "True",
55
+ // promoted to keyword.kwlist in Python 3
56
+ "_",
57
+ // new in Python 3.10
58
+ "and",
59
+ "as",
60
+ "assert",
61
+ "async",
62
+ // new in Python 3
63
+ "await",
64
+ // new in Python 3
65
+ "break",
66
+ "case",
67
+ // new in Python 3.10
68
+ "class",
69
+ "continue",
70
+ "def",
71
+ "del",
72
+ "elif",
73
+ "else",
74
+ "except",
75
+ "exec",
76
+ // Python 2, but not 3.
77
+ "finally",
78
+ "for",
79
+ "from",
80
+ "global",
81
+ "if",
82
+ "import",
83
+ "in",
84
+ "is",
85
+ "lambda",
86
+ "match",
87
+ // new in Python 3.10
88
+ "nonlocal",
89
+ // new in Python 3
90
+ "not",
91
+ "or",
92
+ "pass",
93
+ "print",
94
+ // Python 2, but not 3.
95
+ "raise",
96
+ "return",
97
+ "try",
98
+ "type",
99
+ // new in Python 3.12
100
+ "while",
101
+ "with",
102
+ "yield",
103
+ "int",
104
+ "float",
105
+ "long",
106
+ "complex",
107
+ "hex",
108
+ "abs",
109
+ "all",
110
+ "any",
111
+ "apply",
112
+ "basestring",
113
+ "bin",
114
+ "bool",
115
+ "buffer",
116
+ "bytearray",
117
+ "callable",
118
+ "chr",
119
+ "classmethod",
120
+ "cmp",
121
+ "coerce",
122
+ "compile",
123
+ "complex",
124
+ "delattr",
125
+ "dict",
126
+ "dir",
127
+ "divmod",
128
+ "enumerate",
129
+ "eval",
130
+ "execfile",
131
+ "file",
132
+ "filter",
133
+ "format",
134
+ "frozenset",
135
+ "getattr",
136
+ "globals",
137
+ "hasattr",
138
+ "hash",
139
+ "help",
140
+ "id",
141
+ "input",
142
+ "intern",
143
+ "isinstance",
144
+ "issubclass",
145
+ "iter",
146
+ "len",
147
+ "locals",
148
+ "list",
149
+ "map",
150
+ "max",
151
+ "memoryview",
152
+ "min",
153
+ "next",
154
+ "object",
155
+ "oct",
156
+ "open",
157
+ "ord",
158
+ "pow",
159
+ "print",
160
+ "property",
161
+ "reversed",
162
+ "range",
163
+ "raw_input",
164
+ "reduce",
165
+ "reload",
166
+ "repr",
167
+ "reversed",
168
+ "round",
169
+ "self",
170
+ "set",
171
+ "setattr",
172
+ "slice",
173
+ "sorted",
174
+ "staticmethod",
175
+ "str",
176
+ "sum",
177
+ "super",
178
+ "tuple",
179
+ "type",
180
+ "unichr",
181
+ "unicode",
182
+ "vars",
183
+ "xrange",
184
+ "zip",
185
+ "__dict__",
186
+ "__methods__",
187
+ "__members__",
188
+ "__class__",
189
+ "__bases__",
190
+ "__name__",
191
+ "__mro__",
192
+ "__subclasses__",
193
+ "__init__",
194
+ "__import__"
195
+ ],
196
+ brackets: [
197
+ { open: "{", close: "}", token: "delimiter.curly" },
198
+ { open: "[", close: "]", token: "delimiter.bracket" },
199
+ { open: "(", close: ")", token: "delimiter.parenthesis" }
200
+ ],
201
+ tokenizer: {
202
+ root: [
203
+ { include: "@whitespace" },
204
+ { include: "@numbers" },
205
+ { include: "@strings" },
206
+ [/[,:;]/, "delimiter"],
207
+ [/[{}\[\]()]/, "@brackets"],
208
+ [/@[a-zA-Z_]\w*/, "tag"],
209
+ [
210
+ /[a-zA-Z_]\w*/,
211
+ {
212
+ cases: {
213
+ "@keywords": "keyword",
214
+ "@default": "identifier"
215
+ }
216
+ }
217
+ ]
218
+ ],
219
+ // Deal with white space, including single and multi-line comments
220
+ whitespace: [
221
+ [/\s+/, "white"],
222
+ [/(^#.*$)/, "comment"],
223
+ [/'''/, "string", "@endDocString"],
224
+ [/"""/, "string", "@endDblDocString"]
225
+ ],
226
+ endDocString: [
227
+ [/[^']+/, "string"],
228
+ [/\\'/, "string"],
229
+ [/'''/, "string", "@popall"],
230
+ [/'/, "string"]
231
+ ],
232
+ endDblDocString: [
233
+ [/[^"]+/, "string"],
234
+ [/\\"/, "string"],
235
+ [/"""/, "string", "@popall"],
236
+ [/"/, "string"]
237
+ ],
238
+ // Recognize hex, negatives, decimals, imaginaries, longs, and scientific notation
239
+ numbers: [
240
+ [/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
241
+ [/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
242
+ ],
243
+ // Recognize strings, including those broken across lines with \ (but not without)
244
+ strings: [
245
+ [/'$/, "string.escape", "@popall"],
246
+ [/f'{1,3}/, "string.escape", "@fStringBody"],
247
+ [/'/, "string.escape", "@stringBody"],
248
+ [/"$/, "string.escape", "@popall"],
249
+ [/f"{1,3}/, "string.escape", "@fDblStringBody"],
250
+ [/"/, "string.escape", "@dblStringBody"]
251
+ ],
252
+ fStringBody: [
253
+ [/[^\\'\{\}]+$/, "string", "@popall"],
254
+ [/[^\\'\{\}]+/, "string"],
255
+ [/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
256
+ [/\\./, "string"],
257
+ [/'/, "string.escape", "@popall"],
258
+ [/\\$/, "string"]
259
+ ],
260
+ stringBody: [
261
+ [/[^\\']+$/, "string", "@popall"],
262
+ [/[^\\']+/, "string"],
263
+ [/\\./, "string"],
264
+ [/'/, "string.escape", "@popall"],
265
+ [/\\$/, "string"]
266
+ ],
267
+ fDblStringBody: [
268
+ [/[^\\"\{\}]+$/, "string", "@popall"],
269
+ [/[^\\"\{\}]+/, "string"],
270
+ [/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
271
+ [/\\./, "string"],
272
+ [/"/, "string.escape", "@popall"],
273
+ [/\\$/, "string"]
274
+ ],
275
+ dblStringBody: [
276
+ [/[^\\"]+$/, "string", "@popall"],
277
+ [/[^\\"]+/, "string"],
278
+ [/\\./, "string"],
279
+ [/"/, "string.escape", "@popall"],
280
+ [/\\$/, "string"]
281
+ ],
282
+ fStringDetail: [
283
+ [/[:][^}]+/, "string"],
284
+ [/[!][ars]/, "string"],
285
+ // only !a, !r, !s are supported by f-strings: https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
286
+ [/=/, "string"],
287
+ [/\}/, "identifier", "@pop"]
288
+ ]
289
+ }
290
+ };
291
+ export {
292
+ t as conf,
293
+ s as language
294
+ };