@vc-shell/framework 1.1.2 → 1.1.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 (271) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/apl-B2DGVGxc.js +76 -0
  3. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  4. package/dist/asn1-jKiBa2Ya.js +95 -0
  5. package/dist/asterisk-DS281yxp.js +271 -0
  6. package/dist/brainfuck-C_p9pTT8.js +34 -0
  7. package/dist/clike-BUuHEmgZ.js +620 -0
  8. package/dist/clojure-CCKyeQKf.js +800 -0
  9. package/dist/cmake-CuaCgAKt.js +28 -0
  10. package/dist/cobol-BlTKFDRj.js +72 -0
  11. package/dist/coffeescript-BVCvwO8I.js +179 -0
  12. package/dist/commonlisp-D_kxz07b.js +75 -0
  13. package/dist/crystal-D309uH6_.js +217 -0
  14. package/dist/css-bIlmDBTK.js +1560 -0
  15. package/dist/cypher-BMq4Fwjl.js +68 -0
  16. package/dist/d-BZcgY6La.js +127 -0
  17. package/dist/diff-Cg9d_RX2.js +18 -0
  18. package/dist/{assets/dockerfile-D0MivFIF.js → dockerfile-DIy8NleC.js} +36 -41
  19. package/dist/dtd-CtLokQ-U.js +84 -0
  20. package/dist/dylan-QYeExnWK.js +234 -0
  21. package/dist/ebnf-DUPDuY4r.js +78 -0
  22. package/dist/ecl-CiXN-g_D.js +121 -0
  23. package/dist/eiffel-yQhjl4T1.js +110 -0
  24. package/dist/elm-CNT9vbN0.js +108 -0
  25. package/dist/erlang-CFOYdy9e.js +487 -0
  26. package/dist/factor-DDOC7X6P.js +65 -0
  27. package/dist/fcl-CPC2WYrI.js +103 -0
  28. package/dist/forth-BmxRyE9S.js +60 -0
  29. package/dist/fortran-9bvPyrOW.js +442 -0
  30. package/dist/framework.js +288 -29
  31. package/dist/gas-BdfkXJT_.js +183 -0
  32. package/dist/gherkin-CJuwpceU.js +34 -0
  33. package/dist/groovy-DZeT_VM-.js +146 -0
  34. package/dist/haskell-Bvt3Qq1t.js +375 -0
  35. package/dist/haxe-70NVW1pR.js +359 -0
  36. package/dist/http-D9LttvKF.js +44 -0
  37. package/dist/idl-B6TRFYjl.js +947 -0
  38. package/dist/{assets/index-BKF-A58l.js → index-BBYKbiRX.js} +79 -92
  39. package/dist/index-BDm0tcWn.js +145680 -0
  40. package/dist/{assets/index-CeeaNa4F.js → index-BDqUaIyQ.js} +136 -167
  41. package/dist/index-BdflTsg6.js +308 -0
  42. package/dist/{assets/index-CtmpJVwa.js → index-BpBTtmQ6.js} +270 -312
  43. package/dist/index-Br0y2YMn.js +58 -0
  44. package/dist/index-CIcET-ZI.js +71 -0
  45. package/dist/index-CYAMpxnu.js +341 -0
  46. package/dist/index-Cf2H7YZ1.js +98 -0
  47. package/dist/{assets/index-Bv_z_qRq.js → index-Ck055pN8.js} +121 -124
  48. package/dist/index-D-fPN3yf.js +75 -0
  49. package/dist/{assets/index-BT8o9-M5.js → index-DJOis7Nc.js} +267 -386
  50. package/dist/index-DKtQMsy4.js +538 -0
  51. package/dist/{assets/index-DMTL7O1s.js → index-DWTsz5bC.js} +570 -586
  52. package/dist/{assets/index-C7zlEJy8.js → index-DuY7BIGm.js} +229 -302
  53. package/dist/{assets/index-B1srGfDb.js → index-o6aSdNED.js} +119 -165
  54. package/dist/index-wfv8ehcx.js +249 -0
  55. package/dist/index.css +9 -18
  56. package/dist/javascript-WMWNx-Vj.js +690 -0
  57. package/dist/jinja2-DnB6dQmV.js +154 -0
  58. package/dist/julia-DpvXAuO6.js +241 -0
  59. package/dist/livescript-CanGTf8u.js +272 -0
  60. package/dist/lua-XplVlWi_.js +217 -0
  61. package/dist/mathematica-jaRHnSxC.js +35 -0
  62. package/dist/mbox-BctzC1hL.js +76 -0
  63. package/dist/mirc-CFBPAOaF.js +72 -0
  64. package/dist/mllike-BSnXJBGA.js +272 -0
  65. package/dist/modelica-vUgVs--1.js +93 -0
  66. package/dist/mscgen-Cpl0NYLN.js +104 -0
  67. package/dist/mumps-CQoS1kWX.js +25 -0
  68. package/dist/nginx-zDPm3Z74.js +89 -0
  69. package/dist/nsis-fePjrhq7.js +62 -0
  70. package/dist/ntriples-CsNjv2QF.js +79 -0
  71. package/dist/octave-C8PmmSRH.js +143 -0
  72. package/dist/oz-Ce8aN8oE.js +151 -0
  73. package/dist/pascal-De0D6mP7.js +77 -0
  74. package/dist/perl-B4bSCe1C.js +915 -0
  75. package/dist/pig-D24Z8EXi.js +54 -0
  76. package/dist/powershell-DkYVfTzP.js +249 -0
  77. package/dist/properties-Dn9wna3M.js +26 -0
  78. package/dist/protobuf-BPIjwpzm.js +49 -0
  79. package/dist/pug-BqUR2bBq.js +248 -0
  80. package/dist/puppet-nyd4dhjf.js +45 -0
  81. package/dist/python-B5QdSKoL.js +313 -0
  82. package/dist/q-DXjKs-tC.js +83 -0
  83. package/dist/r-LKEuhEGI.js +104 -0
  84. package/dist/rpm-IznJm2Xc.js +57 -0
  85. package/dist/ruby-CcYfvIk6.js +228 -0
  86. package/dist/sas-7E8yHoCW.js +105 -0
  87. package/dist/scheme-DjibxsNh.js +124 -0
  88. package/dist/shell-C0C2sNA_.js +182 -0
  89. package/dist/sieve-Bwz7vjP5.js +72 -0
  90. package/dist/simple-mode-B0dvCdAA.js +89 -0
  91. package/dist/smalltalk-Bhddl2pB.js +48 -0
  92. package/dist/solr-BNlsLglM.js +41 -0
  93. package/dist/sparql-FarWu_Gb.js +197 -0
  94. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  95. package/dist/sql-mMre1Bo3.js +282 -0
  96. package/dist/stex-92raWT1r.js +129 -0
  97. package/dist/stylus-CAdqWld3.js +250 -0
  98. package/dist/swift-DSxqR9R6.js +230 -0
  99. package/dist/tcl-xfoLljhY.js +81 -0
  100. package/dist/textile-D1AWE-pc.js +295 -0
  101. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  102. package/dist/tiki-__Kn3CeS.js +181 -0
  103. package/dist/toml-BHiuTcfn.js +49 -0
  104. package/dist/troff-D2UO-fKf.js +35 -0
  105. package/dist/tsconfig.tsbuildinfo +1 -1
  106. package/dist/ttcn-Bsa4sfRm.js +123 -0
  107. package/dist/ttcn-cfg-Bac_acMi.js +88 -0
  108. package/dist/turtle-xwJUxoPV.js +80 -0
  109. package/dist/ui/components/atoms/vc-widget/vc-widget.vue.d.ts.map +1 -1
  110. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue.d.ts.map +1 -1
  111. package/dist/vb-c2kQGd6-.js +74 -0
  112. package/dist/vbscript-Dz1TtKsy.js +324 -0
  113. package/dist/velocity-DJd0pTTC.js +96 -0
  114. package/dist/verilog-C4VGD9n1.js +263 -0
  115. package/dist/vhdl-T9HkrbI2.js +106 -0
  116. package/dist/webidl-CjfDENEo.js +155 -0
  117. package/dist/xquery-BUQdORAS.js +422 -0
  118. package/dist/yacas-C0absKBh.js +73 -0
  119. package/dist/z80-C8rPtw-0.js +61 -0
  120. package/package.json +4 -4
  121. package/ui/components/atoms/vc-widget/vc-widget.vue +2 -0
  122. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +65 -32
  123. package/dist/assets/apl-NdZ6-T1z.js +0 -142
  124. package/dist/assets/asciiarmor-CmJEbAuq.js +0 -56
  125. package/dist/assets/asn1-Ctc8K72v.js +0 -192
  126. package/dist/assets/asterisk-D6r__RMF.js +0 -187
  127. package/dist/assets/brainfuck-COwWCBpq.js +0 -70
  128. package/dist/assets/clike-C-PtfL50.js +0 -1019
  129. package/dist/assets/clojure-C2XPrGCa.js +0 -274
  130. package/dist/assets/cmake-BGrEgXCL.js +0 -81
  131. package/dist/assets/cobol-DShPmpZe.js +0 -234
  132. package/dist/assets/coffeescript-BG8vTfSz.js +0 -329
  133. package/dist/assets/commonlisp-8oE2EpEe.js +0 -108
  134. package/dist/assets/core-api-BMLS9FrT.js +0 -8288
  135. package/dist/assets/core-composables-DYxpIWyY.js +0 -1799
  136. package/dist/assets/core-constants-DiKDBbnD.js +0 -83
  137. package/dist/assets/core-directives-QhJx9kWh.js +0 -41
  138. package/dist/assets/core-interceptors-CSjUvxQ0.js +0 -78
  139. package/dist/assets/core-plugins-wv2bDZ0l.js +0 -4919
  140. package/dist/assets/core-services-CAfJRsjs.js +0 -4
  141. package/dist/assets/core-utilities-BTktq_a-.js +0 -33
  142. package/dist/assets/crystal--rIRMl16.js +0 -419
  143. package/dist/assets/css/core-directives-FL4vIIkN.css +0 -73
  144. package/dist/assets/css/fonts-M1mtyV8L.css +0 -305
  145. package/dist/assets/css/icons-css-DbCVsovz.css +0 -41
  146. package/dist/assets/css/shared-components-bnLHdCtf.css +0 -429
  147. package/dist/assets/css/shared-modules-CNOICmYQ.css +0 -45
  148. package/dist/assets/css/styles-C62nDZwV.css +0 -4096
  149. package/dist/assets/css/ui-app-Bh9hmlIB.css +0 -1287
  150. package/dist/assets/css/ui-content-B29jsmK7.css +0 -1187
  151. package/dist/assets/css/ui-controls-CRtfFczw.css +0 -387
  152. package/dist/assets/css/ui-data-CYLxfdUa.css +0 -1555
  153. package/dist/assets/css/ui-form-C3WrWfVl.css +0 -71
  154. package/dist/assets/css/ui-form-fields-DOtHhDeM.css +0 -1360
  155. package/dist/assets/css/ui-helpers-bOoNv5dS.css +0 -37
  156. package/dist/assets/css/ui-indicators-CybQnCoU.css +0 -628
  157. package/dist/assets/css/ui-layout-DyGKgizy.css +0 -251
  158. package/dist/assets/css/ui-media-TWYep8js.css +0 -298
  159. package/dist/assets/css/ui-media-advanced-BGxy3VSB.css +0 -183
  160. package/dist/assets/css/ui-navigation-DcPRn8SB.css +0 -1693
  161. package/dist/assets/css-C_ZeEwz2.js +0 -847
  162. package/dist/assets/cypher-Bayei42D.js +0 -122
  163. package/dist/assets/d-B0hhz6be.js +0 -205
  164. package/dist/assets/diff-DQutOIXs.js +0 -30
  165. package/dist/assets/dtd-C1CeYVnM.js +0 -121
  166. package/dist/assets/dylan-Dm9-uD-A.js +0 -337
  167. package/dist/assets/ebnf-jWG_1Yly.js +0 -151
  168. package/dist/assets/ecl-CgJPA6z9.js +0 -190
  169. package/dist/assets/eiffel-lj7uLahq.js +0 -146
  170. package/dist/assets/elm-Cz7o1ijk.js +0 -230
  171. package/dist/assets/erlang-CyL5QOyR.js +0 -581
  172. package/dist/assets/factor-BVWHwYpu.js +0 -65
  173. package/dist/assets/fcl-DiozYjc8.js +0 -154
  174. package/dist/assets/forth-B7vn5ze0.js +0 -164
  175. package/dist/assets/fortran-D2XNEnBT.js +0 -172
  176. package/dist/assets/gas-B_Tj57Ve.js +0 -343
  177. package/dist/assets/gherkin-CJ6Qk4EZ.js +0 -147
  178. package/dist/assets/groovy-ioGz2WSV.js +0 -228
  179. package/dist/assets/haskell-BHnm1B83.js +0 -239
  180. package/dist/assets/haxe-Bn6Yo6N3.js +0 -490
  181. package/dist/assets/http-BOd5SYCT.js +0 -89
  182. package/dist/assets/idl-FSFk8_xX.js +0 -274
  183. package/dist/assets/index--5fKpGeN.js +0 -792
  184. package/dist/assets/index-0lME64YH.js +0 -342
  185. package/dist/assets/index-B6Ip0FgO.js +0 -437
  186. package/dist/assets/index-BmV05E5M.js +0 -479
  187. package/dist/assets/index-C6MavZDA.js +0 -131
  188. package/dist/assets/index-CwKpgcYl.js +0 -85
  189. package/dist/assets/index-DRUmDL0J.js +0 -59
  190. package/dist/assets/index-DgFC-M9G.js +0 -96
  191. package/dist/assets/javascript-DGrAs70C.js +0 -922
  192. package/dist/assets/jinja2-D9k5QrXv.js +0 -171
  193. package/dist/assets/julia-DM42tOPB.js +0 -369
  194. package/dist/assets/livescript-Dci8HnOi.js +0 -259
  195. package/dist/assets/lua-CByQu4v6.js +0 -137
  196. package/dist/assets/lucide-icons-af0BY3bi.js +0 -34555
  197. package/dist/assets/mathematica-Dkv0uCYF.js +0 -153
  198. package/dist/assets/mbox-CYTvs5kC.js +0 -114
  199. package/dist/assets/mirc-DpgP3GCo.js +0 -176
  200. package/dist/assets/mllike-C6tNn2Yt.js +0 -343
  201. package/dist/assets/modelica-CR6hTSce.js +0 -192
  202. package/dist/assets/mscgen-D0GXtzMS.js +0 -149
  203. package/dist/assets/mumps-Bf1EyDa6.js +0 -129
  204. package/dist/assets/nginx-By9Phklj.js +0 -163
  205. package/dist/assets/nsis-B5ggMLQ9.js +0 -80
  206. package/dist/assets/ntriples-C7VJ7pnm.js +0 -141
  207. package/dist/assets/octave-6yR_ix15.js +0 -112
  208. package/dist/assets/oz-CEUnktiQ.js +0 -235
  209. package/dist/assets/pascal-Dksf1EyF.js +0 -124
  210. package/dist/assets/perl-B99DUQQt.js +0 -819
  211. package/dist/assets/pig-DFeDRta6.js +0 -149
  212. package/dist/assets/powershell-DhwsNWMx.js +0 -381
  213. package/dist/assets/properties-o21uErwC.js +0 -62
  214. package/dist/assets/protobuf-YxlANsmD.js +0 -54
  215. package/dist/assets/pug-bUgjeODZ.js +0 -504
  216. package/dist/assets/puppet-B8WICGYE.js +0 -205
  217. package/dist/assets/python-D3FFx1Id.js +0 -389
  218. package/dist/assets/q-D2Hjhl2C.js +0 -123
  219. package/dist/assets/r-D73k5lac.js +0 -174
  220. package/dist/assets/rpm-Duv_WH0z.js +0 -89
  221. package/dist/assets/ruby-DGCVqZDt.js +0 -287
  222. package/dist/assets/sas-XjPv1Vy5.js +0 -268
  223. package/dist/assets/scheme-DeaA28vt.js +0 -263
  224. package/dist/assets/shared-components-CfAt2hC6.js +0 -1501
  225. package/dist/assets/shared-composables-v9NkNuAe.js +0 -35
  226. package/dist/assets/shared-modules-CDP-H5ZB.js +0 -3588
  227. package/dist/assets/shared-pages-BGRRA5WB.js +0 -20
  228. package/dist/assets/shell-Bx6QZTgx.js +0 -145
  229. package/dist/assets/sieve-CWCD62sW.js +0 -178
  230. package/dist/assets/simple-mode-BAO9cD7H.js +0 -136
  231. package/dist/assets/smalltalk-DSQbF4MF.js +0 -153
  232. package/dist/assets/solr-v_XRf31C.js +0 -80
  233. package/dist/assets/sparql-BrfDqf0-.js +0 -170
  234. package/dist/assets/spreadsheet-Csn84Pef.js +0 -98
  235. package/dist/assets/sql-D4utlq1l.js +0 -480
  236. package/dist/assets/stex-DBkktma-.js +0 -246
  237. package/dist/assets/stylus-ByG-Fd6f.js +0 -750
  238. package/dist/assets/swift-CHbTprt3.js +0 -202
  239. package/dist/assets/tcl-BRlMUELr.js +0 -125
  240. package/dist/assets/textile-CqfTUjd4.js +0 -441
  241. package/dist/assets/tiddlywiki-BrsoM8KB.js +0 -278
  242. package/dist/assets/tiki-D-ivWPkc.js +0 -289
  243. package/dist/assets/toml-t_IhJu83.js +0 -75
  244. package/dist/assets/troff-DckGF2AE.js +0 -64
  245. package/dist/assets/ttcn-B8TAFbRR.js +0 -253
  246. package/dist/assets/ttcn-cfg-NHh25oCM.js +0 -197
  247. package/dist/assets/turtle-D9Js0BlL.js +0 -141
  248. package/dist/assets/ui-app-D31Pr1WY.js +0 -1993
  249. package/dist/assets/ui-content-B7SxH8y9.js +0 -52887
  250. package/dist/assets/ui-controls-nmDJYLmC.js +0 -348
  251. package/dist/assets/ui-data-Ci3b1ye0.js +0 -22901
  252. package/dist/assets/ui-form-Cs5ooOo7.js +0 -159
  253. package/dist/assets/ui-form-fields-DFQi31jT.js +0 -40575
  254. package/dist/assets/ui-helpers-CF-EUlOg.js +0 -1736
  255. package/dist/assets/ui-indicators-mIQeEqha.js +0 -199
  256. package/dist/assets/ui-layout-v2XBQky3.js +0 -320
  257. package/dist/assets/ui-media-WWYrwmZw.js +0 -1259
  258. package/dist/assets/ui-media-advanced-T8ibi153.js +0 -492
  259. package/dist/assets/ui-modals-BdZXzI85.js +0 -2
  260. package/dist/assets/ui-navigation-BtHa6ovW.js +0 -24269
  261. package/dist/assets/utils-DZK5fu48.js +0 -17216
  262. package/dist/assets/vb-CbIGLrpY.js +0 -249
  263. package/dist/assets/vbscript-8ANWle9n.js +0 -320
  264. package/dist/assets/velocity-D6hz3Hzw.js +0 -186
  265. package/dist/assets/verilog-DIV442at.js +0 -565
  266. package/dist/assets/vhdl-BlTiZo_v.js +0 -174
  267. package/dist/assets/vueuse-CTQm4Zh0.js +0 -9308
  268. package/dist/assets/webidl-Cp3tcqdk.js +0 -179
  269. package/dist/assets/xquery-Dd4TBzXv.js +0 -411
  270. package/dist/assets/yacas-DQ1WucF0.js +0 -182
  271. package/dist/assets/z80-P1j44jDI.js +0 -102
