@vc-shell/framework 1.1.5 → 1.1.6

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 (227) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/core/plugins/modularity/loader.ts +31 -0
  3. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  4. package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts +2 -2
  5. package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
  6. package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts +2 -2
  7. package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
  8. package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts +2 -2
  9. package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
  10. package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts +3 -3
  11. package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
  12. package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
  13. package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
  14. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  15. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  16. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  17. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  18. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  19. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  20. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  21. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
  24. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  25. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  26. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  27. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  28. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
  29. package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
  30. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +2 -2
  31. package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
  32. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  33. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  34. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
  35. package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
  36. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +3 -3
  37. package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
  38. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
  39. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +3 -3
  40. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  41. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -4
  42. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  43. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +6 -34
  44. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  45. package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +4 -0
  46. package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts.map +1 -0
  47. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +171 -0
  48. package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -0
  49. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
  50. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  51. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
  52. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  53. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +2 -2
  54. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  55. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
  56. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  57. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
  58. package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
  59. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts +2 -2
  60. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts.map +1 -1
  61. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts +5 -5
  62. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
  63. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +3 -3
  64. package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
  65. 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
  66. 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
  67. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -1
  68. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +5 -5
  75. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  76. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  77. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  78. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  79. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
  80. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  81. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +1 -1
  82. package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
  83. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +4 -4
  84. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  85. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  86. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  87. package/package.json +4 -4
  88. package/shared/components/common/popup/vc-popup-error.vue +3 -3
  89. package/shared/components/common/popup/vc-popup-info.vue +3 -3
  90. package/shared/components/common/popup/vc-popup-warning.vue +3 -3
  91. package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +4 -4
  92. package/ui/components/atoms/vc-badge/vc-badge.vue +2 -2
  93. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
  94. package/ui/components/atoms/vc-label/vc-label.vue +3 -3
  95. package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +3 -3
  96. package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +4 -4
  97. package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
  98. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  99. package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +36 -115
  100. package/ui/components/molecules/vc-input-dropdown/index.ts +4 -0
  101. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +763 -0
  102. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +268 -0
  103. package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +2 -2
  104. package/ui/components/molecules/vc-rating/vc-rating.vue +2 -2
  105. package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
  106. package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue +3 -3
  107. package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue +6 -6
  108. package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +4 -4
  109. package/ui/components/organisms/vc-app/vc-app.vue +2 -3
  110. package/ui/components/organisms/vc-blade/vc-blade.vue +5 -5
  111. package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -2
  112. package/ui/components/organisms/vc-popup/vc-popup.vue +4 -4
  113. package/dist/apl-B2DGVGxc.js +0 -76
  114. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  115. package/dist/asn1-jKiBa2Ya.js +0 -95
  116. package/dist/asterisk-DS281yxp.js +0 -271
  117. package/dist/brainfuck-C_p9pTT8.js +0 -34
  118. package/dist/clike-BUuHEmgZ.js +0 -620
  119. package/dist/clojure-CCKyeQKf.js +0 -800
  120. package/dist/cmake-CuaCgAKt.js +0 -28
  121. package/dist/cobol-BlTKFDRj.js +0 -72
  122. package/dist/coffeescript-BVCvwO8I.js +0 -179
  123. package/dist/commonlisp-D_kxz07b.js +0 -75
  124. package/dist/crystal-D309uH6_.js +0 -217
  125. package/dist/css-bIlmDBTK.js +0 -1560
  126. package/dist/cypher-BMq4Fwjl.js +0 -68
  127. package/dist/d-BZcgY6La.js +0 -127
  128. package/dist/diff-Cg9d_RX2.js +0 -18
  129. package/dist/dockerfile-DIy8NleC.js +0 -194
  130. package/dist/dtd-CtLokQ-U.js +0 -84
  131. package/dist/dylan-QYeExnWK.js +0 -234
  132. package/dist/ebnf-DUPDuY4r.js +0 -78
  133. package/dist/ecl-CiXN-g_D.js +0 -121
  134. package/dist/eiffel-yQhjl4T1.js +0 -110
  135. package/dist/elm-CNT9vbN0.js +0 -108
  136. package/dist/erlang-CFOYdy9e.js +0 -487
  137. package/dist/factor-DDOC7X6P.js +0 -65
  138. package/dist/fcl-CPC2WYrI.js +0 -103
  139. package/dist/forth-BmxRyE9S.js +0 -60
  140. package/dist/fortran-9bvPyrOW.js +0 -442
  141. package/dist/framework.js +0 -288
  142. package/dist/gas-BdfkXJT_.js +0 -183
  143. package/dist/gherkin-CJuwpceU.js +0 -34
  144. package/dist/groovy-DZeT_VM-.js +0 -146
  145. package/dist/haskell-Bvt3Qq1t.js +0 -375
  146. package/dist/haxe-70NVW1pR.js +0 -359
  147. package/dist/http-D9LttvKF.js +0 -44
  148. package/dist/idl-B6TRFYjl.js +0 -947
  149. package/dist/index-BBHl6nap.js +0 -308
  150. package/dist/index-BG6N4UCY.js +0 -299
  151. package/dist/index-Bv5as3SI.js +0 -71
  152. package/dist/index-C4VyqVxv.js +0 -249
  153. package/dist/index-CKLiFGZ-.js +0 -98
  154. package/dist/index-CTmAMa_1.js +0 -265
  155. package/dist/index-CtGZgIiV.js +0 -75
  156. package/dist/index-D13Jcezf.js +0 -288
  157. package/dist/index-DbpKygJh.js +0 -611
  158. package/dist/index-DgCtSr4P.js +0 -58
  159. package/dist/index-Dh1XjfgY.js +0 -134
  160. package/dist/index-DpDbQQg6.js +0 -341
  161. package/dist/index-DwuQbDJG.js +0 -156
  162. package/dist/index-Fhuqbkq2.js +0 -93
  163. package/dist/index-JTAZpxKF.js +0 -137
  164. package/dist/index-MKD2CP5c.js +0 -147000
  165. package/dist/index-Q3k1PYzc.js +0 -538
  166. package/dist/index.css +0 -9
  167. package/dist/javascript-WMWNx-Vj.js +0 -690
  168. package/dist/jinja2-DnB6dQmV.js +0 -154
  169. package/dist/julia-DpvXAuO6.js +0 -241
  170. package/dist/livescript-CanGTf8u.js +0 -272
  171. package/dist/lua-XplVlWi_.js +0 -217
  172. package/dist/mathematica-jaRHnSxC.js +0 -35
  173. package/dist/mbox-BctzC1hL.js +0 -76
  174. package/dist/mirc-CFBPAOaF.js +0 -72
  175. package/dist/mllike-BSnXJBGA.js +0 -272
  176. package/dist/modelica-vUgVs--1.js +0 -93
  177. package/dist/mscgen-Cpl0NYLN.js +0 -104
  178. package/dist/mumps-CQoS1kWX.js +0 -25
  179. package/dist/nginx-zDPm3Z74.js +0 -89
  180. package/dist/nsis-fePjrhq7.js +0 -62
  181. package/dist/ntriples-CsNjv2QF.js +0 -79
  182. package/dist/octave-C8PmmSRH.js +0 -143
  183. package/dist/oz-Ce8aN8oE.js +0 -151
  184. package/dist/pascal-De0D6mP7.js +0 -77
  185. package/dist/perl-B4bSCe1C.js +0 -915
  186. package/dist/pig-D24Z8EXi.js +0 -54
  187. package/dist/powershell-DkYVfTzP.js +0 -249
  188. package/dist/properties-Dn9wna3M.js +0 -26
  189. package/dist/protobuf-BPIjwpzm.js +0 -49
  190. package/dist/pug-BqUR2bBq.js +0 -248
  191. package/dist/puppet-nyd4dhjf.js +0 -45
  192. package/dist/python-B5QdSKoL.js +0 -313
  193. package/dist/q-DXjKs-tC.js +0 -83
  194. package/dist/r-LKEuhEGI.js +0 -104
  195. package/dist/rpm-IznJm2Xc.js +0 -57
  196. package/dist/ruby-CcYfvIk6.js +0 -228
  197. package/dist/sas-7E8yHoCW.js +0 -105
  198. package/dist/scheme-DjibxsNh.js +0 -124
  199. package/dist/shell-C0C2sNA_.js +0 -182
  200. package/dist/sieve-Bwz7vjP5.js +0 -72
  201. package/dist/simple-mode-B0dvCdAA.js +0 -89
  202. package/dist/smalltalk-Bhddl2pB.js +0 -48
  203. package/dist/solr-BNlsLglM.js +0 -41
  204. package/dist/sparql-FarWu_Gb.js +0 -197
  205. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  206. package/dist/sql-mMre1Bo3.js +0 -282
  207. package/dist/stex-92raWT1r.js +0 -129
  208. package/dist/stylus-CAdqWld3.js +0 -250
  209. package/dist/swift-DSxqR9R6.js +0 -230
  210. package/dist/tcl-xfoLljhY.js +0 -81
  211. package/dist/textile-D1AWE-pc.js +0 -295
  212. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  213. package/dist/tiki-__Kn3CeS.js +0 -181
  214. package/dist/toml-BHiuTcfn.js +0 -49
  215. package/dist/troff-D2UO-fKf.js +0 -35
  216. package/dist/ttcn-Bsa4sfRm.js +0 -123
  217. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  218. package/dist/turtle-xwJUxoPV.js +0 -80
  219. package/dist/vb-c2kQGd6-.js +0 -74
  220. package/dist/vbscript-Dz1TtKsy.js +0 -324
  221. package/dist/velocity-DJd0pTTC.js +0 -96
  222. package/dist/verilog-C4VGD9n1.js +0 -263
  223. package/dist/vhdl-T9HkrbI2.js +0 -106
  224. package/dist/webidl-CjfDENEo.js +0 -155
  225. package/dist/xquery-BUQdORAS.js +0 -422
  226. package/dist/yacas-C0absKBh.js +0 -73
  227. package/dist/z80-C8rPtw-0.js +0 -61
