online-compiler-widget 0.0.4 → 1.0.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 (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,576 @@
1
+ const e = {
2
+ comments: {
3
+ lineComment: "//",
4
+ blockComment: ["/*", "*/"]
5
+ },
6
+ brackets: [
7
+ ["{", "}"],
8
+ ["[", "]"],
9
+ ["(", ")"],
10
+ ["begin", "end"],
11
+ ["case", "endcase"],
12
+ ["casex", "endcase"],
13
+ ["casez", "endcase"],
14
+ ["checker", "endchecker"],
15
+ ["class", "endclass"],
16
+ ["clocking", "endclocking"],
17
+ ["config", "endconfig"],
18
+ ["function", "endfunction"],
19
+ ["generate", "endgenerate"],
20
+ ["group", "endgroup"],
21
+ ["interface", "endinterface"],
22
+ ["module", "endmodule"],
23
+ ["package", "endpackage"],
24
+ ["primitive", "endprimitive"],
25
+ ["program", "endprogram"],
26
+ ["property", "endproperty"],
27
+ ["specify", "endspecify"],
28
+ ["sequence", "endsequence"],
29
+ ["table", "endtable"],
30
+ ["task", "endtask"]
31
+ ],
32
+ autoClosingPairs: [
33
+ { open: "[", close: "]" },
34
+ { open: "{", close: "}" },
35
+ { open: "(", close: ")" },
36
+ { open: "'", close: "'", notIn: ["string", "comment"] },
37
+ { open: '"', close: '"', notIn: ["string"] }
38
+ ],
39
+ surroundingPairs: [
40
+ { open: "{", close: "}" },
41
+ { open: "[", close: "]" },
42
+ { open: "(", close: ")" },
43
+ { open: '"', close: '"' },
44
+ { open: "'", close: "'" }
45
+ ],
46
+ folding: {
47
+ offSide: !1,
48
+ markers: {
49
+ start: new RegExp(
50
+ "^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"
51
+ ),
52
+ end: new RegExp(
53
+ "^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b"
54
+ )
55
+ }
56
+ }
57
+ }, n = {
58
+ defaultToken: "",
59
+ tokenPostfix: ".sv",
60
+ brackets: [
61
+ { token: "delimiter.curly", open: "{", close: "}" },
62
+ { token: "delimiter.parenthesis", open: "(", close: ")" },
63
+ { token: "delimiter.square", open: "[", close: "]" },
64
+ { token: "delimiter.angle", open: "<", close: ">" }
65
+ ],
66
+ keywords: [
67
+ "accept_on",
68
+ "alias",
69
+ "always",
70
+ "always_comb",
71
+ "always_ff",
72
+ "always_latch",
73
+ "and",
74
+ "assert",
75
+ "assign",
76
+ "assume",
77
+ "automatic",
78
+ "before",
79
+ "begin",
80
+ "bind",
81
+ "bins",
82
+ "binsof",
83
+ "bit",
84
+ "break",
85
+ "buf",
86
+ "bufif0",
87
+ "bufif1",
88
+ "byte",
89
+ "case",
90
+ "casex",
91
+ "casez",
92
+ "cell",
93
+ "chandle",
94
+ "checker",
95
+ "class",
96
+ "clocking",
97
+ "cmos",
98
+ "config",
99
+ "const",
100
+ "constraint",
101
+ "context",
102
+ "continue",
103
+ "cover",
104
+ "covergroup",
105
+ "coverpoint",
106
+ "cross",
107
+ "deassign",
108
+ "default",
109
+ "defparam",
110
+ "design",
111
+ "disable",
112
+ "dist",
113
+ "do",
114
+ "edge",
115
+ "else",
116
+ "end",
117
+ "endcase",
118
+ "endchecker",
119
+ "endclass",
120
+ "endclocking",
121
+ "endconfig",
122
+ "endfunction",
123
+ "endgenerate",
124
+ "endgroup",
125
+ "endinterface",
126
+ "endmodule",
127
+ "endpackage",
128
+ "endprimitive",
129
+ "endprogram",
130
+ "endproperty",
131
+ "endspecify",
132
+ "endsequence",
133
+ "endtable",
134
+ "endtask",
135
+ "enum",
136
+ "event",
137
+ "eventually",
138
+ "expect",
139
+ "export",
140
+ "extends",
141
+ "extern",
142
+ "final",
143
+ "first_match",
144
+ "for",
145
+ "force",
146
+ "foreach",
147
+ "forever",
148
+ "fork",
149
+ "forkjoin",
150
+ "function",
151
+ "generate",
152
+ "genvar",
153
+ "global",
154
+ "highz0",
155
+ "highz1",
156
+ "if",
157
+ "iff",
158
+ "ifnone",
159
+ "ignore_bins",
160
+ "illegal_bins",
161
+ "implements",
162
+ "implies",
163
+ "import",
164
+ "incdir",
165
+ "include",
166
+ "initial",
167
+ "inout",
168
+ "input",
169
+ "inside",
170
+ "instance",
171
+ "int",
172
+ "integer",
173
+ "interconnect",
174
+ "interface",
175
+ "intersect",
176
+ "join",
177
+ "join_any",
178
+ "join_none",
179
+ "large",
180
+ "let",
181
+ "liblist",
182
+ "library",
183
+ "local",
184
+ "localparam",
185
+ "logic",
186
+ "longint",
187
+ "macromodule",
188
+ "matches",
189
+ "medium",
190
+ "modport",
191
+ "module",
192
+ "nand",
193
+ "negedge",
194
+ "nettype",
195
+ "new",
196
+ "nexttime",
197
+ "nmos",
198
+ "nor",
199
+ "noshowcancelled",
200
+ "not",
201
+ "notif0",
202
+ "notif1",
203
+ "null",
204
+ "or",
205
+ "output",
206
+ "package",
207
+ "packed",
208
+ "parameter",
209
+ "pmos",
210
+ "posedge",
211
+ "primitive",
212
+ "priority",
213
+ "program",
214
+ "property",
215
+ "protected",
216
+ "pull0",
217
+ "pull1",
218
+ "pulldown",
219
+ "pullup",
220
+ "pulsestyle_ondetect",
221
+ "pulsestyle_onevent",
222
+ "pure",
223
+ "rand",
224
+ "randc",
225
+ "randcase",
226
+ "randsequence",
227
+ "rcmos",
228
+ "real",
229
+ "realtime",
230
+ "ref",
231
+ "reg",
232
+ "reject_on",
233
+ "release",
234
+ "repeat",
235
+ "restrict",
236
+ "return",
237
+ "rnmos",
238
+ "rpmos",
239
+ "rtran",
240
+ "rtranif0",
241
+ "rtranif1",
242
+ "s_always",
243
+ "s_eventually",
244
+ "s_nexttime",
245
+ "s_until",
246
+ "s_until_with",
247
+ "scalared",
248
+ "sequence",
249
+ "shortint",
250
+ "shortreal",
251
+ "showcancelled",
252
+ "signed",
253
+ "small",
254
+ "soft",
255
+ "solve",
256
+ "specify",
257
+ "specparam",
258
+ "static",
259
+ "string",
260
+ "strong",
261
+ "strong0",
262
+ "strong1",
263
+ "struct",
264
+ "super",
265
+ "supply0",
266
+ "supply1",
267
+ "sync_accept_on",
268
+ "sync_reject_on",
269
+ "table",
270
+ "tagged",
271
+ "task",
272
+ "this",
273
+ "throughout",
274
+ "time",
275
+ "timeprecision",
276
+ "timeunit",
277
+ "tran",
278
+ "tranif0",
279
+ "tranif1",
280
+ "tri",
281
+ "tri0",
282
+ "tri1",
283
+ "triand",
284
+ "trior",
285
+ "trireg",
286
+ "type",
287
+ "typedef",
288
+ "union",
289
+ "unique",
290
+ "unique0",
291
+ "unsigned",
292
+ "until",
293
+ "until_with",
294
+ "untyped",
295
+ "use",
296
+ "uwire",
297
+ "var",
298
+ "vectored",
299
+ "virtual",
300
+ "void",
301
+ "wait",
302
+ "wait_order",
303
+ "wand",
304
+ "weak",
305
+ "weak0",
306
+ "weak1",
307
+ "while",
308
+ "wildcard",
309
+ "wire",
310
+ "with",
311
+ "within",
312
+ "wor",
313
+ "xnor",
314
+ "xor"
315
+ ],
316
+ builtin_gates: [
317
+ "and",
318
+ "nand",
319
+ "nor",
320
+ "or",
321
+ "xor",
322
+ "xnor",
323
+ "buf",
324
+ "not",
325
+ "bufif0",
326
+ "bufif1",
327
+ "notif1",
328
+ "notif0",
329
+ "cmos",
330
+ "nmos",
331
+ "pmos",
332
+ "rcmos",
333
+ "rnmos",
334
+ "rpmos",
335
+ "tran",
336
+ "tranif1",
337
+ "tranif0",
338
+ "rtran",
339
+ "rtranif1",
340
+ "rtranif0"
341
+ ],
342
+ operators: [
343
+ // assignment operators
344
+ "=",
345
+ "+=",
346
+ "-=",
347
+ "*=",
348
+ "/=",
349
+ "%=",
350
+ "&=",
351
+ "|=",
352
+ "^=",
353
+ "<<=",
354
+ ">>+",
355
+ "<<<=",
356
+ ">>>=",
357
+ // conditional expression
358
+ "?",
359
+ ":",
360
+ // Unary operators
361
+ "+",
362
+ "-",
363
+ "!",
364
+ "~",
365
+ "&",
366
+ "~&",
367
+ "|",
368
+ "~|",
369
+ "^",
370
+ "~^",
371
+ "^~",
372
+ //binary operators
373
+ "+",
374
+ "-",
375
+ "*",
376
+ "/",
377
+ "%",
378
+ "==",
379
+ "!=",
380
+ "===",
381
+ "!==",
382
+ "==?",
383
+ "!=?",
384
+ "&&",
385
+ "||",
386
+ "**",
387
+ "<",
388
+ "<=",
389
+ ">",
390
+ ">=",
391
+ "&",
392
+ "|",
393
+ "^",
394
+ ">>",
395
+ "<<",
396
+ ">>>",
397
+ "<<<",
398
+ // increment or decrement operator
399
+ "++",
400
+ "--",
401
+ //binary logical operator
402
+ "->",
403
+ "<->",
404
+ // binary set membership operator
405
+ "inside",
406
+ // binary distrubution operator
407
+ "dist",
408
+ "::",
409
+ "+:",
410
+ "-:",
411
+ "*>",
412
+ "&&&",
413
+ "|->",
414
+ "|=>",
415
+ "#=#"
416
+ ],
417
+ // we include these common regular expressions
418
+ symbols: /[=><!~?:&|+\-*\/\^%#]+/,
419
+ escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
420
+ identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
421
+ systemcall: /[$][a-zA-Z0-9_]+/,
422
+ timeunits: /s|ms|us|ns|ps|fs/,
423
+ // The main tokenizer for our languages
424
+ tokenizer: {
425
+ root: [
426
+ // module instances
427
+ [
428
+ /^(\s*)(@identifier)/,
429
+ [
430
+ "",
431
+ {
432
+ cases: {
433
+ "@builtin_gates": {
434
+ token: "keyword.$2",
435
+ next: "@module_instance"
436
+ },
437
+ table: {
438
+ token: "keyword.$2",
439
+ next: "@table"
440
+ },
441
+ "@keywords": { token: "keyword.$2" },
442
+ "@default": {
443
+ token: "identifier",
444
+ next: "@module_instance"
445
+ }
446
+ }
447
+ }
448
+ ]
449
+ ],
450
+ // include statements
451
+ [/^\s*`include/, { token: "keyword.directive.include", next: "@include" }],
452
+ // Preprocessor directives
453
+ [/^\s*`\s*\w+/, "keyword"],
454
+ // identifiers and keywords
455
+ { include: "@identifier_or_keyword" },
456
+ // whitespace and comments
457
+ { include: "@whitespace" },
458
+ // (* attributes *).
459
+ [/\(\*.*\*\)/, "annotation"],
460
+ // Systemcall
461
+ [/@systemcall/, "variable.predefined"],
462
+ // delimiters and operators
463
+ [/[{}()\[\]]/, "@brackets"],
464
+ [/[<>](?!@symbols)/, "@brackets"],
465
+ [
466
+ /@symbols/,
467
+ {
468
+ cases: {
469
+ "@operators": "delimiter",
470
+ "@default": ""
471
+ }
472
+ }
473
+ ],
474
+ // numbers
475
+ { include: "@numbers" },
476
+ // delimiter: after number because of .\d floats
477
+ [/[;,.]/, "delimiter"],
478
+ // strings
479
+ { include: "@strings" }
480
+ ],
481
+ identifier_or_keyword: [
482
+ [
483
+ /@identifier/,
484
+ {
485
+ cases: {
486
+ "@keywords": { token: "keyword.$0" },
487
+ "@default": "identifier"
488
+ }
489
+ }
490
+ ]
491
+ ],
492
+ numbers: [
493
+ [/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"],
494
+ [/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"],
495
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"],
496
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"],
497
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"],
498
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"],
499
+ [/1step/, "number"],
500
+ [/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"],
501
+ [/'[01xXzZ]+/, "number"]
502
+ ],
503
+ module_instance: [
504
+ { include: "@whitespace" },
505
+ [/(#?)(\()/, ["", { token: "@brackets", next: "@port_connection" }]],
506
+ [/@identifier\s*[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
507
+ [/@symbols|[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
508
+ [/@identifier/, "type"],
509
+ [/;/, "delimiter", "@pop"]
510
+ ],
511
+ port_connection: [
512
+ { include: "@identifier_or_keyword" },
513
+ { include: "@whitespace" },
514
+ [/@systemcall/, "variable.predefined"],
515
+ { include: "@numbers" },
516
+ { include: "@strings" },
517
+ [/[,]/, "delimiter"],
518
+ [/\(/, "@brackets", "@port_connection"],
519
+ [/\)/, "@brackets", "@pop"]
520
+ ],
521
+ whitespace: [
522
+ [/[ \t\r\n]+/, ""],
523
+ [/\/\*/, "comment", "@comment"],
524
+ [/\/\/.*$/, "comment"]
525
+ ],
526
+ comment: [
527
+ [/[^\/*]+/, "comment"],
528
+ [/\*\//, "comment", "@pop"],
529
+ [/[\/*]/, "comment"]
530
+ ],
531
+ strings: [
532
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
533
+ // non-teminated string
534
+ [/"/, "string", "@string"]
535
+ ],
536
+ string: [
537
+ [/[^\\"]+/, "string"],
538
+ [/@escapes/, "string.escape"],
539
+ [/\\./, "string.escape.invalid"],
540
+ [/"/, "string", "@pop"]
541
+ ],
542
+ include: [
543
+ [
544
+ /(\s*)(")([\w*\/*]*)(.\w*)(")/,
545
+ [
546
+ "",
547
+ "string.include.identifier",
548
+ "string.include.identifier",
549
+ "string.include.identifier",
550
+ { token: "string.include.identifier", next: "@pop" }
551
+ ]
552
+ ],
553
+ [
554
+ /(\s*)(<)([\w*\/*]*)(.\w*)(>)/,
555
+ [
556
+ "",
557
+ "string.include.identifier",
558
+ "string.include.identifier",
559
+ "string.include.identifier",
560
+ { token: "string.include.identifier", next: "@pop" }
561
+ ]
562
+ ]
563
+ ],
564
+ table: [
565
+ { include: "@whitespace" },
566
+ [/[()]/, "@brackets"],
567
+ [/[:;]/, "delimiter"],
568
+ [/[01\-*?xXbBrRfFpPnN]/, "variable.predefined"],
569
+ ["endtable", "keyword.endtable", "@pop"]
570
+ ]
571
+ }
572
+ };
573
+ export {
574
+ e as conf,
575
+ n as language
576
+ };