@infinilabs/discover 0.0.1

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 (233) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +8 -0
  3. package/dist/abap-B988NUrV.js +122 -0
  4. package/dist/abap-obercqiY.cjs +1 -0
  5. package/dist/apex-B0_UGK1B.cjs +1 -0
  6. package/dist/apex-BlHPPQK-.js +168 -0
  7. package/dist/azcli-C7iyZFGk.js +53 -0
  8. package/dist/azcli-CEoytwx_.cjs +1 -0
  9. package/dist/bat-Buc0l0C3.js +123 -0
  10. package/dist/bat-D65OC-jj.cjs +1 -0
  11. package/dist/bicep-DvD_e5vW.cjs +2 -0
  12. package/dist/bicep-U66iJ-pV.js +219 -0
  13. package/dist/cameligo-C9Dwkdmm.js +189 -0
  14. package/dist/cameligo-DzMHfeEs.cjs +1 -0
  15. package/dist/chunk-BjqF3vbe.cjs +1 -0
  16. package/dist/chunk-CIp4IH9D.js +21 -0
  17. package/dist/classnames-BXjDNQ6Q.cjs +1 -0
  18. package/dist/classnames-eUba3oot.js +29 -0
  19. package/dist/clojure-BC7BzAFK.cjs +1 -0
  20. package/dist/clojure-DDWmWbSx.js +146 -0
  21. package/dist/coffee-7Sx2S8NH.js +260 -0
  22. package/dist/coffee-Ca9F0OWZ.cjs +1 -0
  23. package/dist/common-BeXEy5sz.cjs +18 -0
  24. package/dist/common-BlOHZJzI.js +64 -0
  25. package/dist/common-DuYIpe6b.cjs +1 -0
  26. package/dist/common-Tr1I-HCs.js +6725 -0
  27. package/dist/cpp-CHjqaSPQ.js +230 -0
  28. package/dist/cpp-DKy9h6xR.cjs +1 -0
  29. package/dist/createLucideIcon-239Z-2by.cjs +1 -0
  30. package/dist/createLucideIcon-BO6TDGE7.js +43 -0
  31. package/dist/csharp-CkbgT9vH.cjs +1 -0
  32. package/dist/csharp-jwStnVeK.js +260 -0
  33. package/dist/csp-C2qFd6iv.cjs +1 -0
  34. package/dist/csp-DkO8Np0h.js +46 -0
  35. package/dist/css-BFvwcljm.js +284 -0
  36. package/dist/css-DCKUCzD6.cjs +3 -0
  37. package/dist/cssMode-CU2AJQMM.js +1509 -0
  38. package/dist/cssMode-l7eR8WSG.cjs +4 -0
  39. package/dist/cypher-122TYSjJ.cjs +1 -0
  40. package/dist/cypher-DaQ7hFRL.js +212 -0
  41. package/dist/dart-D8p_2HKP.js +236 -0
  42. package/dist/dart-DshcPGU8.cjs +1 -0
  43. package/dist/dist-DCz_Qv0B.js +884 -0
  44. package/dist/dist-D_2dZQH5.cjs +11 -0
  45. package/dist/dockerfile-CL8dwZCe.cjs +1 -0
  46. package/dist/dockerfile-DKWOQrwp.js +191 -0
  47. package/dist/ecl-DP3PNWGB.js +226 -0
  48. package/dist/ecl-DVx2J_EE.cjs +1 -0
  49. package/dist/editor.api-CbUDOph7.js +70302 -0
  50. package/dist/editor.api-lY2thcaq.cjs +644 -0
  51. package/dist/elixir-Xgx_1krO.cjs +1 -0
  52. package/dist/elixir-e9tDp1p1.js +523 -0
  53. package/dist/filter_label-DRJC3vpe.js +58 -0
  54. package/dist/filter_label-DssaWGpx.cjs +1 -0
  55. package/dist/filter_operators-C-TaTcNc.js +70 -0
  56. package/dist/filter_operators-D0kyB-XI.cjs +1 -0
  57. package/dist/flow9-C9BjpX8h.js +176 -0
  58. package/dist/flow9-DR-EyjYV.cjs +1 -0
  59. package/dist/freemarker2-BTGUjvgA.cjs +3 -0
  60. package/dist/freemarker2-C6Iq5MB-.js +724 -0
  61. package/dist/fsharp-BWm_FISn.js +147 -0
  62. package/dist/fsharp-DaBEigN7.cjs +1 -0
  63. package/dist/go-Xyq33f0v.cjs +1 -0
  64. package/dist/go-cmqV0Vy_.js +165 -0
  65. package/dist/graphql-BkFHHVmI.js +174 -0
  66. package/dist/graphql-Cj7XAy25.cjs +1 -0
  67. package/dist/handlebars-B2b1q7PA.cjs +1 -0
  68. package/dist/handlebars-DGGN9u4Y.js +418 -0
  69. package/dist/hcl-5I-P7bYX.js +219 -0
  70. package/dist/hcl-C3dpBsgU.cjs +1 -0
  71. package/dist/html-RJa-j-qT.js +339 -0
  72. package/dist/html-qfcUzk8e.cjs +1 -0
  73. package/dist/htmlMode-CYIxo4hc.cjs +4 -0
  74. package/dist/htmlMode-DDZ48mdp.js +1520 -0
  75. package/dist/index.cjs +303 -0
  76. package/dist/index.d.ts +4 -0
  77. package/dist/index.js +72895 -0
  78. package/dist/index_pattern_select--iGeA3sP.js +93 -0
  79. package/dist/index_pattern_select-BeN5049F.cjs +1 -0
  80. package/dist/ini-ChENqKh8.cjs +1 -0
  81. package/dist/ini-DSIAxBZt.js +94 -0
  82. package/dist/java-DGeAxsRb.js +173 -0
  83. package/dist/java-LZ6g7weJ.cjs +1 -0
  84. package/dist/javascript-CN5gTHH2.js +19 -0
  85. package/dist/javascript-CZ97a-BN.cjs +1 -0
  86. package/dist/jsonMode-BZDeJMLL.cjs +10 -0
  87. package/dist/jsonMode-DraOl-ka.js +1885 -0
  88. package/dist/julia-BeebccKw.cjs +1 -0
  89. package/dist/julia-CU4CtsP4.js +414 -0
  90. package/dist/kotlin-B8NxXJ89.js +183 -0
  91. package/dist/kotlin-M82nl514.cjs +1 -0
  92. package/dist/less-B4Q3fV9Y.cjs +2 -0
  93. package/dist/less-DbeQQzer.js +242 -0
  94. package/dist/lexon-CXQaaecE.cjs +1 -0
  95. package/dist/lexon-Cw9JuAKc.js +185 -0
  96. package/dist/lib-C9j_E-l0.js +47 -0
  97. package/dist/lib-Chy_6VKj.cjs +1 -0
  98. package/dist/liquid-BYNEOJvX.cjs +1 -0
  99. package/dist/liquid-DvB-d2w7.js +205 -0
  100. package/dist/lodash-C_2NO1eK.cjs +35 -0
  101. package/dist/lodash-D-qGlPRW.js +3769 -0
  102. package/dist/lua-CnG8Tpu2.cjs +1 -0
  103. package/dist/lua-yl5NzA_S.js +200 -0
  104. package/dist/m3-CVcm-OIn.cjs +1 -0
  105. package/dist/m3-CdNAqvIX.js +193 -0
  106. package/dist/markdown-C1h-EuiT.js +262 -0
  107. package/dist/markdown-DrRHDVSU.cjs +1 -0
  108. package/dist/mdx-BbiOYPr2.cjs +1 -0
  109. package/dist/mdx-Fk8VTCUK.js +335 -0
  110. package/dist/mips-DIWpzGF0.js +128 -0
  111. package/dist/mips-D_p8UYQb.cjs +1 -0
  112. package/dist/monaco.contribution-BpuUCejv.cjs +1 -0
  113. package/dist/monaco.contribution-Cq4QrMn0.js +134 -0
  114. package/dist/msdax-BiazpDQ1.js +156 -0
  115. package/dist/msdax-xM1_j20x.cjs +1 -0
  116. package/dist/mysql-DMsJkSnA.cjs +1 -0
  117. package/dist/mysql-DphBFJlP.js +168 -0
  118. package/dist/objective-c-BG02Lrht.cjs +1 -0
  119. package/dist/objective-c-DWZ8Qpyc.js +144 -0
  120. package/dist/pascal-BcvlMOdu.js +176 -0
  121. package/dist/pascal-CnP2Fqes.cjs +1 -0
  122. package/dist/pascaligo-BzDEm-l_.cjs +1 -0
  123. package/dist/pascaligo-DHEp4kzh.js +201 -0
  124. package/dist/perl-USYKPHpO.js +316 -0
  125. package/dist/perl-nIxw-e4R.cjs +1 -0
  126. package/dist/pgsql-Buk6XzVf.cjs +1 -0
  127. package/dist/pgsql-DzPhAh9W.js +158 -0
  128. package/dist/php-B3sFYUqV.cjs +1 -0
  129. package/dist/php-PfpSTefE.js +471 -0
  130. package/dist/pla-CZtnfWl6.cjs +1 -0
  131. package/dist/pla-DrFOZwDB.js +146 -0
  132. package/dist/postiats-4OGxVVUT.js +504 -0
  133. package/dist/postiats-CgJZf83Q.cjs +1 -0
  134. package/dist/powerquery-D9gzk2Dq.cjs +1 -0
  135. package/dist/powerquery-_h9-HEnY.js +190 -0
  136. package/dist/powershell-CZHaQY6z.cjs +1 -0
  137. package/dist/powershell-nOzcY8gy.js +211 -0
  138. package/dist/protobuf-DAgxhnea.js +659 -0
  139. package/dist/protobuf-D_C8Guej.cjs +2 -0
  140. package/dist/public-1PveQco4.js +1756 -0
  141. package/dist/public-D1K7oN7t.cjs +3 -0
  142. package/dist/pug-quEtG4rz.cjs +1 -0
  143. package/dist/pug-raGZNmZ1.js +300 -0
  144. package/dist/python-C45c7K7W.js +260 -0
  145. package/dist/python-CQX8JcT4.cjs +1 -0
  146. package/dist/qsharp-C2jz5tuo.js +143 -0
  147. package/dist/qsharp-CX1SSV_j.cjs +1 -0
  148. package/dist/query_bar_top_row-3UclS1nm.cjs +1 -0
  149. package/dist/query_bar_top_row-CfV4Iu71.cjs +1 -0
  150. package/dist/query_bar_top_row-D6a48VTk.js +11 -0
  151. package/dist/query_bar_top_row-DonV1OzY.js +2930 -0
  152. package/dist/query_string_input-75waAcWy.js +9 -0
  153. package/dist/query_string_input-CHG9w1ze.cjs +1 -0
  154. package/dist/query_string_input-CyPZVKif.js +366 -0
  155. package/dist/query_string_input-SOULY6dl.cjs +1 -0
  156. package/dist/r-CXkPcYYf.js +189 -0
  157. package/dist/r-DpVDQTST.cjs +1 -0
  158. package/dist/razor-BnoJmj1k.js +525 -0
  159. package/dist/razor-DYx4yJJn.cjs +1 -0
  160. package/dist/redis-DsCuCZIT.cjs +1 -0
  161. package/dist/redis-giKZvbbg.js +123 -0
  162. package/dist/redshift-qKVxBsP_.js +158 -0
  163. package/dist/redshift-z5_aUfdC.cjs +1 -0
  164. package/dist/restructuredtext-D0n4pabr.js +287 -0
  165. package/dist/restructuredtext-DdXoKocW.cjs +1 -0
  166. package/dist/ruby-BNrBlpcw.js +527 -0
  167. package/dist/ruby-Dj0sNBey.cjs +1 -0
  168. package/dist/rust-D6mpPoli.js +178 -0
  169. package/dist/rust-DjkW1U4M.cjs +1 -0
  170. package/dist/sb-BCN0JcpS.cjs +1 -0
  171. package/dist/sb-DhS9GhXl.js +143 -0
  172. package/dist/scala-BqxBEpi8.js +551 -0
  173. package/dist/scala-CyXWhZaJ.cjs +1 -0
  174. package/dist/scheme-Bh4oGAk3.js +170 -0
  175. package/dist/scheme-Cs9G6QEE.cjs +1 -0
  176. package/dist/scss-Byf08jwC.js +417 -0
  177. package/dist/scss-Fl7taPuq.cjs +3 -0
  178. package/dist/search_bar-Caqi1NVo.js +1815 -0
  179. package/dist/search_bar-DyO_WsC5.cjs +1 -0
  180. package/dist/services-9wPHk1eh.js +2350 -0
  181. package/dist/services-BPC3fXx4.cjs +7 -0
  182. package/dist/shard_failure_open_modal_button-BYTThYch.js +199 -0
  183. package/dist/shard_failure_open_modal_button-Dx8ML4VE.cjs +2 -0
  184. package/dist/shell-Cw5yNfC4.cjs +1 -0
  185. package/dist/shell-UoRv_tpG.js +223 -0
  186. package/dist/solidity-B5t7Lkol.js +147 -0
  187. package/dist/solidity-BoAzg9X_.cjs +1 -0
  188. package/dist/sophia-BrXXWhvp.js +147 -0
  189. package/dist/sophia-L84Jz6Ow.cjs +1 -0
  190. package/dist/sparql-B8ZTY48u.js +124 -0
  191. package/dist/sparql-D6lnG7vO.cjs +1 -0
  192. package/dist/sql-D_74hUL-.js +171 -0
  193. package/dist/sql-VXdYzIyz.cjs +1 -0
  194. package/dist/src/App.d.ts +2 -0
  195. package/dist/src/components/ResultHeader/Info.d.ts +30 -0
  196. package/dist/src/components/ResultHeader/index.d.ts +13 -0
  197. package/dist/src/components/context.d.ts +82 -0
  198. package/dist/src/components/euiicons.d.ts +1 -0
  199. package/dist/src/components/index.d.ts +8 -0
  200. package/dist/src/main.d.ts +1 -0
  201. package/dist/src/utils/request.d.ts +1 -0
  202. package/dist/src/utils/utils.d.ts +1 -0
  203. package/dist/st-CxJLwAAK.cjs +1 -0
  204. package/dist/st-D8Rdx9Bz.js +476 -0
  205. package/dist/suggestions_component-BBHwbjYT.js +1243 -0
  206. package/dist/suggestions_component-CF4sehth.cjs +77 -0
  207. package/dist/swift-ZBC6wQdc.cjs +1 -0
  208. package/dist/swift-s19Ivx3X.js +213 -0
  209. package/dist/systemverilog-DoSgAb1I.cjs +1 -0
  210. package/dist/systemverilog-fA72PnKj.js +298 -0
  211. package/dist/tcl-B8QLbcxi.js +223 -0
  212. package/dist/tcl-IXmy-lJ0.cjs +1 -0
  213. package/dist/tsMode-BrPRpJvb.js +597 -0
  214. package/dist/tsMode-CNvH6xuC.cjs +11 -0
  215. package/dist/tsup.config.d.ts +2 -0
  216. package/dist/twig-CT2RXmm0.cjs +1 -0
  217. package/dist/twig-Dy7NkzKI.js +388 -0
  218. package/dist/typescript-BRKHcp4S.js +263 -0
  219. package/dist/typescript-Bbw9fxuo.cjs +1 -0
  220. package/dist/typescript-CQjO9XnF.js +3 -0
  221. package/dist/typescript-D6q4AO2z.cjs +1 -0
  222. package/dist/typespec-CkKpvaMv.cjs +1 -0
  223. package/dist/typespec-ndyv0mQx.js +234 -0
  224. package/dist/vb-DET0NIW-.js +260 -0
  225. package/dist/vb-R3Kcrzvd.cjs +1 -0
  226. package/dist/vite.config.d.ts +2 -0
  227. package/dist/wgsl-D5TeQchR.js +145 -0
  228. package/dist/wgsl-FTDBzylH.cjs +298 -0
  229. package/dist/xml-BZjE3dtf.js +136 -0
  230. package/dist/xml-CxbMIueA.cjs +1 -0
  231. package/dist/yaml-Di_6aXC4.js +229 -0
  232. package/dist/yaml-DvaGkWBl.cjs +1 -0
  233. package/package.json +98 -0