@@ -1,228 +0,0 @@
1
- function k(e) {
2
- for (var i = {}, n = 0, o = e.length; n < o; ++n) i[e[n]] = !0;
3
- return i;
4
- }
5
- var v = [
6
- "alias",
7
- "and",
8
- "BEGIN",
9
- "begin",
10
- "break",
11
- "case",
12
- "class",
13
- "def",
14
- "defined?",
15
- "do",
16
- "else",
17
- "elsif",
18
- "END",
19
- "end",
20
- "ensure",
21
- "false",
22
- "for",
23
- "if",
24
- "in",
25
- "module",
26
- "next",
27
- "not",
28
- "or",
29
- "redo",
30
- "rescue",
31
- "retry",
32
- "return",
33
- "self",
34
- "super",
35
- "then",
36
- "true",
37
- "undef",
38
- "unless",
39
- "until",
40
- "when",
41
- "while",
42
- "yield",
43
- "nil",
44
- "raise",
45
- "throw",
46
- "catch",
47
- "fail",
48
- "loop",
49
- "callcc",
50
- "caller",
51
- "lambda",
52
- "proc",
53
- "public",
54
- "protected",
55
- "private",
56
- "require",
57
- "load",
58
- "require_relative",
59
- "extend",
60
- "autoload",
61
- "__END__",
62
- "__FILE__",
63
- "__LINE__",
64
- "__dir__"
65
- ], x = k(v), z = k([
66
- "def",
67
- "class",
68
- "case",
69
- "for",
70
- "while",
71
- "until",
72
- "module",
73
- "catch",
74
- "loop",
75
- "proc",
76
- "begin"
77
- ]), b = k(["end", "until"]), h = { "[": "]", "{": "}", "(": ")" }, _ = { "]": "[", "}": "{", ")": "(" }, f;
78
- function c(e, i, n) {
79
- return n.tokenize.push(e), e(i, n);
80
- }
81
- function p(e, i) {
82
- if (e.sol() && e.match("=begin") && e.eol())
83
- return i.tokenize.push(w), "comment";
84
- if (e.eatSpace()) return null;
85
- var n = e.next(), o;
86
- if (n == "`" || n == "'" || n == '"')
87
- return c(d(n, "string", n == '"' || n == "`"), e, i);
88
- if (n == "/")
89
- return g(e) ? c(d(n, "string.special", !0), e, i) : "operator";
90
- if (n == "%") {
91
- var l = "string", r = !0;
92
- e.eat("s") ? l = "atom" : e.eat(/[WQ]/) ? l = "string" : e.eat(/[r]/) ? l = "string.special" : e.eat(/[wxq]/) && (l = "string", r = !1);
93
- var u = e.eat(/[^\w\s=]/);
94
- return u ? (h.propertyIsEnumerable(u) && (u = h[u]), c(d(u, l, r, !0), e, i)) : "operator";
95
- } else {
96
- if (n == "#")
97
- return e.skipToEnd(), "comment";
98
- if (n == "<" && (o = e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))
99
- return c(s(o[2], o[1]), e, i);
100
- if (n == "0")
101
- return e.eat("x") ? e.eatWhile(/[\da-fA-F]/) : e.eat("b") ? e.eatWhile(/[01]/) : e.eatWhile(/[0-7]/), "number";
102
- if (/\d/.test(n))
103
- return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/), "number";
104
- if (n == "?") {
105
- for (; e.match(/^\\[CM]-/); )
106
- ;
107
- return e.eat("\\") ? e.eatWhile(/\w/) : e.next(), "string";
108
- } else {
109
- if (n == ":")
110
- return e.eat("'") ? c(d("'", "atom", !1), e, i) : e.eat('"') ? c(d('"', "atom", !0), e, i) : e.eat(/[\<\>]/) ? (e.eat(/[\<\>]/), "atom") : e.eat(/[\+\-\*\/\&\|\:\!]/) ? "atom" : e.eat(/[a-zA-Z$@_\xa1-\uffff]/) ? (e.eatWhile(/[\w$\xa1-\uffff]/), e.eat(/[\?\!\=]/), "atom") : "operator";
111
- if (n == "@" && e.match(/^@?[a-zA-Z_\xa1-\uffff]/))
112
- return e.eat("@"), e.eatWhile(/[\w\xa1-\uffff]/), "propertyName";
113
- if (n == "$")
114
- return e.eat(/[a-zA-Z_]/) ? e.eatWhile(/[\w]/) : e.eat(/\d/) ? e.eat(/\d/) : e.next(), "variableName.special";
115
- if (/[a-zA-Z_\xa1-\uffff]/.test(n))
116
- return e.eatWhile(/[\w\xa1-\uffff]/), e.eat(/[\?\!]/), e.eat(":") ? "atom" : "variable";
117
- if (n == "|" && (i.varList || i.lastTok == "{" || i.lastTok == "do"))
118
- return f = "|", null;
119
- if (/[\(\)\[\]{}\\;]/.test(n))
120
- return f = n, null;
121
- if (n == "-" && e.eat(">"))
122
- return "operator";
123
- if (/[=+\-\/*:\.^%<>~|]/.test(n)) {
124
- var t = e.eatWhile(/[=+\-\/*:\.^%<>~|]/);
125
- return n == "." && !t && (f = "."), "operator";
126
- } else
127
- return null;
128
- }
129
- }
130
- }
131
- function g(e) {
132
- for (var i = e.pos, n = 0, o, l = !1, r = !1; (o = e.next()) != null; )
133
- if (r)
134
- r = !1;
135
- else {
136
- if ("[{(".indexOf(o) > -1)
137
- n++;
138
- else if ("]})".indexOf(o) > -1) {
139
- if (n--, n < 0) break;
140
- } else if (o == "/" && n == 0) {
141
- l = !0;
142
- break;
143
- }
144
- r = o == "\\";
145
- }
146
- return e.backUp(e.pos - i), l;
147
- }
148
- function a(e) {
149
- return e || (e = 1), function(i, n) {
150
- if (i.peek() == "}") {
151
- if (e == 1)
152
- return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](i, n);
153
- n.tokenize[n.tokenize.length - 1] = a(e - 1);
154
- } else i.peek() == "{" && (n.tokenize[n.tokenize.length - 1] = a(e + 1));
155
- return p(i, n);
156
- };
157
- }
158
- function y() {
159
- var e = !1;
160
- return function(i, n) {
161
- return e ? (n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](i, n)) : (e = !0, p(i, n));
162
- };
163
- }
164
- function d(e, i, n, o) {
165
- return function(l, r) {
166
- var u = !1, t;
167
- for (r.context.type === "read-quoted-paused" && (r.context = r.context.prev, l.eat("}")); (t = l.next()) != null; ) {
168
- if (t == e && (o || !u)) {
169
- r.tokenize.pop();
170
- break;
171
- }
172
- if (n && t == "#" && !u) {
173
- if (l.eat("{")) {
174
- e == "}" && (r.context = { prev: r.context, type: "read-quoted-paused" }), r.tokenize.push(a());
175
- break;
176
- } else if (/[@\$]/.test(l.peek())) {
177
- r.tokenize.push(y());
178
- break;
179
- }
180
- }
181
- u = !u && t == "\\";
182
- }
183
- return i;
184
- };
185
- }
186
- function s(e, i) {
187
- return function(n, o) {
188
- return i && n.eatSpace(), n.match(e) ? o.tokenize.pop() : n.skipToEnd(), "string";
189
- };
190
- }
191
- function w(e, i) {
192
- return e.sol() && e.match("=end") && e.eol() && i.tokenize.pop(), e.skipToEnd(), "comment";
193
- }
194
- const E = {
195
- name: "ruby",
196
- startState: function(e) {
197
- return {
198
- tokenize: [p],
199
- indented: 0,
200
- context: { type: "top", indented: -e },
201
- continuedLine: !1,
202
- lastTok: null,
203
- varList: !1
204
- };
205
- },
206
- token: function(e, i) {
207
- f = null, e.sol() && (i.indented = e.indentation());
208
- var n = i.tokenize[i.tokenize.length - 1](e, i), o, l = f;
209
- if (n == "variable") {
210
- var r = e.current();
211
- n = i.lastTok == "." ? "property" : x.propertyIsEnumerable(e.current()) ? "keyword" : /^[A-Z]/.test(r) ? "tag" : i.lastTok == "def" || i.lastTok == "class" || i.varList ? "def" : "variable", n == "keyword" && (l = r, z.propertyIsEnumerable(r) ? o = "indent" : b.propertyIsEnumerable(r) ? o = "dedent" : ((r == "if" || r == "unless") && e.column() == e.indentation() || r == "do" && i.context.indented < i.indented) && (o = "indent"));
212
- }
213
- return (f || n && n != "comment") && (i.lastTok = l), f == "|" && (i.varList = !i.varList), o == "indent" || /[\(\[\{]/.test(f) ? i.context = { prev: i.context, type: f || n, indented: i.indented } : (o == "dedent" || /[\)\]\}]/.test(f)) && i.context.prev && (i.context = i.context.prev), e.eol() && (i.continuedLine = f == "\\" || n == "operator"), n;
214
- },
215
- indent: function(e, i, n) {
216
- if (e.tokenize[e.tokenize.length - 1] != p) return null;
217
- var o = i && i.charAt(0), l = e.context, r = l.type == _[o] || l.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(i);
218
- return l.indented + (r ? 0 : n.unit) + (e.continuedLine ? n.unit : 0);
219
- },
220
- languageData: {
221
- indentOnInput: /^\s*(?:end|rescue|elsif|else|\})$/,
222
- commentTokens: { line: "#" },
223
- autocomplete: v
224
- }
225
- };
226
- export {
227
- E as ruby
228
- };
@@ -1,105 +0,0 @@
1
- var t = {}, l = {
2
- eq: "operator",
3
- lt: "operator",
4
- le: "operator",
5
- gt: "operator",
6
- ge: "operator",
7
- in: "operator",
8
- ne: "operator",
9
- or: "operator"
10
- }, c = /(<=|>=|!=|<>)/, p = /[=\(:\),{}.*<>+\-\/^\[\]]/;
11
- function s(e, r, o) {
12
- if (o)
13
- for (var i = r.split(" "), n = 0; n < i.length; n++)
14
- t[i[n]] = { style: e, state: o };
15
- }
16
- s("def", "stack pgm view source debug nesting nolist", ["inDataStep"]);
17
- s("def", "if while until for do do; end end; then else cancel", ["inDataStep"]);
18
- s("def", "label format _n_ _error_", ["inDataStep"]);
19
- s("def", "ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME", ["inDataStep"]);
20
- s("def", "filevar finfo finv fipname fipnamel fipstate first firstobs floor", ["inDataStep"]);
21
- s("def", "varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday", ["inDataStep"]);
22
- s("def", "zipfips zipname zipnamel zipstate", ["inDataStep"]);
23
- s("def", "put putc putn", ["inDataStep"]);
24
- s("builtin", "data run", ["inDataStep"]);
25
- s("def", "data", ["inProc"]);
26
- s("def", "%if %end %end; %else %else; %do %do; %then", ["inMacro"]);
27
- s("builtin", "proc run; quit; libname filename %macro %mend option options", ["ALL"]);
28
- s("def", "footnote title libname ods", ["ALL"]);
29
- s("def", "%let %put %global %sysfunc %eval ", ["ALL"]);
30
- s("variable", "&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext", ["ALL"]);
31
- s("def", "source2 nosource2 page pageno pagesize", ["ALL"]);
32
- s("def", "_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max", ["inDataStep", "inProc"]);
33
- s("operator", "and not ", ["inDataStep", "inProc"]);
34
- function d(e, r) {
35
- var o = e.next();
36
- if (o === "/" && e.eat("*"))
37
- return r.continueComment = !0, "comment";
38
- if (r.continueComment === !0)
39
- return o === "*" && e.peek() === "/" ? (e.next(), r.continueComment = !1) : e.skipTo("*") ? (e.skipTo("*"), e.next(), e.eat("/") && (r.continueComment = !1)) : e.skipToEnd(), "comment";
40
- if (o == "*" && e.column() == e.indentation())
41
- return e.skipToEnd(), "comment";
42
- var i = o + e.peek();
43
- if ((o === '"' || o === "'") && !r.continueString)
44
- return r.continueString = o, "string";
45
- if (r.continueString)
46
- return r.continueString == o ? r.continueString = null : e.skipTo(r.continueString) ? (e.next(), r.continueString = null) : e.skipToEnd(), "string";
47
- if (r.continueString !== null && e.eol())
48
- return e.skipTo(r.continueString) || e.skipToEnd(), "string";
49
- if (/[\d\.]/.test(o))
50
- return o === "." ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : o === "0" ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number";
51
- if (c.test(o + e.peek()))
52
- return e.next(), "operator";
53
- if (l.hasOwnProperty(i)) {
54
- if (e.next(), e.peek() === " ")
55
- return l[i.toLowerCase()];
56
- } else if (p.test(o))
57
- return "operator";
58
- var n;
59
- if (e.match(/[%&;\w]+/, !1) != null) {
60
- if (n = o + e.match(/[%&;\w]+/, !0), /&/.test(n)) return "variable";
61
- } else
62
- n = o;
63
- if (r.nextword)
64
- return e.match(/[\w]+/), e.peek() === "." && e.skipTo(" "), r.nextword = !1, "variableName.special";
65
- if (n = n.toLowerCase(), r.inDataStep) {
66
- if (n === "run;" || e.match(/run\s;/))
67
- return r.inDataStep = !1, "builtin";
68
- if (n && e.next() === ".")
69
- return /\w/.test(e.peek()) ? "variableName.special" : "variable";
70
- if (n && t.hasOwnProperty(n) && (t[n].state.indexOf("inDataStep") !== -1 || t[n].state.indexOf("ALL") !== -1)) {
71
- e.start < e.pos && e.backUp(e.pos - e.start);
72
- for (var a = 0; a < n.length; ++a) e.next();
73
- return t[n].style;
74
- }
75
- }
76
- if (r.inProc) {
77
- if (n === "run;" || n === "quit;")
78
- return r.inProc = !1, "builtin";
79
- if (n && t.hasOwnProperty(n) && (t[n].state.indexOf("inProc") !== -1 || t[n].state.indexOf("ALL") !== -1))
80
- return e.match(/[\w]+/), t[n].style;
81
- }
82
- return r.inMacro ? n === "%mend" ? (e.peek() === ";" && e.next(), r.inMacro = !1, "builtin") : n && t.hasOwnProperty(n) && (t[n].state.indexOf("inMacro") !== -1 || t[n].state.indexOf("ALL") !== -1) ? (e.match(/[\w]+/), t[n].style) : "atom" : n && t.hasOwnProperty(n) ? (e.backUp(1), e.match(/[\w]+/), n === "data" && /=/.test(e.peek()) === !1 ? (r.inDataStep = !0, r.nextword = !0, "builtin") : n === "proc" ? (r.inProc = !0, r.nextword = !0, "builtin") : n === "%macro" ? (r.inMacro = !0, r.nextword = !0, "builtin") : /title[1-9]/.test(n) ? "def" : n === "footnote" ? (e.eat(/[1-9]/), "def") : r.inDataStep === !0 && t[n].state.indexOf("inDataStep") !== -1 || r.inProc === !0 && t[n].state.indexOf("inProc") !== -1 || r.inMacro === !0 && t[n].state.indexOf("inMacro") !== -1 || t[n].state.indexOf("ALL") !== -1 ? t[n].style : null) : null;
83
- }
84
- const f = {
85
- name: "sas",
86
- startState: function() {
87
- return {
88
- inDataStep: !1,
89
- inProc: !1,
90
- inMacro: !1,
91
- nextword: !1,
92
- continueString: null,
93
- continueComment: !1
94
- };
95
- },
96
- token: function(e, r) {
97
- return e.eatSpace() ? null : d(e, r);
98
- },
99
- languageData: {
100
- commentTokens: { block: { open: "/*", close: "*/" } }
101
- }
102
- };
103
- export {
104
- f as sas
105
- };
@@ -1,124 +0,0 @@
1
- var E = "builtin", a = "comment", g = "string", x = "symbol", c = "atom", b = "number", v = "bracket", S = 2;
2
- function w(e) {
3
- for (var n = {}, i = e.split(" "), t = 0; t < i.length; ++t) n[i[t]] = !0;
4
- return n;
5
- }
6
- var k = w("λ case-lambda call/cc class cond-expand define-class define-values exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"), q = w("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");
7
- function C(e, n, i) {
8
- this.indent = e, this.type = n, this.prev = i;
9
- }
10
- function s(e, n, i) {
11
- e.indentStack = new C(n, i, e.indentStack);
12
- }
13
- function N(e) {
14
- e.indentStack = e.indentStack.prev;
15
- }
16
- var M = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i), Q = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i), I = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i), R = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);
17
- function B(e) {
18
- return e.match(M);
19
- }
20
- function $(e) {
21
- return e.match(Q);
22
- }
23
- function u(e, n) {
24
- return n === !0 && e.backUp(1), e.match(R);
25
- }
26
- function O(e) {
27
- return e.match(I);
28
- }
29
- function y(e, n) {
30
- for (var i, t = !1; (i = e.next()) != null; ) {
31
- if (i == n.token && !t) {
32
- n.state.mode = !1;
33
- break;
34
- }
35
- t = !t && i == "\\";
36
- }
37
- }
38
- const U = {
39
- name: "scheme",
40
- startState: function() {
41
- return {
42
- indentStack: null,
43
- indentation: 0,
44
- mode: !1,
45
- sExprComment: !1,
46
- sExprQuote: !1
47
- };
48
- },
49
- token: function(e, n) {
50
- if (n.indentStack == null && e.sol() && (n.indentation = e.indentation()), e.eatSpace())
51
- return null;
52
- var i = null;
53
- switch (n.mode) {
54
- case "string":
55
- y(e, {
56
- token: '"',
57
- state: n
58
- }), i = g;
59
- break;
60
- case "symbol":
61
- y(e, {
62
- token: "|",
63
- state: n
64
- }), i = x;
65
- break;
66
- case "comment":
67
- for (var t, p = !1; (t = e.next()) != null; ) {
68
- if (t == "#" && p) {
69
- n.mode = !1;
70
- break;
71
- }
72
- p = t == "|";
73
- }
74
- i = a;
75
- break;
76
- case "s-expr-comment":
77
- if (n.mode = !1, e.peek() == "(" || e.peek() == "[")
78
- n.sExprComment = 0;
79
- else {
80
- e.eatWhile(/[^\s\(\)\[\]]/), i = a;
81
- break;
82
- }
83
- default:
84
- var r = e.next();
85
- if (r == '"')
86
- n.mode = "string", i = g;
87
- else if (r == "'")
88
- e.peek() == "(" || e.peek() == "[" ? (typeof n.sExprQuote != "number" && (n.sExprQuote = 0), i = c) : (e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), i = c);
89
- else if (r == "|")
90
- n.mode = "symbol", i = x;
91
- else if (r == "#")
92
- if (e.eat("|"))
93
- n.mode = "comment", i = a;
94
- else if (e.eat(/[tf]/i))
95
- i = c;
96
- else if (e.eat(";"))
97
- n.mode = "s-expr-comment", i = a;
98
- else {
99
- var l = null, o = !1, m = !0;
100
- e.eat(/[ei]/i) ? o = !0 : e.backUp(1), e.match(/^#b/i) ? l = B : e.match(/^#o/i) ? l = $ : e.match(/^#x/i) ? l = O : e.match(/^#d/i) ? l = u : e.match(/^[-+0-9.]/, !1) ? (m = !1, l = u) : o || e.eat("#"), l != null && (m && !o && e.match(/^#[ei]/i), l(e) && (i = b));
101
- }
102
- else if (/^[-+0-9.]/.test(r) && u(e, !0))
103
- i = b;
104
- else if (r == ";")
105
- e.skipToEnd(), i = a;
106
- else if (r == "(" || r == "[") {
107
- for (var d = "", f = e.column(), h; (h = e.eat(/[^\s\(\[\;\)\]]/)) != null; )
108
- d += h;
109
- d.length > 0 && q.propertyIsEnumerable(d) ? s(n, f + S, r) : (e.eatSpace(), e.eol() || e.peek() == ";" ? s(n, f + 1, r) : s(n, f + e.current().length, r)), e.backUp(e.current().length - 1), typeof n.sExprComment == "number" && n.sExprComment++, typeof n.sExprQuote == "number" && n.sExprQuote++, i = v;
110
- } else r == ")" || r == "]" ? (i = v, n.indentStack != null && n.indentStack.type == (r == ")" ? "(" : "[") && (N(n), typeof n.sExprComment == "number" && --n.sExprComment == 0 && (i = a, n.sExprComment = !1), typeof n.sExprQuote == "number" && --n.sExprQuote == 0 && (i = c, n.sExprQuote = !1))) : (e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), k && k.propertyIsEnumerable(e.current()) ? i = E : i = "variable");
111
- }
112
- return typeof n.sExprComment == "number" ? a : typeof n.sExprQuote == "number" ? c : i;
113
- },
114
- indent: function(e) {
115
- return e.indentStack == null ? e.indentation : e.indentStack.indent;
116
- },
117
- languageData: {
118
- closeBrackets: { brackets: ["(", "[", "{", '"'] },
119
- commentTokens: { line: ";;" }
120
- }
121
- };
122
- export {
123
- U as scheme
124
- };
@@ -1,182 +0,0 @@
1
- var c = {};
2
- function s(n, e) {
3
- for (var i = 0; i < e.length; i++)
4
- c[e[i]] = n;
5
- }
6
- var k = ["true", "false"], h = [
7
- "if",
8
- "then",
9
- "do",
10
- "else",
11
- "elif",
12
- "while",
13
- "until",
14
- "for",
15
- "in",
16
- "esac",
17
- "fi",
18
- "fin",
19
- "fil",
20
- "done",
21
- "exit",
22
- "set",
23
- "unset",
24
- "export",
25
- "function"
26
- ], p = [
27
- "ab",
28
- "awk",
29
- "bash",
30
- "beep",
31
- "cat",
32
- "cc",
33
- "cd",
34
- "chown",
35
- "chmod",
36
- "chroot",
37
- "clear",
38
- "cp",
39
- "curl",
40
- "cut",
41
- "diff",
42
- "echo",
43
- "find",
44
- "gawk",
45
- "gcc",
46
- "get",
47
- "git",
48
- "grep",
49
- "hg",
50
- "kill",
51
- "killall",
52
- "ln",
53
- "ls",
54
- "make",
55
- "mkdir",
56
- "openssl",
57
- "mv",
58
- "nc",
59
- "nl",
60
- "node",
61
- "npm",
62
- "ping",
63
- "ps",
64
- "restart",
65
- "rm",
66
- "rmdir",
67
- "sed",
68
- "service",
69
- "sh",
70
- "shopt",
71
- "shred",
72
- "source",
73
- "sort",
74
- "sleep",
75
- "ssh",
76
- "start",
77
- "stop",
78
- "su",
79
- "sudo",
80
- "svn",
81
- "tee",
82
- "telnet",
83
- "top",
84
- "touch",
85
- "vi",
86
- "vim",
87
- "wall",
88
- "wc",
89
- "wget",
90
- "who",
91
- "write",
92
- "yes",
93
- "zsh"
94
- ];
95
- s("atom", k);
96
- s("keyword", h);
97
- s("builtin", p);
98
- function d(n, e) {
99
- if (n.eatSpace()) return null;
100
- var i = n.sol(), t = n.next();
101
- if (t === "\\")
102
- return n.next(), null;
103
- if (t === "'" || t === '"' || t === "`")
104
- return e.tokens.unshift(l(t, t === "`" ? "quote" : "string")), u(n, e);
105
- if (t === "#")
106
- return i && n.eat("!") ? (n.skipToEnd(), "meta") : (n.skipToEnd(), "comment");
107
- if (t === "$")
108
- return e.tokens.unshift(a), u(n, e);
109
- if (t === "+" || t === "=")
110
- return "operator";
111
- if (t === "-")
112
- return n.eat("-"), n.eatWhile(/\w/), "attribute";
113
- if (t == "<") {
114
- if (n.match("<<")) return "operator";
115
- var o = n.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
116
- if (o)
117
- return e.tokens.unshift(w(o[1] || o[2])), "string.special";
118
- }
119
- if (/\d/.test(t) && (n.eatWhile(/\d/), n.eol() || !/\w/.test(n.peek())))
120
- return "number";
121
- n.eatWhile(/[\w-]/);
122
- var r = n.current();
123
- return n.peek() === "=" && /\w+/.test(r) ? "def" : c.hasOwnProperty(r) ? c[r] : null;
124
- }
125
- function l(n, e) {
126
- var i = n == "(" ? ")" : n == "{" ? "}" : n;
127
- return function(t, o) {
128
- for (var r, f = !1; (r = t.next()) != null; ) {
129
- if (r === i && !f) {
130
- o.tokens.shift();
131
- break;
132
- } else if (r === "$" && !f && n !== "'" && t.peek() != i) {
133
- f = !0, t.backUp(1), o.tokens.unshift(a);
134
- break;
135
- } else {
136
- if (!f && n !== i && r === n)
137
- return o.tokens.unshift(l(n, e)), u(t, o);
138
- if (!f && /['"]/.test(r) && !/['"]/.test(n)) {
139
- o.tokens.unshift(g(r, "string")), t.backUp(1);
140
- break;
141
- }
142
- }
143
- f = !f && r === "\\";
144
- }
145
- return e;
146
- };
147
- }
148
- function g(n, e) {
149
- return function(i, t) {
150
- return t.tokens[0] = l(n, e), i.next(), u(i, t);
151
- };
152
- }
153
- var a = function(n, e) {
154
- e.tokens.length > 1 && n.eat("$");
155
- var i = n.next();
156
- return /['"({]/.test(i) ? (e.tokens[0] = l(i, i == "(" ? "quote" : i == "{" ? "def" : "string"), u(n, e)) : (/\d/.test(i) || n.eatWhile(/\w/), e.tokens.shift(), "def");
157
- };
158
- function w(n) {
159
- return function(e, i) {
160
- return e.sol() && e.string == n && i.tokens.shift(), e.skipToEnd(), "string.special";
161
- };
162
- }
163
- function u(n, e) {
164
- return (e.tokens[0] || d)(n, e);
165
- }
166
- const v = {
167
- name: "shell",
168
- startState: function() {
169
- return { tokens: [] };
170
- },
171
- token: function(n, e) {
172
- return u(n, e);
173
- },
174
- languageData: {
175
- autocomplete: k.concat(h, p),
176
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
177
- commentTokens: { line: "#" }
178
- }
179
- };
180
- export {
181
- v as shell
182
- };