@aiao/code-editor-react 0.0.9 → 0.0.10

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 (121) hide show
  1. package/dist/index.js +118 -2
  2. package/package.json +4 -4
  3. package/dist/apl-B2DGVGxc-Dd6D39pP.js +0 -76
  4. package/dist/asciiarmor-2LVJmxlE-CAn4gnoC.js +0 -34
  5. package/dist/asn1-jKiBa2Ya-xsKwdyq9.js +0 -95
  6. package/dist/asterisk-DS281yxp-B5eTWk_B.js +0 -271
  7. package/dist/brainfuck-C_p9pTT8-DKVQ9poL.js +0 -34
  8. package/dist/clike-BMALKCNj-Ck7Gc35_.js +0 -620
  9. package/dist/clojure-CCKyeQKf-N9sg777Z.js +0 -800
  10. package/dist/cmake-CuaCgAKt-BbEgXraO.js +0 -28
  11. package/dist/cobol-BlTKFDRj-CHCoWafp.js +0 -72
  12. package/dist/coffeescript-BVCvwO8I-Z15ai5ac.js +0 -179
  13. package/dist/commonlisp-D_kxz07b-Ce7sn14o.js +0 -75
  14. package/dist/crystal-D309uH6_-DS6LrXoE.js +0 -217
  15. package/dist/css-BkF-NPzE-DiJu9Nkd.js +0 -1553
  16. package/dist/cypher-BMq4Fwjl-Ml-omWgp.js +0 -68
  17. package/dist/d-BZcgY6La-KCW6-bIm.js +0 -127
  18. package/dist/diff-Cg9d_RX2-C01qBVFc.js +0 -18
  19. package/dist/dockerfile-DFX8bq9N-BIbYUQV0.js +0 -194
  20. package/dist/dtd-CtLokQ-U-DCbNdeIA.js +0 -84
  21. package/dist/dylan-QYeExnWK-DIUVpsct.js +0 -234
  22. package/dist/ebnf-DUPDuY4r-7HIXKmWn.js +0 -78
  23. package/dist/ecl-CiXN-g_D-DOI-W0if.js +0 -121
  24. package/dist/eiffel-yQhjl4T1-DIX8Ceq1.js +0 -110
  25. package/dist/elm-CNT9vbN0-BcYlydpO.js +0 -108
  26. package/dist/erlang-CFOYdy9e-DULXsFZl.js +0 -487
  27. package/dist/factor-Clf6BoVk-DBb2EHMF.js +0 -65
  28. package/dist/fcl-CPC2WYrI-CuXG3fcK.js +0 -103
  29. package/dist/forth-BmxRyE9S-BcFwWpeL.js +0 -60
  30. package/dist/fortran-9bvPyrOW-CuLcq-Iu.js +0 -442
  31. package/dist/gas-cpmYfFX2-sZgGhMxB.js +0 -183
  32. package/dist/gherkin-CJuwpceU-BRrr8yjO.js +0 -34
  33. package/dist/groovy-DZeT_VM--CmF8wcSo.js +0 -146
  34. package/dist/haskell-CxiO_7JL-BuULsXvv.js +0 -375
  35. package/dist/haxe-70NVW1pR-CM27SfgM.js +0 -359
  36. package/dist/http-D9LttvKF-j9E8oQ7o.js +0 -44
  37. package/dist/idl-B6TRFYjl-B6TRFYjl.js +0 -947
  38. package/dist/index-4oLq9F9B-CiG9J_wS.js +0 -944
  39. package/dist/index-9NH8hlZ--ZzqmPLCF.js +0 -342
  40. package/dist/index-BFXNCCbG-LloeVRnr.js +0 -253
  41. package/dist/index-BLHYcXXK-BxaAXMNw.js +0 -101
  42. package/dist/index-BQU3Rb2C-DeyQP3x_.js +0 -290
  43. package/dist/index-Bg18ePld-Di0FNEJ4.js +0 -157
  44. package/dist/index-Bp5lqnbN-BM2h2Xfi.js +0 -555
  45. package/dist/index-Bqzq8A1N-Dn1yj5KO.js +0 -59
  46. package/dist/index-Bx-s4g99-QIFA9lMK.js +0 -76
  47. package/dist/index-BxX25QmV-Cnf0cb51.js +0 -248
  48. package/dist/index-CFCzgc33-MPwtm3eY.js +0 -1917
  49. package/dist/index-CL7JTU9M-Bl8j0-fU.js +0 -136
  50. package/dist/index-CgClvcTI.js +0 -35617
  51. package/dist/index-CipmEceX-D1vXXSTd.js +0 -74
  52. package/dist/index-Cv4vvpa2-B8Ojlo_m.js +0 -1305
  53. package/dist/index-D4hhdPbZ-DXEZQFco.js +0 -6152
  54. package/dist/index-DhNQ8g9I-CjBYiskZ.js +0 -270
  55. package/dist/index-Djp53tAP-DnPgUG4S.js +0 -94
  56. package/dist/index-KlsAFhIj-Dzil0Vr8.js +0 -566
  57. package/dist/index-OntZqtu6-DPgaaGGJ.js +0 -305
  58. package/dist/index-PGnZjMCR-BPDty4q0.js +0 -301
  59. package/dist/index-TyYoYgss-BIjAZ6j1.js +0 -613
  60. package/dist/index-oMSPmlXA-CoPtKzNe.js +0 -960
  61. package/dist/index-rQC6Gbk0-BZ6M0IzM.js +0 -138
  62. package/dist/javascript-DOuB9oqA-BxiygWgm.js +0 -691
  63. package/dist/julia-DpvXAuO6-Bk_IfD8X.js +0 -241
  64. package/dist/livescript-CanGTf8u-Cx6PrvS4.js +0 -272
  65. package/dist/lua-XplVlWi_-8f8obHzY.js +0 -217
  66. package/dist/mathematica-jaRHnSxC-B83gQsL2.js +0 -35
  67. package/dist/mbox-BctzC1hL-Hg5U2B4l.js +0 -76
  68. package/dist/mirc-CFBPAOaF-CfzSSk9W.js +0 -72
  69. package/dist/mllike-BSnXJBGA-Ao1NpT2u.js +0 -272
  70. package/dist/modelica-vUgVs--1-BObVpYBg.js +0 -93
  71. package/dist/mscgen-Cpl0NYLN-DqNArLGH.js +0 -104
  72. package/dist/mumps-CQoS1kWX-CkTUOQnt.js +0 -25
  73. package/dist/nginx-zDPm3Z74-DJk4KP7N.js +0 -87
  74. package/dist/nsis-BCLyjY7m-C2MffOQ3.js +0 -62
  75. package/dist/ntriples-CsNjv2QF-C4aZn3EO.js +0 -79
  76. package/dist/octave-C8PmmSRH-DM5vTWlU.js +0 -143
  77. package/dist/oz-Ce8aN8oE-BcJM4SVy.js +0 -151
  78. package/dist/pascal-De0D6mP7-D7DGFFKL.js +0 -77
  79. package/dist/perl-B4bSCe1C-6aIa2glS.js +0 -915
  80. package/dist/pig-D24Z8EXi-BD-qt5FU.js +0 -54
  81. package/dist/powershell-DkYVfTzP-Blt1Rodi.js +0 -249
  82. package/dist/properties-Dn9wna3M-EOOwnCnk.js +0 -26
  83. package/dist/protobuf-BPIjwpzm-DAButU8_.js +0 -49
  84. package/dist/pug-TGXr6c5j-C9HfQ86E.js +0 -248
  85. package/dist/puppet-nyd4dhjf-CGzH5dsa.js +0 -45
  86. package/dist/python-BkR3uSy8-CjDnyp3B.js +0 -313
  87. package/dist/q-DyHZGnqm-DGuqeH_T.js +0 -86
  88. package/dist/r-LKEuhEGI-BFQhJnTP.js +0 -104
  89. package/dist/rpm-IznJm2Xc-CbZqrWCM.js +0 -57
  90. package/dist/ruby-CcYfvIk6-DzPSfSGo.js +0 -228
  91. package/dist/sas-7E8yHoCW-D726Uzkw.js +0 -105
  92. package/dist/scheme-DjibxsNh-Bp5gVFkm.js +0 -124
  93. package/dist/shell-C0C2sNA_-BTeYg6ir.js +0 -182
  94. package/dist/sieve-Bwz7vjP5-Cw8iTBf7.js +0 -72
  95. package/dist/simple-mode-mNVtnu0l-BC8mf7KF.js +0 -89
  96. package/dist/smalltalk-Bhddl2pB-B7URiJSp.js +0 -48
  97. package/dist/solr-BNlsLglM-BM2OpfTI.js +0 -41
  98. package/dist/sparql-FarWu_Gb-FN_uQNd4.js +0 -197
  99. package/dist/spreadsheet-C-cy4P5N-5CSTwVYq.js +0 -49
  100. package/dist/sql-CfG5lQ3l-Bd4dgm_8.js +0 -278
  101. package/dist/stex-Du4h4KAU-QOov_zHj.js +0 -129
  102. package/dist/stylus-CAdqWld3-BcRBbBxD.js +0 -250
  103. package/dist/swift-DSxqR9R6-2Hz4NOoF.js +0 -230
  104. package/dist/tcl-xfoLljhY-DAZBRGQI.js +0 -81
  105. package/dist/textile-D1AWE-pc-DuiIfEnb.js +0 -295
  106. package/dist/tiddlywiki-5wqsXtSk-WuF_8VUv.js +0 -155
  107. package/dist/tiki-__Kn3CeS-CWcR9ib_.js +0 -181
  108. package/dist/toml-DWAmxCjl-CyJoDzs6.js +0 -56
  109. package/dist/troff-D2UO-fKf-DVoIzS-O.js +0 -35
  110. package/dist/ttcn-Bsa4sfRm-hoy08sYQ.js +0 -123
  111. package/dist/ttcn-cfg-Bac_acMi-DaC4kQpd.js +0 -88
  112. package/dist/turtle-xwJUxoPV-fs94wdNM.js +0 -80
  113. package/dist/vb-c2kQGd6--DU726qF0.js +0 -74
  114. package/dist/vbscript-1f_Dhg5H-DriA32xD.js +0 -324
  115. package/dist/velocity-DJd0pTTC-BG368IR6.js +0 -96
  116. package/dist/verilog-CiS1jyi5-giQA8J-e.js +0 -259
  117. package/dist/vhdl-T9HkrbI2-BJ8LEDog.js +0 -106
  118. package/dist/webidl-CjfDENEo-BM8KXKJ5.js +0 -155
  119. package/dist/xquery-Ct6lEb4B-C5KDc61l.js +0 -422
  120. package/dist/yacas-C0absKBh-B82QJ76F.js +0 -73
  121. package/dist/z80-Pki2zAjW-B0IQoIbR.js +0 -61