@@ -0,0 +1,298 @@
1
+ var conf = {
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
+ {
34
+ open: "[",
35
+ close: "]"
36
+ },
37
+ {
38
+ open: "{",
39
+ close: "}"
40
+ },
41
+ {
42
+ open: "(",
43
+ close: ")"
44
+ },
45
+ {
46
+ open: "'",
47
+ close: "'",
48
+ notIn: ["string", "comment"]
49
+ },
50
+ {
51
+ open: "\"",
52
+ close: "\"",
53
+ notIn: ["string"]
54
+ }
55
+ ],
56
+ surroundingPairs: [
57
+ {
58
+ open: "{",
59
+ close: "}"
60
+ },
61
+ {
62
+ open: "[",
63
+ close: "]"
64
+ },
65
+ {
66
+ open: "(",
67
+ close: ")"
68
+ },
69
+ {
70
+ open: "\"",
71
+ close: "\""
72
+ },
73
+ {
74
+ open: "'",
75
+ close: "'"
76
+ }
77
+ ],
78
+ folding: {
79
+ offSide: !1,
80
+ markers: {
81
+ start: /* @__PURE__ */ RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),
82
+ end: /* @__PURE__ */ RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")
83
+ }
84
+ }
85
+ }, language = {
86
+ defaultToken: "",
87
+ tokenPostfix: ".sv",
88
+ brackets: [
89
+ {
90
+ token: "delimiter.curly",
91
+ open: "{",
92
+ close: "}"
93
+ },
94
+ {
95
+ token: "delimiter.parenthesis",
96
+ open: "(",
97
+ close: ")"
98
+ },
99
+ {
100
+ token: "delimiter.square",
101
+ open: "[",
102
+ close: "]"
103
+ },
104
+ {
105
+ token: "delimiter.angle",
106
+ open: "<",
107
+ close: ">"
108
+ }
109
+ ],
110
+ keywords: /* @__PURE__ */ "accept_on.alias.always.always_comb.always_ff.always_latch.and.assert.assign.assume.automatic.before.begin.bind.bins.binsof.bit.break.buf.bufif0.bufif1.byte.case.casex.casez.cell.chandle.checker.class.clocking.cmos.config.const.constraint.context.continue.cover.covergroup.coverpoint.cross.deassign.default.defparam.design.disable.dist.do.edge.else.end.endcase.endchecker.endclass.endclocking.endconfig.endfunction.endgenerate.endgroup.endinterface.endmodule.endpackage.endprimitive.endprogram.endproperty.endspecify.endsequence.endtable.endtask.enum.event.eventually.expect.export.extends.extern.final.first_match.for.force.foreach.forever.fork.forkjoin.function.generate.genvar.global.highz0.highz1.if.iff.ifnone.ignore_bins.illegal_bins.implements.implies.import.incdir.include.initial.inout.input.inside.instance.int.integer.interconnect.interface.intersect.join.join_any.join_none.large.let.liblist.library.local.localparam.logic.longint.macromodule.matches.medium.modport.module.nand.negedge.nettype.new.nexttime.nmos.nor.noshowcancelled.not.notif0.notif1.null.or.output.package.packed.parameter.pmos.posedge.primitive.priority.program.property.protected.pull0.pull1.pulldown.pullup.pulsestyle_ondetect.pulsestyle_onevent.pure.rand.randc.randcase.randsequence.rcmos.real.realtime.ref.reg.reject_on.release.repeat.restrict.return.rnmos.rpmos.rtran.rtranif0.rtranif1.s_always.s_eventually.s_nexttime.s_until.s_until_with.scalared.sequence.shortint.shortreal.showcancelled.signed.small.soft.solve.specify.specparam.static.string.strong.strong0.strong1.struct.super.supply0.supply1.sync_accept_on.sync_reject_on.table.tagged.task.this.throughout.time.timeprecision.timeunit.tran.tranif0.tranif1.tri.tri0.tri1.triand.trior.trireg.type.typedef.union.unique.unique0.unsigned.until.until_with.untyped.use.uwire.var.vectored.virtual.void.wait.wait_order.wand.weak.weak0.weak1.while.wildcard.wire.with.within.wor.xnor.xor".split("."),
111
+ builtin_gates: [
112
+ "and",
113
+ "nand",
114
+ "nor",
115
+ "or",
116
+ "xor",
117
+ "xnor",
118
+ "buf",
119
+ "not",
120
+ "bufif0",
121
+ "bufif1",
122
+ "notif1",
123
+ "notif0",
124
+ "cmos",
125
+ "nmos",
126
+ "pmos",
127
+ "rcmos",
128
+ "rnmos",
129
+ "rpmos",
130
+ "tran",
131
+ "tranif1",
132
+ "tranif0",
133
+ "rtran",
134
+ "rtranif1",
135
+ "rtranif0"
136
+ ],
137
+ operators: /* @__PURE__ */ "=.+=.-=.*=./=.%=.&=.|=.^=.<<=.>>+.<<<=.>>>=.?.:.+.-.!.~.&.~&.|.~|.^.~^.^~.+.-.*./.%.==.!=.===.!==.==?.!=?.&&.||.**.<.<=.>.>=.&.|.^.>>.<<.>>>.<<<.++.--.->.<->.inside.dist.::.+:.-:.*>.&&&.|->.|=>.#=#".split("."),
138
+ symbols: /[=><!~?:&|+\-*\/\^%#]+/,
139
+ escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
140
+ identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
141
+ systemcall: /[$][a-zA-Z0-9_]+/,
142
+ timeunits: /s|ms|us|ns|ps|fs/,
143
+ tokenizer: {
144
+ root: [
145
+ [/^(\s*)(@identifier)/, ["", { cases: {
146
+ "@builtin_gates": {
147
+ token: "keyword.$2",
148
+ next: "@module_instance"
149
+ },
150
+ table: {
151
+ token: "keyword.$2",
152
+ next: "@table"
153
+ },
154
+ "@keywords": { token: "keyword.$2" },
155
+ "@default": {
156
+ token: "identifier",
157
+ next: "@module_instance"
158
+ }
159
+ } }]],
160
+ [/^\s*`include/, {
161
+ token: "keyword.directive.include",
162
+ next: "@include"
163
+ }],
164
+ [/^\s*`\s*\w+/, "keyword"],
165
+ { include: "@identifier_or_keyword" },
166
+ { include: "@whitespace" },
167
+ [/\(\*.*\*\)/, "annotation"],
168
+ [/@systemcall/, "variable.predefined"],
169
+ [/[{}()\[\]]/, "@brackets"],
170
+ [/[<>](?!@symbols)/, "@brackets"],
171
+ [/@symbols/, { cases: {
172
+ "@operators": "delimiter",
173
+ "@default": ""
174
+ } }],
175
+ { include: "@numbers" },
176
+ [/[;,.]/, "delimiter"],
177
+ { include: "@strings" }
178
+ ],
179
+ identifier_or_keyword: [[/@identifier/, { cases: {
180
+ "@keywords": { token: "keyword.$0" },
181
+ "@default": "identifier"
182
+ } }]],
183
+ numbers: [
184
+ [/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"],
185
+ [/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"],
186
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"],
187
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"],
188
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"],
189
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"],
190
+ [/1step/, "number"],
191
+ [/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"],
192
+ [/'[01xXzZ]+/, "number"]
193
+ ],
194
+ module_instance: [
195
+ { include: "@whitespace" },
196
+ [/(#?)(\()/, ["", {
197
+ token: "@brackets",
198
+ next: "@port_connection"
199
+ }]],
200
+ [/@identifier\s*[;={}\[\],]/, {
201
+ token: "@rematch",
202
+ next: "@pop"
203
+ }],
204
+ [/@symbols|[;={}\[\],]/, {
205
+ token: "@rematch",
206
+ next: "@pop"
207
+ }],
208
+ [/@identifier/, "type"],
209
+ [
210
+ /;/,
211
+ "delimiter",
212
+ "@pop"
213
+ ]
214
+ ],
215
+ port_connection: [
216
+ { include: "@identifier_or_keyword" },
217
+ { include: "@whitespace" },
218
+ [/@systemcall/, "variable.predefined"],
219
+ { include: "@numbers" },
220
+ { include: "@strings" },
221
+ [/[,]/, "delimiter"],
222
+ [
223
+ /\(/,
224
+ "@brackets",
225
+ "@port_connection"
226
+ ],
227
+ [
228
+ /\)/,
229
+ "@brackets",
230
+ "@pop"
231
+ ]
232
+ ],
233
+ whitespace: [
234
+ [/[ \t\r\n]+/, ""],
235
+ [
236
+ /\/\*/,
237
+ "comment",
238
+ "@comment"
239
+ ],
240
+ [/\/\/.*$/, "comment"]
241
+ ],
242
+ comment: [
243
+ [/[^\/*]+/, "comment"],
244
+ [
245
+ /\*\//,
246
+ "comment",
247
+ "@pop"
248
+ ],
249
+ [/[\/*]/, "comment"]
250
+ ],
251
+ strings: [[/"([^"\\]|\\.)*$/, "string.invalid"], [
252
+ /"/,
253
+ "string",
254
+ "@string"
255
+ ]],
256
+ string: [
257
+ [/[^\\"]+/, "string"],
258
+ [/@escapes/, "string.escape"],
259
+ [/\\./, "string.escape.invalid"],
260
+ [
261
+ /"/,
262
+ "string",
263
+ "@pop"
264
+ ]
265
+ ],
266
+ include: [[/(\s*)(")([\w*\/*]*)(.\w*)(")/, [
267
+ "",
268
+ "string.include.identifier",
269
+ "string.include.identifier",
270
+ "string.include.identifier",
271
+ {
272
+ token: "string.include.identifier",
273
+ next: "@pop"
274
+ }
275
+ ]], [/(\s*)(<)([\w*\/*]*)(.\w*)(>)/, [
276
+ "",
277
+ "string.include.identifier",
278
+ "string.include.identifier",
279
+ "string.include.identifier",
280
+ {
281
+ token: "string.include.identifier",
282
+ next: "@pop"
283
+ }
284
+ ]]],
285
+ table: [
286
+ { include: "@whitespace" },
287
+ [/[()]/, "@brackets"],
288
+ [/[:;]/, "delimiter"],
289
+ [/[01\-*?xXbBrRfFpPnN]/, "variable.predefined"],
290
+ [
291
+ "endtable",
292
+ "keyword.endtable",
293
+ "@pop"
294
+ ]
295
+ ]
296
+ }
297
+ };
298
+ export { conf, language };
@@ -0,0 +1,223 @@
1
+ var conf = {
2
+ brackets: [
3
+ ["{", "}"],
4
+ ["[", "]"],
5
+ ["(", ")"]
6
+ ],
7
+ autoClosingPairs: [
8
+ {
9
+ open: "{",
10
+ close: "}"
11
+ },
12
+ {
13
+ open: "[",
14
+ close: "]"
15
+ },
16
+ {
17
+ open: "(",
18
+ close: ")"
19
+ },
20
+ {
21
+ open: "\"",
22
+ close: "\""
23
+ },
24
+ {
25
+ open: "'",
26
+ close: "'"
27
+ }
28
+ ],
29
+ surroundingPairs: [
30
+ {
31
+ open: "{",
32
+ close: "}"
33
+ },
34
+ {
35
+ open: "[",
36
+ close: "]"
37
+ },
38
+ {
39
+ open: "(",
40
+ close: ")"
41
+ },
42
+ {
43
+ open: "\"",
44
+ close: "\""
45
+ },
46
+ {
47
+ open: "'",
48
+ close: "'"
49
+ }
50
+ ]
51
+ }, language = {
52
+ tokenPostfix: ".tcl",
53
+ specialFunctions: [
54
+ "set",
55
+ "unset",
56
+ "rename",
57
+ "variable",
58
+ "proc",
59
+ "coroutine",
60
+ "foreach",
61
+ "incr",
62
+ "append",
63
+ "lappend",
64
+ "linsert",
65
+ "lreplace"
66
+ ],
67
+ mainFunctions: [
68
+ "if",
69
+ "then",
70
+ "elseif",
71
+ "else",
72
+ "case",
73
+ "switch",
74
+ "while",
75
+ "for",
76
+ "break",
77
+ "continue",
78
+ "return",
79
+ "package",
80
+ "namespace",
81
+ "catch",
82
+ "exit",
83
+ "eval",
84
+ "expr",
85
+ "uplevel",
86
+ "upvar"
87
+ ],
88
+ builtinFunctions: /* @__PURE__ */ "file.info.concat.join.lindex.list.llength.lrange.lsearch.lsort.split.array.parray.binary.format.regexp.regsub.scan.string.subst.dict.cd.clock.exec.glob.pid.pwd.close.eof.fblocked.fconfigure.fcopy.fileevent.flush.gets.open.puts.read.seek.socket.tell.interp.after.auto_execok.auto_load.auto_mkindex.auto_reset.bgerror.error.global.history.load.source.time.trace.unknown.unset.update.vwait.winfo.wm.bind.event.pack.place.grid.font.bell.clipboard.destroy.focus.grab.lower.option.raise.selection.send.tk.tkwait.tk_bisque.tk_focusNext.tk_focusPrev.tk_focusFollowsMouse.tk_popup.tk_setPalette".split("."),
89
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
90
+ brackets: [
91
+ {
92
+ open: "(",
93
+ close: ")",
94
+ token: "delimiter.parenthesis"
95
+ },
96
+ {
97
+ open: "{",
98
+ close: "}",
99
+ token: "delimiter.curly"
100
+ },
101
+ {
102
+ open: "[",
103
+ close: "]",
104
+ token: "delimiter.square"
105
+ }
106
+ ],
107
+ escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
108
+ variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,
109
+ tokenizer: {
110
+ root: [
111
+ [/[a-zA-Z_]\w*/, { cases: {
112
+ "@specialFunctions": {
113
+ token: "keyword.flow",
114
+ next: "@specialFunc"
115
+ },
116
+ "@mainFunctions": "keyword",
117
+ "@builtinFunctions": "variable",
118
+ "@default": "operator.scss"
119
+ } }],
120
+ [/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"],
121
+ { include: "@whitespace" },
122
+ [/[{}()\[\]]/, "@brackets"],
123
+ [/@symbols/, "operator"],
124
+ [/\$+(?:\:\:)?\{/, {
125
+ token: "identifier",
126
+ next: "@nestedVariable"
127
+ }],
128
+ [/@variables/, "type.identifier"],
129
+ [/\.(?!\d|\.)[\w\-]*/, "operator.sql"],
130
+ [/\d+(\.\d+)?/, "number"],
131
+ [/\d+/, "number"],
132
+ [/;/, "delimiter"],
133
+ [/"/, {
134
+ token: "string.quote",
135
+ bracket: "@open",
136
+ next: "@dstring"
137
+ }],
138
+ [/'/, {
139
+ token: "string.quote",
140
+ bracket: "@open",
141
+ next: "@sstring"
142
+ }]
143
+ ],
144
+ dstring: [
145
+ [/\[/, {
146
+ token: "@brackets",
147
+ next: "@nestedCall"
148
+ }],
149
+ [/\$+(?:\:\:)?\{/, {
150
+ token: "identifier",
151
+ next: "@nestedVariable"
152
+ }],
153
+ [/@variables/, "type.identifier"],
154
+ [/[^\\$\[\]"]+/, "string"],
155
+ [/@escapes/, "string.escape"],
156
+ [/"/, {
157
+ token: "string.quote",
158
+ bracket: "@close",
159
+ next: "@pop"
160
+ }]
161
+ ],
162
+ sstring: [
163
+ [/\[/, {
164
+ token: "@brackets",
165
+ next: "@nestedCall"
166
+ }],
167
+ [/\$+(?:\:\:)?\{/, {
168
+ token: "identifier",
169
+ next: "@nestedVariable"
170
+ }],
171
+ [/@variables/, "type.identifier"],
172
+ [/[^\\$\[\]']+/, "string"],
173
+ [/@escapes/, "string.escape"],
174
+ [/'/, {
175
+ token: "string.quote",
176
+ bracket: "@close",
177
+ next: "@pop"
178
+ }]
179
+ ],
180
+ whitespace: [
181
+ [/[ \t\r\n]+/, "white"],
182
+ [/#.*\\$/, {
183
+ token: "comment",
184
+ next: "@newlineComment"
185
+ }],
186
+ [/#.*(?!\\)$/, "comment"]
187
+ ],
188
+ newlineComment: [[/.*\\$/, "comment"], [/.*(?!\\)$/, {
189
+ token: "comment",
190
+ next: "@pop"
191
+ }]],
192
+ nestedVariable: [[/[^\{\}\$]+/, "type.identifier"], [/\}/, {
193
+ token: "identifier",
194
+ next: "@pop"
195
+ }]],
196
+ nestedCall: [
197
+ [/\[/, {
198
+ token: "@brackets",
199
+ next: "@nestedCall"
200
+ }],
201
+ [/\]/, {
202
+ token: "@brackets",
203
+ next: "@pop"
204
+ }],
205
+ { include: "root" }
206
+ ],
207
+ specialFunc: [
208
+ [/"/, {
209
+ token: "string",
210
+ next: "@dstring"
211
+ }],
212
+ [/'/, {
213
+ token: "string",
214
+ next: "@sstring"
215
+ }],
216
+ [/\S+/, {
217
+ token: "type",
218
+ next: "@pop"
219
+ }]
220
+ ]
221
+ }
222
+ };
223
+ export { conf, language };
@@ -0,0 +1 @@
1
+ const e=require(`./chunk-BjqF3vbe.cjs`);var t={brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},n={tokenPostfix:`.tcl`,specialFunctions:[`set`,`unset`,`rename`,`variable`,`proc`,`coroutine`,`foreach`,`incr`,`append`,`lappend`,`linsert`,`lreplace`],mainFunctions:[`if`,`then`,`elseif`,`else`,`case`,`switch`,`while`,`for`,`break`,`continue`,`return`,`package`,`namespace`,`catch`,`exit`,`eval`,`expr`,`uplevel`,`upvar`],builtinFunctions:`file.info.concat.join.lindex.list.llength.lrange.lsearch.lsort.split.array.parray.binary.format.regexp.regsub.scan.string.subst.dict.cd.clock.exec.glob.pid.pwd.close.eof.fblocked.fconfigure.fcopy.fileevent.flush.gets.open.puts.read.seek.socket.tell.interp.after.auto_execok.auto_load.auto_mkindex.auto_reset.bgerror.error.global.history.load.source.time.trace.unknown.unset.update.vwait.winfo.wm.bind.event.pack.place.grid.font.bell.clipboard.destroy.focus.grab.lower.option.raise.selection.send.tk.tkwait.tk_bisque.tk_focusNext.tk_focusPrev.tk_focusFollowsMouse.tk_popup.tk_setPalette`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:`keyword.flow`,next:`@specialFunc`},"@mainFunctions":`keyword`,"@builtinFunctions":`variable`,"@default":`operator.scss`}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,`metatag`],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/@symbols/,`operator`],[/\$+(?:\:\:)?\{/,{token:`identifier`,next:`@nestedVariable`}],[/@variables/,`type.identifier`],[/\.(?!\d|\.)[\w\-]*/,`operator.sql`],[/\d+(\.\d+)?/,`number`],[/\d+/,`number`],[/;/,`delimiter`],[/"/,{token:`string.quote`,bracket:`@open`,next:`@dstring`}],[/'/,{token:`string.quote`,bracket:`@open`,next:`@sstring`}]],dstring:[[/\[/,{token:`@brackets`,next:`@nestedCall`}],[/\$+(?:\:\:)?\{/,{token:`identifier`,next:`@nestedVariable`}],[/@variables/,`type.identifier`],[/[^\\$\[\]"]+/,`string`],[/@escapes/,`string.escape`],[/"/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],sstring:[[/\[/,{token:`@brackets`,next:`@nestedCall`}],[/\$+(?:\:\:)?\{/,{token:`identifier`,next:`@nestedVariable`}],[/@variables/,`type.identifier`],[/[^\\$\[\]']+/,`string`],[/@escapes/,`string.escape`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,`white`],[/#.*\\$/,{token:`comment`,next:`@newlineComment`}],[/#.*(?!\\)$/,`comment`]],newlineComment:[[/.*\\$/,`comment`],[/.*(?!\\)$/,{token:`comment`,next:`@pop`}]],nestedVariable:[[/[^\{\}\$]+/,`type.identifier`],[/\}/,{token:`identifier`,next:`@pop`}]],nestedCall:[[/\[/,{token:`@brackets`,next:`@nestedCall`}],[/\]/,{token:`@brackets`,next:`@pop`}],{include:`root`}],specialFunc:[[/"/,{token:`string`,next:`@dstring`}],[/'/,{token:`string`,next:`@sstring`}],[/\S+/,{token:`type`,next:`@pop`}]]}};exports.conf=t,exports.language=n;