@vc-shell/framework 1.1.1 → 1.1.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 (210) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assets/apl-NdZ6-T1z.js +142 -0
  3. package/dist/assets/asciiarmor-CmJEbAuq.js +56 -0
  4. package/dist/assets/asn1-Ctc8K72v.js +192 -0
  5. package/dist/assets/asterisk-D6r__RMF.js +187 -0
  6. package/dist/assets/brainfuck-COwWCBpq.js +70 -0
  7. package/dist/assets/clike-C-PtfL50.js +1019 -0
  8. package/dist/assets/clojure-C2XPrGCa.js +274 -0
  9. package/dist/assets/cmake-BGrEgXCL.js +81 -0
  10. package/dist/assets/cobol-DShPmpZe.js +234 -0
  11. package/dist/assets/coffeescript-BG8vTfSz.js +329 -0
  12. package/dist/assets/commonlisp-8oE2EpEe.js +108 -0
  13. package/dist/assets/core-api-BMLS9FrT.js +8288 -0
  14. package/dist/assets/core-composables-DYxpIWyY.js +1799 -0
  15. package/dist/assets/core-constants-DiKDBbnD.js +83 -0
  16. package/dist/assets/core-directives-QhJx9kWh.js +41 -0
  17. package/dist/assets/core-interceptors-CSjUvxQ0.js +78 -0
  18. package/dist/assets/core-plugins-wv2bDZ0l.js +4919 -0
  19. package/dist/assets/core-services-CAfJRsjs.js +4 -0
  20. package/dist/assets/core-utilities-BTktq_a-.js +33 -0
  21. package/dist/assets/crystal--rIRMl16.js +419 -0
  22. package/dist/assets/css/core-directives-FL4vIIkN.css +73 -0
  23. package/dist/assets/css/fonts-M1mtyV8L.css +305 -0
  24. package/dist/assets/css/icons-css-DbCVsovz.css +41 -0
  25. package/dist/assets/css/shared-components-bnLHdCtf.css +429 -0
  26. package/dist/assets/css/shared-modules-CNOICmYQ.css +45 -0
  27. package/dist/assets/css/styles-C62nDZwV.css +4096 -0
  28. package/dist/assets/css/ui-app-Bh9hmlIB.css +1287 -0
  29. package/dist/assets/css/ui-content-B29jsmK7.css +1187 -0
  30. package/dist/assets/css/ui-controls-CRtfFczw.css +387 -0
  31. package/dist/assets/css/ui-data-CYLxfdUa.css +1555 -0
  32. package/dist/assets/css/ui-form-C3WrWfVl.css +71 -0
  33. package/dist/assets/css/ui-form-fields-DOtHhDeM.css +1360 -0
  34. package/dist/assets/css/ui-helpers-bOoNv5dS.css +37 -0
  35. package/dist/assets/css/ui-indicators-CybQnCoU.css +628 -0
  36. package/dist/assets/css/ui-layout-DyGKgizy.css +251 -0
  37. package/dist/assets/css/ui-media-TWYep8js.css +298 -0
  38. package/dist/assets/css/ui-media-advanced-BGxy3VSB.css +183 -0
  39. package/dist/assets/css/ui-navigation-DcPRn8SB.css +1693 -0
  40. package/dist/assets/css-C_ZeEwz2.js +847 -0
  41. package/dist/assets/cypher-Bayei42D.js +122 -0
  42. package/dist/assets/d-B0hhz6be.js +205 -0
  43. package/dist/assets/diff-DQutOIXs.js +30 -0
  44. package/dist/assets/dockerfile-D0MivFIF.js +199 -0
  45. package/dist/assets/dtd-C1CeYVnM.js +121 -0
  46. package/dist/assets/dylan-Dm9-uD-A.js +337 -0
  47. package/dist/assets/ebnf-jWG_1Yly.js +151 -0
  48. package/dist/assets/ecl-CgJPA6z9.js +190 -0
  49. package/dist/assets/eiffel-lj7uLahq.js +146 -0
  50. package/dist/assets/elm-Cz7o1ijk.js +230 -0
  51. package/dist/assets/erlang-CyL5QOyR.js +581 -0
  52. package/dist/assets/factor-BVWHwYpu.js +65 -0
  53. package/dist/assets/fcl-DiozYjc8.js +154 -0
  54. package/dist/assets/forth-B7vn5ze0.js +164 -0
  55. package/dist/assets/fortran-D2XNEnBT.js +172 -0
  56. package/dist/assets/gas-B_Tj57Ve.js +343 -0
  57. package/dist/assets/gherkin-CJ6Qk4EZ.js +147 -0
  58. package/dist/assets/groovy-ioGz2WSV.js +228 -0
  59. package/dist/assets/haskell-BHnm1B83.js +239 -0
  60. package/dist/assets/haxe-Bn6Yo6N3.js +490 -0
  61. package/dist/assets/http-BOd5SYCT.js +89 -0
  62. package/dist/assets/idl-FSFk8_xX.js +274 -0
  63. package/dist/assets/index--5fKpGeN.js +792 -0
  64. package/dist/assets/index-0lME64YH.js +342 -0
  65. package/dist/assets/index-B1srGfDb.js +183 -0
  66. package/dist/assets/index-B6Ip0FgO.js +437 -0
  67. package/dist/assets/index-BKF-A58l.js +106 -0
  68. package/dist/assets/index-BT8o9-M5.js +418 -0
  69. package/dist/assets/index-BmV05E5M.js +479 -0
  70. package/dist/assets/index-Bv_z_qRq.js +137 -0
  71. package/dist/assets/index-C6MavZDA.js +131 -0
  72. package/dist/assets/index-C7zlEJy8.js +338 -0
  73. package/dist/assets/index-CeeaNa4F.js +187 -0
  74. package/dist/assets/index-CtmpJVwa.js +330 -0
  75. package/dist/assets/index-CwKpgcYl.js +85 -0
  76. package/dist/assets/index-DMTL7O1s.js +627 -0
  77. package/dist/assets/index-DRUmDL0J.js +59 -0
  78. package/dist/assets/index-DgFC-M9G.js +96 -0
  79. package/dist/assets/javascript-DGrAs70C.js +922 -0
  80. package/dist/assets/jinja2-D9k5QrXv.js +171 -0
  81. package/dist/assets/julia-DM42tOPB.js +369 -0
  82. package/dist/assets/livescript-Dci8HnOi.js +259 -0
  83. package/dist/assets/lua-CByQu4v6.js +137 -0
  84. package/dist/assets/lucide-icons-af0BY3bi.js +34555 -0
  85. package/dist/assets/mathematica-Dkv0uCYF.js +153 -0
  86. package/dist/assets/mbox-CYTvs5kC.js +114 -0
  87. package/dist/assets/mirc-DpgP3GCo.js +176 -0
  88. package/dist/assets/mllike-C6tNn2Yt.js +343 -0
  89. package/dist/assets/modelica-CR6hTSce.js +192 -0
  90. package/dist/assets/mscgen-D0GXtzMS.js +149 -0
  91. package/dist/assets/mumps-Bf1EyDa6.js +129 -0
  92. package/dist/assets/nginx-By9Phklj.js +163 -0
  93. package/dist/assets/nsis-B5ggMLQ9.js +80 -0
  94. package/dist/assets/ntriples-C7VJ7pnm.js +141 -0
  95. package/dist/assets/octave-6yR_ix15.js +112 -0
  96. package/dist/assets/oz-CEUnktiQ.js +235 -0
  97. package/dist/assets/pascal-Dksf1EyF.js +124 -0
  98. package/dist/assets/perl-B99DUQQt.js +819 -0
  99. package/dist/assets/pig-DFeDRta6.js +149 -0
  100. package/dist/assets/powershell-DhwsNWMx.js +381 -0
  101. package/dist/assets/properties-o21uErwC.js +62 -0
  102. package/dist/assets/protobuf-YxlANsmD.js +54 -0
  103. package/dist/assets/pug-bUgjeODZ.js +504 -0
  104. package/dist/assets/puppet-B8WICGYE.js +205 -0
  105. package/dist/assets/python-D3FFx1Id.js +389 -0
  106. package/dist/assets/q-D2Hjhl2C.js +123 -0
  107. package/dist/assets/r-D73k5lac.js +174 -0
  108. package/dist/assets/rpm-Duv_WH0z.js +89 -0
  109. package/dist/assets/ruby-DGCVqZDt.js +287 -0
  110. package/dist/assets/sas-XjPv1Vy5.js +268 -0
  111. package/dist/assets/scheme-DeaA28vt.js +263 -0
  112. package/dist/assets/shared-components-CfAt2hC6.js +1501 -0
  113. package/dist/assets/shared-composables-v9NkNuAe.js +35 -0
  114. package/dist/assets/shared-modules-CDP-H5ZB.js +3588 -0
  115. package/dist/assets/shared-pages-BGRRA5WB.js +20 -0
  116. package/dist/assets/shell-Bx6QZTgx.js +145 -0
  117. package/dist/assets/sieve-CWCD62sW.js +178 -0
  118. package/dist/assets/simple-mode-BAO9cD7H.js +136 -0
  119. package/dist/assets/smalltalk-DSQbF4MF.js +153 -0
  120. package/dist/assets/solr-v_XRf31C.js +80 -0
  121. package/dist/assets/sparql-BrfDqf0-.js +170 -0
  122. package/dist/assets/spreadsheet-Csn84Pef.js +98 -0
  123. package/dist/assets/sql-D4utlq1l.js +480 -0
  124. package/dist/assets/stex-DBkktma-.js +246 -0
  125. package/dist/assets/stylus-ByG-Fd6f.js +750 -0
  126. package/dist/assets/swift-CHbTprt3.js +202 -0
  127. package/dist/assets/tcl-BRlMUELr.js +125 -0
  128. package/dist/assets/textile-CqfTUjd4.js +441 -0
  129. package/dist/assets/tiddlywiki-BrsoM8KB.js +278 -0
  130. package/dist/assets/tiki-D-ivWPkc.js +289 -0
  131. package/dist/assets/toml-t_IhJu83.js +75 -0
  132. package/dist/assets/troff-DckGF2AE.js +64 -0
  133. package/dist/assets/ttcn-B8TAFbRR.js +253 -0
  134. package/dist/assets/ttcn-cfg-NHh25oCM.js +197 -0
  135. package/dist/assets/turtle-D9Js0BlL.js +141 -0
  136. package/dist/assets/ui-app-D31Pr1WY.js +1993 -0
  137. package/dist/assets/ui-content-B7SxH8y9.js +52887 -0
  138. package/dist/assets/ui-controls-nmDJYLmC.js +348 -0
  139. package/dist/assets/ui-data-Ci3b1ye0.js +22901 -0
  140. package/dist/assets/ui-form-Cs5ooOo7.js +159 -0
  141. package/dist/assets/ui-form-fields-DFQi31jT.js +40575 -0
  142. package/dist/assets/ui-helpers-CF-EUlOg.js +1736 -0
  143. package/dist/assets/ui-indicators-mIQeEqha.js +199 -0
  144. package/dist/assets/ui-layout-v2XBQky3.js +320 -0
  145. package/dist/assets/ui-media-WWYrwmZw.js +1259 -0
  146. package/dist/assets/ui-media-advanced-T8ibi153.js +492 -0
  147. package/dist/assets/ui-modals-BdZXzI85.js +2 -0
  148. package/dist/assets/ui-navigation-BtHa6ovW.js +24269 -0
  149. package/dist/assets/utils-DZK5fu48.js +17216 -0
  150. package/dist/assets/vb-CbIGLrpY.js +249 -0
  151. package/dist/assets/vbscript-8ANWle9n.js +320 -0
  152. package/dist/assets/velocity-D6hz3Hzw.js +186 -0
  153. package/dist/assets/verilog-DIV442at.js +565 -0
  154. package/dist/assets/vhdl-BlTiZo_v.js +174 -0
  155. package/dist/assets/vueuse-CTQm4Zh0.js +9308 -0
  156. package/dist/assets/webidl-Cp3tcqdk.js +179 -0
  157. package/dist/assets/xquery-Dd4TBzXv.js +411 -0
  158. package/dist/assets/yacas-DQ1WucF0.js +182 -0
  159. package/dist/assets/z80-P1j44jDI.js +102 -0
  160. package/dist/framework.js +29 -0
  161. package/dist/index.css +18 -0
  162. package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
  163. package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
  164. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  165. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  166. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  167. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  168. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  169. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  170. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  171. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  172. package/dist/tsconfig.tsbuildinfo +1 -1
  173. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  174. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  175. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  176. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
  177. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  178. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  179. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  180. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
  181. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  182. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  183. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -4
  184. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  185. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  186. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  187. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  188. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  189. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
  190. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  191. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  192. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  193. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
  194. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts.map +1 -1
  195. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  196. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  197. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
  198. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
  199. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  200. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  201. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  202. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  203. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  204. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  205. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  206. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  207. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  208. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  209. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  210. package/package.json +4 -4
@@ -0,0 +1,337 @@
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 };
@@ -0,0 +1,151 @@
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 };
@@ -0,0 +1,190 @@
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 };