@@ -1,228 +0,0 @@
1
- function p(e) {
2
- for (var n = {}, t = 0, a = e.length; t < a; ++t) n[e[t]] = !0;
3
- return n;
4
- }
5
- var m = [
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
- ], h = p(m), x = p([
66
- "def",
67
- "class",
68
- "case",
69
- "for",
70
- "while",
71
- "until",
72
- "module",
73
- "catch",
74
- "loop",
75
- "proc",
76
- "begin"
77
- ]), v = p(["end", "until"]), k = { "[": "]", "{": "}", "(": ")" }, z = { "]": "[", "}": "{", ")": "(" }, i;
78
- function f(e, n, t) {
79
- return t.tokenize.push(e), e(n, t);
80
- }
81
- function d(e, n) {
82
- if (e.sol() && e.match("=begin") && e.eol())
83
- return n.tokenize.push(y), "comment";
84
- if (e.eatSpace()) return null;
85
- var t = e.next(), a;
86
- if (t == "`" || t == "'" || t == '"')
87
- return f(s(t, "string", t == '"' || t == "`"), e, n);
88
- if (t == "/")
89
- return b(e) ? f(s(t, "string.special", !0), e, n) : "operator";
90
- if (t == "%") {
91
- var o = "string", r = !0;
92
- e.eat("s") ? o = "atom" : e.eat(/[WQ]/) ? o = "string" : e.eat(/[r]/) ? o = "string.special" : e.eat(/[wxq]/) && (o = "string", r = !1);
93
- var u = e.eat(/[^\w\s=]/);
94
- return u ? (k.propertyIsEnumerable(u) && (u = k[u]), f(s(u, o, r, !0), e, n)) : "operator";
95
- } else {
96
- if (t == "#")
97
- return e.skipToEnd(), "comment";
98
- if (t == "<" && (a = e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))
99
- return f(g(a[2], a[1]), e, n);
100
- if (t == "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(t))
103
- return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/), "number";
104
- if (t == "?") {
105
- for (; e.match(/^\\[CM]-/); )
106
- ;
107
- return e.eat("\\") ? e.eatWhile(/\w/) : e.next(), "string";
108
- } else {
109
- if (t == ":")
110
- return e.eat("'") ? f(s("'", "atom", !1), e, n) : e.eat('"') ? f(s('"', "atom", !0), e, n) : 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 (t == "@" && e.match(/^@?[a-zA-Z_\xa1-\uffff]/))
112
- return e.eat("@"), e.eatWhile(/[\w\xa1-\uffff]/), "propertyName";
113
- if (t == "$")
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(t))
116
- return e.eatWhile(/[\w\xa1-\uffff]/), e.eat(/[\?\!]/), e.eat(":") ? "atom" : "variable";
117
- if (t == "|" && (n.varList || n.lastTok == "{" || n.lastTok == "do"))
118
- return i = "|", null;
119
- if (/[\(\)\[\]{}\\;]/.test(t))
120
- return i = t, null;
121
- if (t == "-" && e.eat(">"))
122
- return "operator";
123
- if (/[=+\-\/*:\.^%<>~|]/.test(t)) {
124
- var l = e.eatWhile(/[=+\-\/*:\.^%<>~|]/);
125
- return t == "." && !l && (i = "."), "operator";
126
- } else
127
- return null;
128
- }
129
- }
130
- }
131
- function b(e) {
132
- for (var n = e.pos, t = 0, a, o = !1, r = !1; (a = e.next()) != null; )
133
- if (r)
134
- r = !1;
135
- else {
136
- if ("[{(".indexOf(a) > -1)
137
- t++;
138
- else if ("]})".indexOf(a) > -1) {
139
- if (t--, t < 0) break;
140
- } else if (a == "/" && t == 0) {
141
- o = !0;
142
- break;
143
- }
144
- r = a == "\\";
145
- }
146
- return e.backUp(e.pos - n), o;
147
- }
148
- function c(e) {
149
- return e || (e = 1), function(n, t) {
150
- if (n.peek() == "}") {
151
- if (e == 1)
152
- return t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](n, t);
153
- t.tokenize[t.tokenize.length - 1] = c(e - 1);
154
- } else n.peek() == "{" && (t.tokenize[t.tokenize.length - 1] = c(e + 1));
155
- return d(n, t);
156
- };
157
- }
158
- function _() {
159
- var e = !1;
160
- return function(n, t) {
161
- return e ? (t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](n, t)) : (e = !0, d(n, t));
162
- };
163
- }
164
- function s(e, n, t, a) {
165
- return function(o, r) {
166
- var u = !1, l;
167
- for (r.context.type === "read-quoted-paused" && (r.context = r.context.prev, o.eat("}")); (l = o.next()) != null; ) {
168
- if (l == e && (a || !u)) {
169
- r.tokenize.pop();
170
- break;
171
- }
172
- if (t && l == "#" && !u) {
173
- if (o.eat("{")) {
174
- e == "}" && (r.context = { prev: r.context, type: "read-quoted-paused" }), r.tokenize.push(c());
175
- break;
176
- } else if (/[@\$]/.test(o.peek())) {
177
- r.tokenize.push(_());
178
- break;
179
- }
180
- }
181
- u = !u && l == "\\";
182
- }
183
- return n;
184
- };
185
- }
186
- function g(e, n) {
187
- return function(t, a) {
188
- return n && t.eatSpace(), t.match(e) ? a.tokenize.pop() : t.skipToEnd(), "string";
189
- };
190
- }
191
- function y(e, n) {
192
- return e.sol() && e.match("=end") && e.eol() && n.tokenize.pop(), e.skipToEnd(), "comment";
193
- }
194
- const w = {
195
- name: "ruby",
196
- startState: function(e) {
197
- return {
198
- tokenize: [d],
199
- indented: 0,
200
- context: { type: "top", indented: -e },
201
- continuedLine: !1,
202
- lastTok: null,
203
- varList: !1
204
- };
205
- },
206
- token: function(e, n) {
207
- i = null, e.sol() && (n.indented = e.indentation());
208
- var t = n.tokenize[n.tokenize.length - 1](e, n), a, o = i;
209
- if (t == "variable") {
210
- var r = e.current();
211
- t = n.lastTok == "." ? "property" : h.propertyIsEnumerable(e.current()) ? "keyword" : /^[A-Z]/.test(r) ? "tag" : n.lastTok == "def" || n.lastTok == "class" || n.varList ? "def" : "variable", t == "keyword" && (o = r, x.propertyIsEnumerable(r) ? a = "indent" : v.propertyIsEnumerable(r) ? a = "dedent" : ((r == "if" || r == "unless") && e.column() == e.indentation() || r == "do" && n.context.indented < n.indented) && (a = "indent"));
212
- }
213
- return (i || t && t != "comment") && (n.lastTok = o), i == "|" && (n.varList = !n.varList), a == "indent" || /[\(\[\{]/.test(i) ? n.context = { prev: n.context, type: i || t, indented: n.indented } : (a == "dedent" || /[\)\]\}]/.test(i)) && n.context.prev && (n.context = n.context.prev), e.eol() && (n.continuedLine = i == "\\" || t == "operator"), t;
214
- },
215
- indent: function(e, n, t) {
216
- if (e.tokenize[e.tokenize.length - 1] != d) return null;
217
- var a = n && n.charAt(0), o = e.context, r = o.type == z[a] || o.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(n);
218
- return o.indented + (r ? 0 : t.unit) + (e.continuedLine ? t.unit : 0);
219
- },
220
- languageData: {
221
- indentOnInput: /^\s*(?:end|rescue|elsif|else|\})$/,
222
- commentTokens: { line: "#" },
223
- autocomplete: m
224
- }
225
- };
226
- export {
227
- w as ruby
228
- };
@@ -1,105 +0,0 @@
1
- var s = {}, 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 = /(<=|>=|!=|<>)/, m = /[=\(:\),{}.*<>+\-\/^\[\]]/;
11
- function r(e, n, a) {
12
- if (a)
13
- for (var o = n.split(" "), t = 0; t < o.length; t++)
14
- s[o[t]] = { style: e, state: a };
15
- }
16
- r("def", "stack pgm view source debug nesting nolist", ["inDataStep"]);
17
- r("def", "if while until for do do; end end; then else cancel", ["inDataStep"]);
18
- r("def", "label format _n_ _error_", ["inDataStep"]);
19
- r("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
- r("def", "filevar finfo finv fipname fipnamel fipstate first firstobs floor", ["inDataStep"]);
21
- r("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
- r("def", "zipfips zipname zipnamel zipstate", ["inDataStep"]);
23
- r("def", "put putc putn", ["inDataStep"]);
24
- r("builtin", "data run", ["inDataStep"]);
25
- r("def", "data", ["inProc"]);
26
- r("def", "%if %end %end; %else %else; %do %do; %then", ["inMacro"]);
27
- r("builtin", "proc run; quit; libname filename %macro %mend option options", ["ALL"]);
28
- r("def", "footnote title libname ods", ["ALL"]);
29
- r("def", "%let %put %global %sysfunc %eval ", ["ALL"]);
30
- r("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
- r("def", "source2 nosource2 page pageno pagesize", ["ALL"]);
32
- r("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
- r("operator", "and not ", ["inDataStep", "inProc"]);
34
- function p(e, n) {
35
- var a = e.next();
36
- if (a === "/" && e.eat("*"))
37
- return n.continueComment = !0, "comment";
38
- if (n.continueComment === !0)
39
- return a === "*" && e.peek() === "/" ? (e.next(), n.continueComment = !1) : e.skipTo("*") ? (e.skipTo("*"), e.next(), e.eat("/") && (n.continueComment = !1)) : e.skipToEnd(), "comment";
40
- if (a == "*" && e.column() == e.indentation())
41
- return e.skipToEnd(), "comment";
42
- var o = a + e.peek();
43
- if ((a === '"' || a === "'") && !n.continueString)
44
- return n.continueString = a, "string";
45
- if (n.continueString)
46
- return n.continueString == a ? n.continueString = null : e.skipTo(n.continueString) ? (e.next(), n.continueString = null) : e.skipToEnd(), "string";
47
- if (n.continueString !== null && e.eol())
48
- return e.skipTo(n.continueString) || e.skipToEnd(), "string";
49
- if (/[\d\.]/.test(a))
50
- return a === "." ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : a === "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(a + e.peek()))
52
- return e.next(), "operator";
53
- if (l.hasOwnProperty(o)) {
54
- if (e.next(), e.peek() === " ")
55
- return l[o.toLowerCase()];
56
- } else if (m.test(a))
57
- return "operator";
58
- var t;
59
- if (e.match(/[%&;\w]+/, !1) != null) {
60
- if (t = a + e.match(/[%&;\w]+/, !0), /&/.test(t)) return "variable";
61
- } else
62
- t = a;
63
- if (n.nextword)
64
- return e.match(/[\w]+/), e.peek() === "." && e.skipTo(" "), n.nextword = !1, "variableName.special";
65
- if (t = t.toLowerCase(), n.inDataStep) {
66
- if (t === "run;" || e.match(/run\s;/))
67
- return n.inDataStep = !1, "builtin";
68
- if (t && e.next() === ".")
69
- return /\w/.test(e.peek()) ? "variableName.special" : "variable";
70
- if (t && s.hasOwnProperty(t) && (s[t].state.indexOf("inDataStep") !== -1 || s[t].state.indexOf("ALL") !== -1)) {
71
- e.start < e.pos && e.backUp(e.pos - e.start);
72
- for (var i = 0; i < t.length; ++i) e.next();
73
- return s[t].style;
74
- }
75
- }
76
- if (n.inProc) {
77
- if (t === "run;" || t === "quit;")
78
- return n.inProc = !1, "builtin";
79
- if (t && s.hasOwnProperty(t) && (s[t].state.indexOf("inProc") !== -1 || s[t].state.indexOf("ALL") !== -1))
80
- return e.match(/[\w]+/), s[t].style;
81
- }
82
- return n.inMacro ? t === "%mend" ? (e.peek() === ";" && e.next(), n.inMacro = !1, "builtin") : t && s.hasOwnProperty(t) && (s[t].state.indexOf("inMacro") !== -1 || s[t].state.indexOf("ALL") !== -1) ? (e.match(/[\w]+/), s[t].style) : "atom" : t && s.hasOwnProperty(t) ? (e.backUp(1), e.match(/[\w]+/), t === "data" && /=/.test(e.peek()) === !1 ? (n.inDataStep = !0, n.nextword = !0, "builtin") : t === "proc" ? (n.inProc = !0, n.nextword = !0, "builtin") : t === "%macro" ? (n.inMacro = !0, n.nextword = !0, "builtin") : /title[1-9]/.test(t) ? "def" : t === "footnote" ? (e.eat(/[1-9]/), "def") : n.inDataStep === !0 && s[t].state.indexOf("inDataStep") !== -1 || n.inProc === !0 && s[t].state.indexOf("inProc") !== -1 || n.inMacro === !0 && s[t].state.indexOf("inMacro") !== -1 || s[t].state.indexOf("ALL") !== -1 ? s[t].style : null) : null;
83
- }
84
- const d = {
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, n) {
97
- return e.eatSpace() ? null : p(e, n);
98
- },
99
- languageData: {
100
- commentTokens: { block: { open: "/*", close: "*/" } }
101
- }
102
- };
103
- export {
104
- d as sas
105
- };
@@ -1,124 +0,0 @@
1
- var E = "builtin", s = "comment", g = "string", x = "symbol", c = "atom", b = "number", v = "bracket", S = 2;
2
- function w(e) {
3
- for (var t = {}, a = e.split(" "), n = 0; n < a.length; ++n) t[a[n]] = !0;
4
- return t;
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 Q(e, t, a) {
8
- this.indent = e, this.type = t, this.prev = a;
9
- }
10
- function u(e, t, a) {
11
- e.indentStack = new Q(t, a, e.indentStack);
12
- }
13
- function C(e) {
14
- e.indentStack = e.indentStack.prev;
15
- }
16
- var $ = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i), R = 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), U = 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), I = 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 W(e) {
18
- return e.match($);
19
- }
20
- function z(e) {
21
- return e.match(R);
22
- }
23
- function m(e, t) {
24
- return t === !0 && e.backUp(1), e.match(I);
25
- }
26
- function B(e) {
27
- return e.match(U);
28
- }
29
- function y(e, t) {
30
- for (var a, n = !1; (a = e.next()) != null; ) {
31
- if (a == t.token && !n) {
32
- t.state.mode = !1;
33
- break;
34
- }
35
- n = !n && a == "\\";
36
- }
37
- }
38
- const T = {
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, t) {
50
- if (t.indentStack == null && e.sol() && (t.indentation = e.indentation()), e.eatSpace())
51
- return null;
52
- var a = null;
53
- switch (t.mode) {
54
- case "string":
55
- y(e, {
56
- token: '"',
57
- state: t
58
- }), a = g;
59
- break;
60
- case "symbol":
61
- y(e, {
62
- token: "|",
63
- state: t
64
- }), a = x;
65
- break;
66
- case "comment":
67
- for (var n, p = !1; (n = e.next()) != null; ) {
68
- if (n == "#" && p) {
69
- t.mode = !1;
70
- break;
71
- }
72
- p = n == "|";
73
- }
74
- a = s;
75
- break;
76
- case "s-expr-comment":
77
- if (t.mode = !1, e.peek() == "(" || e.peek() == "[")
78
- t.sExprComment = 0;
79
- else {
80
- e.eatWhile(/[^\s\(\)\[\]]/), a = s;
81
- break;
82
- }
83
- default:
84
- var r = e.next();
85
- if (r == '"')
86
- t.mode = "string", a = g;
87
- else if (r == "'")
88
- e.peek() == "(" || e.peek() == "[" ? (typeof t.sExprQuote != "number" && (t.sExprQuote = 0), a = c) : (e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), a = c);
89
- else if (r == "|")
90
- t.mode = "symbol", a = x;
91
- else if (r == "#")
92
- if (e.eat("|"))
93
- t.mode = "comment", a = s;
94
- else if (e.eat(/[tf]/i))
95
- a = c;
96
- else if (e.eat(";"))
97
- t.mode = "s-expr-comment", a = s;
98
- else {
99
- var i = null, l = !1, f = !0;
100
- e.eat(/[ei]/i) ? l = !0 : e.backUp(1), e.match(/^#b/i) ? i = W : e.match(/^#o/i) ? i = z : e.match(/^#x/i) ? i = B : e.match(/^#d/i) ? i = m : e.match(/^[-+0-9.]/, !1) ? (f = !1, i = m) : l || e.eat("#"), i != null && (f && !l && e.match(/^#[ei]/i), i(e) && (a = b));
101
- }
102
- else if (/^[-+0-9.]/.test(r) && m(e, !0))
103
- a = b;
104
- else if (r == ";")
105
- e.skipToEnd(), a = s;
106
- else if (r == "(" || r == "[") {
107
- for (var o = "", d = e.column(), h; (h = e.eat(/[^\s\(\[\;\)\]]/)) != null; )
108
- o += h;
109
- o.length > 0 && q.propertyIsEnumerable(o) ? u(t, d + S, r) : (e.eatSpace(), e.eol() || e.peek() == ";" ? u(t, d + 1, r) : u(t, d + e.current().length, r)), e.backUp(e.current().length - 1), typeof t.sExprComment == "number" && t.sExprComment++, typeof t.sExprQuote == "number" && t.sExprQuote++, a = v;
110
- } else r == ")" || r == "]" ? (a = v, t.indentStack != null && t.indentStack.type == (r == ")" ? "(" : "[") && (C(t), typeof t.sExprComment == "number" && --t.sExprComment == 0 && (a = s, t.sExprComment = !1), typeof t.sExprQuote == "number" && --t.sExprQuote == 0 && (a = c, t.sExprQuote = !1))) : (e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), k && k.propertyIsEnumerable(e.current()) ? a = E : a = "variable");
111
- }
112
- return typeof t.sExprComment == "number" ? s : typeof t.sExprQuote == "number" ? c : a;
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
- T as scheme
124
- };
@@ -1,182 +0,0 @@
1
- var l = {};
2
- function c(t, e) {
3
- for (var n = 0; n < e.length; n++)
4
- l[e[n]] = t;
5
- }
6
- var f = ["true", "false"], k = [
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
- ], h = [
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
- c("atom", f);
96
- c("keyword", k);
97
- c("builtin", h);
98
- function d(t, e) {
99
- if (t.eatSpace()) return null;
100
- var n = t.sol(), r = t.next();
101
- if (r === "\\")
102
- return t.next(), null;
103
- if (r === "'" || r === '"' || r === "`")
104
- return e.tokens.unshift(a(r, r === "`" ? "quote" : "string")), u(t, e);
105
- if (r === "#")
106
- return n && t.eat("!") ? (t.skipToEnd(), "meta") : (t.skipToEnd(), "comment");
107
- if (r === "$")
108
- return e.tokens.unshift(p), u(t, e);
109
- if (r === "+" || r === "=")
110
- return "operator";
111
- if (r === "-")
112
- return t.eat("-"), t.eatWhile(/\w/), "attribute";
113
- if (r == "<") {
114
- if (t.match("<<")) return "operator";
115
- var i = t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
116
- if (i)
117
- return e.tokens.unshift(m(i[1] || i[2])), "string.special";
118
- }
119
- if (/\d/.test(r) && (t.eatWhile(/\d/), t.eol() || !/\w/.test(t.peek())))
120
- return "number";
121
- t.eatWhile(/[\w-]/);
122
- var s = t.current();
123
- return t.peek() === "=" && /\w+/.test(s) ? "def" : l.hasOwnProperty(s) ? l[s] : null;
124
- }
125
- function a(t, e) {
126
- var n = t == "(" ? ")" : t == "{" ? "}" : t;
127
- return function(r, i) {
128
- for (var s, o = !1; (s = r.next()) != null; ) {
129
- if (s === n && !o) {
130
- i.tokens.shift();
131
- break;
132
- } else if (s === "$" && !o && t !== "'" && r.peek() != n) {
133
- o = !0, r.backUp(1), i.tokens.unshift(p);
134
- break;
135
- } else {
136
- if (!o && t !== n && s === t)
137
- return i.tokens.unshift(a(t, e)), u(r, i);
138
- if (!o && /['"]/.test(s) && !/['"]/.test(t)) {
139
- i.tokens.unshift(g(s, "string")), r.backUp(1);
140
- break;
141
- }
142
- }
143
- o = !o && s === "\\";
144
- }
145
- return e;
146
- };
147
- }
148
- function g(t, e) {
149
- return function(n, r) {
150
- return r.tokens[0] = a(t, e), n.next(), u(n, r);
151
- };
152
- }
153
- var p = function(t, e) {
154
- e.tokens.length > 1 && t.eat("$");
155
- var n = t.next();
156
- return /['"({]/.test(n) ? (e.tokens[0] = a(n, n == "(" ? "quote" : n == "{" ? "def" : "string"), u(t, e)) : (/\d/.test(n) || t.eatWhile(/\w/), e.tokens.shift(), "def");
157
- };
158
- function m(t) {
159
- return function(e, n) {
160
- return e.sol() && e.string == t && n.tokens.shift(), e.skipToEnd(), "string.special";
161
- };
162
- }
163
- function u(t, e) {
164
- return (e.tokens[0] || d)(t, e);
165
- }
166
- const w = {
167
- name: "shell",
168
- startState: function() {
169
- return { tokens: [] };
170
- },
171
- token: function(t, e) {
172
- return u(t, e);
173
- },
174
- languageData: {
175
- autocomplete: f.concat(k, h),
176
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
177
- commentTokens: { line: "#" }
178
- }
179
- };
180
- export {
181
- w as shell
182
- };