@@ -1,337 +0,0 @@
1
- function forEach(arr, f) {
2
- for (var i = 0; i < arr.length; i++) f(arr[i], i);
3
- }
4
- function some(arr, f) {
5
- for (var i = 0; i < arr.length; i++) if (f(arr[i], i)) return true
6
- return false
7
- }
8
-
9
- // Words
10
- var words = {
11
- // Words that introduce unnamed definitions like "define interface"
12
- unnamedDefinition: ["interface"],
13
-
14
- // Words that introduce simple named definitions like "define library"
15
- namedDefinition: ["module", "library", "macro",
16
- "C-struct", "C-union",
17
- "C-function", "C-callable-wrapper"
18
- ],
19
-
20
- // Words that introduce type definitions like "define class".
21
- // These are also parameterized like "define method" and are
22
- // appended to otherParameterizedDefinitionWords
23
- typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"],
24
-
25
- // Words that introduce trickier definitions like "define method".
26
- // These require special definitions to be added to startExpressions
27
- otherParameterizedDefinition: ["method", "function",
28
- "C-variable", "C-address"
29
- ],
30
-
31
- // Words that introduce module constant definitions.
32
- // These must also be simple definitions and are
33
- // appended to otherSimpleDefinitionWords
34
- constantSimpleDefinition: ["constant"],
35
-
36
- // Words that introduce module variable definitions.
37
- // These must also be simple definitions and are
38
- // appended to otherSimpleDefinitionWords
39
- variableSimpleDefinition: ["variable"],
40
-
41
- // Other words that introduce simple definitions
42
- // (without implicit bodies).
43
- otherSimpleDefinition: ["generic", "domain",
44
- "C-pointer-type",
45
- "table"
46
- ],
47
-
48
- // Words that begin statements with implicit bodies.
49
- statement: ["if", "block", "begin", "method", "case",
50
- "for", "select", "when", "unless", "until",
51
- "while", "iterate", "profiling", "dynamic-bind"
52
- ],
53
-
54
- // Patterns that act as separators in compound statements.
55
- // This may include any general pattern that must be indented
56
- // specially.
57
- separator: ["finally", "exception", "cleanup", "else",
58
- "elseif", "afterwards"
59
- ],
60
-
61
- // Keywords that do not require special indentation handling,
62
- // but which should be highlighted
63
- other: ["above", "below", "by", "from", "handler", "in",
64
- "instance", "let", "local", "otherwise", "slot",
65
- "subclass", "then", "to", "keyed-by", "virtual"
66
- ],
67
-
68
- // Condition signaling function calls
69
- signalingCalls: ["signal", "error", "cerror",
70
- "break", "check-type", "abort"
71
- ]
72
- };
73
-
74
- words["otherDefinition"] =
75
- words["unnamedDefinition"]
76
- .concat(words["namedDefinition"])
77
- .concat(words["otherParameterizedDefinition"]);
78
-
79
- words["definition"] =
80
- words["typeParameterizedDefinition"]
81
- .concat(words["otherDefinition"]);
82
-
83
- words["parameterizedDefinition"] =
84
- words["typeParameterizedDefinition"]
85
- .concat(words["otherParameterizedDefinition"]);
86
-
87
- words["simpleDefinition"] =
88
- words["constantSimpleDefinition"]
89
- .concat(words["variableSimpleDefinition"])
90
- .concat(words["otherSimpleDefinition"]);
91
-
92
- words["keyword"] =
93
- words["statement"]
94
- .concat(words["separator"])
95
- .concat(words["other"]);
96
-
97
- // Patterns
98
- var symbolPattern = "[-_a-zA-Z?!*@<>$%]+";
99
- var symbol = new RegExp("^" + symbolPattern);
100
- var patterns = {
101
- // Symbols with special syntax
102
- symbolKeyword: symbolPattern + ":",
103
- symbolClass: "<" + symbolPattern + ">",
104
- symbolGlobal: "\\*" + symbolPattern + "\\*",
105
- symbolConstant: "\\$" + symbolPattern
106
- };
107
- var patternStyles = {
108
- symbolKeyword: "atom",
109
- symbolClass: "tag",
110
- symbolGlobal: "variableName.standard",
111
- symbolConstant: "variableName.constant"
112
- };
113
-
114
- // Compile all patterns to regular expressions
115
- for (var patternName in patterns)
116
- if (patterns.hasOwnProperty(patternName))
117
- patterns[patternName] = new RegExp("^" + patterns[patternName]);
118
-
119
- // Names beginning "with-" and "without-" are commonly
120
- // used as statement macro
121
- patterns["keyword"] = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];
122
-
123
- var styles = {};
124
- styles["keyword"] = "keyword";
125
- styles["definition"] = "def";
126
- styles["simpleDefinition"] = "def";
127
- styles["signalingCalls"] = "builtin";
128
-
129
- // protected words lookup table
130
- var wordLookup = {};
131
- var styleLookup = {};
132
-
133
- forEach([
134
- "keyword",
135
- "definition",
136
- "simpleDefinition",
137
- "signalingCalls"
138
- ], function(type) {
139
- forEach(words[type], function(word) {
140
- wordLookup[word] = type;
141
- styleLookup[word] = styles[type];
142
- });
143
- });
144
-
145
-
146
- function chain(stream, state, f) {
147
- state.tokenize = f;
148
- return f(stream, state);
149
- }
150
-
151
- function tokenBase(stream, state) {
152
- // String
153
- var ch = stream.peek();
154
- if (ch == "'" || ch == '"') {
155
- stream.next();
156
- return chain(stream, state, tokenString(ch, "string"));
157
- }
158
- // Comment
159
- else if (ch == "/") {
160
- stream.next();
161
- if (stream.eat("*")) {
162
- return chain(stream, state, tokenComment);
163
- } else if (stream.eat("/")) {
164
- stream.skipToEnd();
165
- return "comment";
166
- }
167
- stream.backUp(1);
168
- }
169
- // Decimal
170
- else if (/[+\-\d\.]/.test(ch)) {
171
- if (stream.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) ||
172
- stream.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) ||
173
- stream.match(/^[+-]?\d+/)) {
174
- return "number";
175
- }
176
- }
177
- // Hash
178
- else if (ch == "#") {
179
- stream.next();
180
- // Symbol with string syntax
181
- ch = stream.peek();
182
- if (ch == '"') {
183
- stream.next();
184
- return chain(stream, state, tokenString('"', "string"));
185
- }
186
- // Binary number
187
- else if (ch == "b") {
188
- stream.next();
189
- stream.eatWhile(/[01]/);
190
- return "number";
191
- }
192
- // Hex number
193
- else if (ch == "x") {
194
- stream.next();
195
- stream.eatWhile(/[\da-f]/i);
196
- return "number";
197
- }
198
- // Octal number
199
- else if (ch == "o") {
200
- stream.next();
201
- stream.eatWhile(/[0-7]/);
202
- return "number";
203
- }
204
- // Token concatenation in macros
205
- else if (ch == '#') {
206
- stream.next();
207
- return "punctuation";
208
- }
209
- // Sequence literals
210
- else if ((ch == '[') || (ch == '(')) {
211
- stream.next();
212
- return "bracket";
213
- // Hash symbol
214
- } else if (stream.match(/f|t|all-keys|include|key|next|rest/i)) {
215
- return "atom";
216
- } else {
217
- stream.eatWhile(/[-a-zA-Z]/);
218
- return "error";
219
- }
220
- } else if (ch == "~") {
221
- stream.next();
222
- ch = stream.peek();
223
- if (ch == "=") {
224
- stream.next();
225
- ch = stream.peek();
226
- if (ch == "=") {
227
- stream.next();
228
- return "operator";
229
- }
230
- return "operator";
231
- }
232
- return "operator";
233
- } else if (ch == ":") {
234
- stream.next();
235
- ch = stream.peek();
236
- if (ch == "=") {
237
- stream.next();
238
- return "operator";
239
- } else if (ch == ":") {
240
- stream.next();
241
- return "punctuation";
242
- }
243
- } else if ("[](){}".indexOf(ch) != -1) {
244
- stream.next();
245
- return "bracket";
246
- } else if (".,".indexOf(ch) != -1) {
247
- stream.next();
248
- return "punctuation";
249
- } else if (stream.match("end")) {
250
- return "keyword";
251
- }
252
- for (var name in patterns) {
253
- if (patterns.hasOwnProperty(name)) {
254
- var pattern = patterns[name];
255
- if ((pattern instanceof Array && some(pattern, function(p) {
256
- return stream.match(p);
257
- })) || stream.match(pattern))
258
- return patternStyles[name];
259
- }
260
- }
261
- if (/[+\-*\/^=<>&|]/.test(ch)) {
262
- stream.next();
263
- return "operator";
264
- }
265
- if (stream.match("define")) {
266
- return "def";
267
- } else {
268
- stream.eatWhile(/[\w\-]/);
269
- // Keyword
270
- if (wordLookup.hasOwnProperty(stream.current())) {
271
- return styleLookup[stream.current()];
272
- } else if (stream.current().match(symbol)) {
273
- return "variable";
274
- } else {
275
- stream.next();
276
- return "variableName.standard";
277
- }
278
- }
279
- }
280
-
281
- function tokenComment(stream, state) {
282
- var maybeEnd = false, maybeNested = false, nestedCount = 0, ch;
283
- while ((ch = stream.next())) {
284
- if (ch == "/" && maybeEnd) {
285
- if (nestedCount > 0) {
286
- nestedCount--;
287
- } else {
288
- state.tokenize = tokenBase;
289
- break;
290
- }
291
- } else if (ch == "*" && maybeNested) {
292
- nestedCount++;
293
- }
294
- maybeEnd = (ch == "*");
295
- maybeNested = (ch == "/");
296
- }
297
- return "comment";
298
- }
299
-
300
- function tokenString(quote, style) {
301
- return function(stream, state) {
302
- var escaped = false, next, end = false;
303
- while ((next = stream.next()) != null) {
304
- if (next == quote && !escaped) {
305
- end = true;
306
- break;
307
- }
308
- escaped = !escaped && next == "\\";
309
- }
310
- if (end || !escaped) {
311
- state.tokenize = tokenBase;
312
- }
313
- return style;
314
- };
315
- }
316
-
317
- // Interface
318
- const dylan = {
319
- name: "dylan",
320
- startState: function() {
321
- return {
322
- tokenize: tokenBase,
323
- currentIndent: 0
324
- };
325
- },
326
- token: function(stream, state) {
327
- if (stream.eatSpace())
328
- return null;
329
- var style = state.tokenize(stream, state);
330
- return style;
331
- },
332
- languageData: {
333
- commentTokens: {block: {open: "/*", close: "*/"}}
334
- }
335
- };
336
-
337
- export { dylan };
@@ -1,151 +0,0 @@
1
- var commentType = {slash: 0, parenthesis: 1};
2
- var stateType = {comment: 0, _string: 1, characterClass: 2};
3
-
4
- const ebnf = {
5
- name: "ebnf",
6
- startState: function () {
7
- return {
8
- stringType: null,
9
- commentType: null,
10
- braced: 0,
11
- lhs: true,
12
- localState: null,
13
- stack: [],
14
- inDefinition: false
15
- };
16
- },
17
- token: function (stream, state) {
18
- if (!stream) return;
19
-
20
- //check for state changes
21
- if (state.stack.length === 0) {
22
- //strings
23
- if ((stream.peek() == '"') || (stream.peek() == "'")) {
24
- state.stringType = stream.peek();
25
- stream.next(); // Skip quote
26
- state.stack.unshift(stateType._string);
27
- } else if (stream.match('/*')) { //comments starting with /*
28
- state.stack.unshift(stateType.comment);
29
- state.commentType = commentType.slash;
30
- } else if (stream.match('(*')) { //comments starting with (*
31
- state.stack.unshift(stateType.comment);
32
- state.commentType = commentType.parenthesis;
33
- }
34
- }
35
-
36
- //return state
37
- //stack has
38
- switch (state.stack[0]) {
39
- case stateType._string:
40
- while (state.stack[0] === stateType._string && !stream.eol()) {
41
- if (stream.peek() === state.stringType) {
42
- stream.next(); // Skip quote
43
- state.stack.shift(); // Clear flag
44
- } else if (stream.peek() === "\\") {
45
- stream.next();
46
- stream.next();
47
- } else {
48
- stream.match(/^.[^\\\"\']*/);
49
- }
50
- }
51
- return state.lhs ? "property" : "string"; // Token style
52
-
53
- case stateType.comment:
54
- while (state.stack[0] === stateType.comment && !stream.eol()) {
55
- if (state.commentType === commentType.slash && stream.match('*/')) {
56
- state.stack.shift(); // Clear flag
57
- state.commentType = null;
58
- } else if (state.commentType === commentType.parenthesis && stream.match('*)')) {
59
- state.stack.shift(); // Clear flag
60
- state.commentType = null;
61
- } else {
62
- stream.match(/^.[^\*]*/);
63
- }
64
- }
65
- return "comment";
66
-
67
- case stateType.characterClass:
68
- while (state.stack[0] === stateType.characterClass && !stream.eol()) {
69
- if (!(stream.match(/^[^\]\\]+/) || stream.match('.'))) {
70
- state.stack.shift();
71
- }
72
- }
73
- return "operator";
74
- }
75
-
76
- var peek = stream.peek();
77
-
78
- //no stack
79
- switch (peek) {
80
- case "[":
81
- stream.next();
82
- state.stack.unshift(stateType.characterClass);
83
- return "bracket";
84
- case ":":
85
- case "|":
86
- case ";":
87
- stream.next();
88
- return "operator";
89
- case "%":
90
- if (stream.match("%%")) {
91
- return "header";
92
- } else if (stream.match(/[%][A-Za-z]+/)) {
93
- return "keyword";
94
- } else if (stream.match(/[%][}]/)) {
95
- return "bracket";
96
- }
97
- break;
98
- case "/":
99
- if (stream.match(/[\/][A-Za-z]+/)) {
100
- return "keyword";
101
- }
102
- case "\\":
103
- if (stream.match(/[\][a-z]+/)) {
104
- return "string.special";
105
- }
106
- case ".":
107
- if (stream.match(".")) {
108
- return "atom";
109
- }
110
- case "*":
111
- case "-":
112
- case "+":
113
- case "^":
114
- if (stream.match(peek)) {
115
- return "atom";
116
- }
117
- case "$":
118
- if (stream.match("$$")) {
119
- return "builtin";
120
- } else if (stream.match(/[$][0-9]+/)) {
121
- return "variableName.special";
122
- }
123
- case "<":
124
- if (stream.match(/<<[a-zA-Z_]+>>/)) {
125
- return "builtin";
126
- }
127
- }
128
-
129
- if (stream.match('//')) {
130
- stream.skipToEnd();
131
- return "comment";
132
- } else if (stream.match('return')) {
133
- return "operator";
134
- } else if (stream.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)) {
135
- if (stream.match(/(?=[\(.])/)) {
136
- return "variable";
137
- } else if (stream.match(/(?=[\s\n]*[:=])/)) {
138
- return "def";
139
- }
140
- return "variableName.special";
141
- } else if (["[", "]", "(", ")"].indexOf(stream.peek()) != -1) {
142
- stream.next();
143
- return "bracket";
144
- } else if (!stream.eatSpace()) {
145
- stream.next();
146
- }
147
- return null;
148
- }
149
- };
150
-
151
- export { ebnf };
@@ -1,190 +0,0 @@
1
- function words(str) {
2
- var obj = {}, words = str.split(" ");
3
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
4
- return obj;
5
- }
6
-
7
- function metaHook(stream, state) {
8
- if (!state.startOfLine) return false;
9
- stream.skipToEnd();
10
- return "meta";
11
- }
12
-
13
- var keyword = words("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode");
14
- var variable = words("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait");
15
- var variable_2 = words("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath");
16
- var variable_3 = words("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode");
17
- var builtin = words("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when");
18
- var blockKeywords = words("catch class do else finally for if switch try while");
19
- var atoms = words("true false null");
20
- var hooks = {"#": metaHook};
21
- var isOperatorChar = /[+\-*&%=<>!?|\/]/;
22
-
23
- var curPunc;
24
-
25
- function tokenBase(stream, state) {
26
- var ch = stream.next();
27
- if (hooks[ch]) {
28
- var result = hooks[ch](stream, state);
29
- if (result !== false) return result;
30
- }
31
- if (ch == '"' || ch == "'") {
32
- state.tokenize = tokenString(ch);
33
- return state.tokenize(stream, state);
34
- }
35
- if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
36
- curPunc = ch;
37
- return null;
38
- }
39
- if (/\d/.test(ch)) {
40
- stream.eatWhile(/[\w\.]/);
41
- return "number";
42
- }
43
- if (ch == "/") {
44
- if (stream.eat("*")) {
45
- state.tokenize = tokenComment;
46
- return tokenComment(stream, state);
47
- }
48
- if (stream.eat("/")) {
49
- stream.skipToEnd();
50
- return "comment";
51
- }
52
- }
53
- if (isOperatorChar.test(ch)) {
54
- stream.eatWhile(isOperatorChar);
55
- return "operator";
56
- }
57
- stream.eatWhile(/[\w\$_]/);
58
- var cur = stream.current().toLowerCase();
59
- if (keyword.propertyIsEnumerable(cur)) {
60
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
61
- return "keyword";
62
- } else if (variable.propertyIsEnumerable(cur)) {
63
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
64
- return "variable";
65
- } else if (variable_2.propertyIsEnumerable(cur)) {
66
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
67
- return "modifier";
68
- } else if (variable_3.propertyIsEnumerable(cur)) {
69
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
70
- return "type";
71
- } else if (builtin.propertyIsEnumerable(cur)) {
72
- if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
73
- return "builtin";
74
- } else { //Data types are of from KEYWORD##
75
- var i = cur.length - 1;
76
- while(i >= 0 && (!isNaN(cur[i]) || cur[i] == '_'))
77
- --i;
78
-
79
- if (i > 0) {
80
- var cur2 = cur.substr(0, i + 1);
81
- if (variable_3.propertyIsEnumerable(cur2)) {
82
- if (blockKeywords.propertyIsEnumerable(cur2)) curPunc = "newstatement";
83
- return "type";
84
- }
85
- }
86
- }
87
- if (atoms.propertyIsEnumerable(cur)) return "atom";
88
- return null;
89
- }
90
-
91
- function tokenString(quote) {
92
- return function(stream, state) {
93
- var escaped = false, next, end = false;
94
- while ((next = stream.next()) != null) {
95
- if (next == quote && !escaped) {end = true; break;}
96
- escaped = !escaped && next == "\\";
97
- }
98
- if (end || !escaped)
99
- state.tokenize = tokenBase;
100
- return "string";
101
- };
102
- }
103
-
104
- function tokenComment(stream, state) {
105
- var maybeEnd = false, ch;
106
- while (ch = stream.next()) {
107
- if (ch == "/" && maybeEnd) {
108
- state.tokenize = tokenBase;
109
- break;
110
- }
111
- maybeEnd = (ch == "*");
112
- }
113
- return "comment";
114
- }
115
-
116
- function Context(indented, column, type, align, prev) {
117
- this.indented = indented;
118
- this.column = column;
119
- this.type = type;
120
- this.align = align;
121
- this.prev = prev;
122
- }
123
- function pushContext(state, col, type) {
124
- return state.context = new Context(state.indented, col, type, null, state.context);
125
- }
126
- function popContext(state) {
127
- var t = state.context.type;
128
- if (t == ")" || t == "]" || t == "}")
129
- state.indented = state.context.indented;
130
- return state.context = state.context.prev;
131
- }
132
-
133
- // Interface
134
-
135
- const ecl = {
136
- name: "ecl",
137
- startState: function(indentUnit) {
138
- return {
139
- tokenize: null,
140
- context: new Context(-indentUnit, 0, "top", false),
141
- indented: 0,
142
- startOfLine: true
143
- };
144
- },
145
-
146
- token: function(stream, state) {
147
- var ctx = state.context;
148
- if (stream.sol()) {
149
- if (ctx.align == null) ctx.align = false;
150
- state.indented = stream.indentation();
151
- state.startOfLine = true;
152
- }
153
- if (stream.eatSpace()) return null;
154
- curPunc = null;
155
- var style = (state.tokenize || tokenBase)(stream, state);
156
- if (style == "comment" || style == "meta") return style;
157
- if (ctx.align == null) ctx.align = true;
158
-
159
- if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
160
- else if (curPunc == "{") pushContext(state, stream.column(), "}");
161
- else if (curPunc == "[") pushContext(state, stream.column(), "]");
162
- else if (curPunc == "(") pushContext(state, stream.column(), ")");
163
- else if (curPunc == "}") {
164
- while (ctx.type == "statement") ctx = popContext(state);
165
- if (ctx.type == "}") ctx = popContext(state);
166
- while (ctx.type == "statement") ctx = popContext(state);
167
- }
168
- else if (curPunc == ctx.type) popContext(state);
169
- else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
170
- pushContext(state, stream.column(), "statement");
171
- state.startOfLine = false;
172
- return style;
173
- },
174
-
175
- indent: function(state, textAfter, cx) {
176
- if (state.tokenize != tokenBase && state.tokenize != null) return 0;
177
- var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
178
- if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
179
- var closing = firstChar == ctx.type;
180
- if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : cx.unit);
181
- else if (ctx.align) return ctx.column + (closing ? 0 : 1);
182
- else return ctx.indented + (closing ? 0 : cx.unit);
183
- },
184
-
185
- languageData: {
186
- indentOnInput: /^\s*[{}]$/
187
- }
188
- };
189
-
190
- export { ecl };