@aiao/code-editor 0.0.7 → 0.0.9

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 (125) hide show
  1. package/dist/apl-B2DGVGxc.js +76 -0
  2. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  3. package/dist/asn1-jKiBa2Ya.js +95 -0
  4. package/dist/asterisk-DS281yxp.js +271 -0
  5. package/dist/brainfuck-C_p9pTT8.js +34 -0
  6. package/dist/clike-BMALKCNj.js +620 -0
  7. package/dist/clojure-CCKyeQKf.js +800 -0
  8. package/dist/cmake-CuaCgAKt.js +28 -0
  9. package/dist/cobol-BlTKFDRj.js +72 -0
  10. package/dist/coffeescript-BVCvwO8I.js +179 -0
  11. package/dist/commonlisp-D_kxz07b.js +75 -0
  12. package/dist/crystal-D309uH6_.js +217 -0
  13. package/dist/css-BkF-NPzE.js +1553 -0
  14. package/dist/cypher-BMq4Fwjl.js +68 -0
  15. package/dist/d-BZcgY6La.js +127 -0
  16. package/dist/diff-Cg9d_RX2.js +18 -0
  17. package/dist/dockerfile-DFX8bq9N.js +194 -0
  18. package/dist/dtd-CtLokQ-U.js +84 -0
  19. package/dist/dylan-QYeExnWK.js +234 -0
  20. package/dist/ebnf-DUPDuY4r.js +78 -0
  21. package/dist/ecl-CiXN-g_D.js +121 -0
  22. package/dist/eiffel-yQhjl4T1.js +110 -0
  23. package/dist/elm-CNT9vbN0.js +108 -0
  24. package/dist/erlang-CFOYdy9e.js +487 -0
  25. package/dist/factor-Clf6BoVk.js +65 -0
  26. package/dist/fcl-CPC2WYrI.js +103 -0
  27. package/dist/forth-BmxRyE9S.js +60 -0
  28. package/dist/fortran-9bvPyrOW.js +442 -0
  29. package/dist/gas-cpmYfFX2.js +183 -0
  30. package/dist/gherkin-CJuwpceU.js +34 -0
  31. package/dist/groovy-DZeT_VM-.js +146 -0
  32. package/dist/haskell-CxiO_7JL.js +375 -0
  33. package/dist/haxe-70NVW1pR.js +359 -0
  34. package/dist/http-D9LttvKF.js +44 -0
  35. package/dist/idl-B6TRFYjl.js +947 -0
  36. package/dist/index-4oLq9F9B.js +945 -0
  37. package/dist/index-9NH8hlZ-.js +342 -0
  38. package/dist/index-BFXNCCbG.js +253 -0
  39. package/dist/index-BLHYcXXK.js +101 -0
  40. package/dist/index-BQU3Rb2C.js +290 -0
  41. package/dist/index-Bg18ePld.js +157 -0
  42. package/dist/index-Bp5lqnbN.js +555 -0
  43. package/dist/index-Bqzq8A1N.js +59 -0
  44. package/dist/index-Bx-s4g99.js +76 -0
  45. package/dist/index-BxX25QmV.js +248 -0
  46. package/dist/index-CFCzgc33.js +1918 -0
  47. package/dist/index-CL7JTU9M.js +136 -0
  48. package/dist/index-CZGsg2Zk.js +12945 -0
  49. package/dist/index-CipmEceX.js +74 -0
  50. package/dist/index-Cv4vvpa2.js +1305 -0
  51. package/dist/index-D4hhdPbZ.js +6153 -0
  52. package/dist/index-DhNQ8g9I.js +270 -0
  53. package/dist/index-Djp53tAP.js +94 -0
  54. package/dist/index-KlsAFhIj.js +566 -0
  55. package/dist/index-OntZqtu6.js +309 -0
  56. package/dist/index-PGnZjMCR.js +302 -0
  57. package/dist/index-TyYoYgss.js +613 -0
  58. package/dist/index-oMSPmlXA.js +960 -0
  59. package/dist/index-rQC6Gbk0.js +138 -0
  60. package/dist/index.d.ts +1 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +19 -1
  63. package/dist/javascript-DOuB9oqA.js +691 -0
  64. package/dist/julia-DpvXAuO6.js +241 -0
  65. package/dist/languages.d.ts +18 -0
  66. package/dist/languages.d.ts.map +1 -0
  67. package/dist/livescript-CanGTf8u.js +272 -0
  68. package/dist/lua-XplVlWi_.js +217 -0
  69. package/dist/mathematica-jaRHnSxC.js +35 -0
  70. package/dist/mbox-BctzC1hL.js +76 -0
  71. package/dist/mirc-CFBPAOaF.js +72 -0
  72. package/dist/mllike-BSnXJBGA.js +272 -0
  73. package/dist/modelica-vUgVs--1.js +93 -0
  74. package/dist/mscgen-Cpl0NYLN.js +104 -0
  75. package/dist/mumps-CQoS1kWX.js +25 -0
  76. package/dist/nginx-zDPm3Z74.js +89 -0
  77. package/dist/nsis-BCLyjY7m.js +62 -0
  78. package/dist/ntriples-CsNjv2QF.js +79 -0
  79. package/dist/octave-C8PmmSRH.js +143 -0
  80. package/dist/oz-Ce8aN8oE.js +151 -0
  81. package/dist/pascal-De0D6mP7.js +77 -0
  82. package/dist/perl-B4bSCe1C.js +915 -0
  83. package/dist/pig-D24Z8EXi.js +54 -0
  84. package/dist/powershell-DkYVfTzP.js +249 -0
  85. package/dist/properties-Dn9wna3M.js +26 -0
  86. package/dist/protobuf-BPIjwpzm.js +49 -0
  87. package/dist/pug-TGXr6c5j.js +248 -0
  88. package/dist/puppet-nyd4dhjf.js +45 -0
  89. package/dist/python-BkR3uSy8.js +313 -0
  90. package/dist/q-DyHZGnqm.js +86 -0
  91. package/dist/r-LKEuhEGI.js +104 -0
  92. package/dist/rpm-IznJm2Xc.js +57 -0
  93. package/dist/ruby-CcYfvIk6.js +228 -0
  94. package/dist/sas-7E8yHoCW.js +105 -0
  95. package/dist/scheme-DjibxsNh.js +124 -0
  96. package/dist/shell-C0C2sNA_.js +182 -0
  97. package/dist/sieve-Bwz7vjP5.js +72 -0
  98. package/dist/simple-mode-mNVtnu0l.js +89 -0
  99. package/dist/smalltalk-Bhddl2pB.js +48 -0
  100. package/dist/solr-BNlsLglM.js +41 -0
  101. package/dist/sparql-FarWu_Gb.js +197 -0
  102. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  103. package/dist/sql-CfG5lQ3l.js +282 -0
  104. package/dist/stex-Du4h4KAU.js +129 -0
  105. package/dist/stylus-CAdqWld3.js +250 -0
  106. package/dist/swift-DSxqR9R6.js +230 -0
  107. package/dist/tcl-xfoLljhY.js +81 -0
  108. package/dist/textile-D1AWE-pc.js +295 -0
  109. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  110. package/dist/tiki-__Kn3CeS.js +181 -0
  111. package/dist/toml-DWAmxCjl.js +58 -0
  112. package/dist/troff-D2UO-fKf.js +35 -0
  113. package/dist/ttcn-Bsa4sfRm.js +123 -0
  114. package/dist/ttcn-cfg-Bac_acMi.js +88 -0
  115. package/dist/turtle-xwJUxoPV.js +80 -0
  116. package/dist/vb-c2kQGd6-.js +74 -0
  117. package/dist/vbscript-1f_Dhg5H.js +324 -0
  118. package/dist/velocity-DJd0pTTC.js +96 -0
  119. package/dist/verilog-CiS1jyi5.js +262 -0
  120. package/dist/vhdl-T9HkrbI2.js +106 -0
  121. package/dist/webidl-CjfDENEo.js +155 -0
  122. package/dist/xquery-Ct6lEb4B.js +422 -0
  123. package/dist/yacas-C0absKBh.js +73 -0
  124. package/dist/z80-Pki2zAjW.js +61 -0
  125. package/package.json +16 -7
@@ -0,0 +1,359 @@
1
+ function o(e) {
2
+ return { type: e, style: "keyword" };
3
+ }
4
+ var P = o("keyword a"), W = o("keyword b"), g = o("keyword c"), K = o("operator"), z = { type: "atom", style: "atom" }, y = { type: "attribute", style: "attribute" }, c = o("typedef"), B = {
5
+ if: P,
6
+ while: P,
7
+ else: W,
8
+ do: W,
9
+ try: W,
10
+ return: g,
11
+ break: g,
12
+ continue: g,
13
+ new: g,
14
+ throw: g,
15
+ var: o("var"),
16
+ inline: y,
17
+ static: y,
18
+ using: o("import"),
19
+ public: y,
20
+ private: y,
21
+ cast: o("cast"),
22
+ import: o("import"),
23
+ macro: o("macro"),
24
+ function: o("function"),
25
+ catch: o("catch"),
26
+ untyped: o("untyped"),
27
+ callback: o("cb"),
28
+ for: o("for"),
29
+ switch: o("switch"),
30
+ case: o("case"),
31
+ default: o("default"),
32
+ in: K,
33
+ never: o("property_access"),
34
+ trace: o("trace"),
35
+ class: c,
36
+ abstract: c,
37
+ enum: c,
38
+ interface: c,
39
+ typedef: c,
40
+ extends: c,
41
+ implements: c,
42
+ dynamic: c,
43
+ true: z,
44
+ false: z,
45
+ null: z
46
+ }, E = /[+\-*&%=<>!?|]/;
47
+ function I(e, r, n) {
48
+ return r.tokenize = n, n(e, r);
49
+ }
50
+ function L(e, r) {
51
+ for (var n = !1, i; (i = e.next()) != null; ) {
52
+ if (i == r && !n)
53
+ return !0;
54
+ n = !n && i == "\\";
55
+ }
56
+ }
57
+ var c, N;
58
+ function p(e, r, n) {
59
+ return c = e, N = n, r;
60
+ }
61
+ function A(e, r) {
62
+ var n = e.next();
63
+ if (n == '"' || n == "'")
64
+ return I(e, r, M(n));
65
+ if (/[\[\]{}\(\),;\:\.]/.test(n))
66
+ return p(n);
67
+ if (n == "0" && e.eat(/x/i))
68
+ return e.eatWhile(/[\da-f]/i), p("number", "number");
69
+ if (/\d/.test(n) || n == "-" && e.eat(/\d/))
70
+ return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/), p("number", "number");
71
+ if (r.reAllowed && n == "~" && e.eat(/\//))
72
+ return L(e, "/"), e.eatWhile(/[gimsu]/), p("regexp", "string.special");
73
+ if (n == "/")
74
+ return e.eat("*") ? I(e, r, Q) : e.eat("/") ? (e.skipToEnd(), p("comment", "comment")) : (e.eatWhile(E), p("operator", null, e.current()));
75
+ if (n == "#")
76
+ return e.skipToEnd(), p("conditional", "meta");
77
+ if (n == "@")
78
+ return e.eat(/:/), e.eatWhile(/[\w_]/), p("metadata", "meta");
79
+ if (E.test(n))
80
+ return e.eatWhile(E), p("operator", null, e.current());
81
+ var i;
82
+ if (/[A-Z]/.test(n))
83
+ return e.eatWhile(/[\w_<>]/), i = e.current(), p("type", "type", i);
84
+ e.eatWhile(/[\w_]/);
85
+ var i = e.current(), u = B.propertyIsEnumerable(i) && B[i];
86
+ return u && r.kwAllowed ? p(u.type, u.style, i) : p("variable", "variable", i);
87
+ }
88
+ function M(e) {
89
+ return function(r, n) {
90
+ return L(r, e) && (n.tokenize = A), p("string", "string");
91
+ };
92
+ }
93
+ function Q(e, r) {
94
+ for (var n = !1, i; i = e.next(); ) {
95
+ if (i == "/" && n) {
96
+ r.tokenize = A;
97
+ break;
98
+ }
99
+ n = i == "*";
100
+ }
101
+ return p("comment", "comment");
102
+ }
103
+ var $ = { atom: !0, number: !0, variable: !0, string: !0, regexp: !0 };
104
+ function j(e, r, n, i, u, s) {
105
+ this.indented = e, this.column = r, this.type = n, this.prev = u, this.info = s, i != null && (this.align = i);
106
+ }
107
+ function R(e, r) {
108
+ for (var n = e.localVars; n; n = n.next)
109
+ if (n.name == r) return !0;
110
+ }
111
+ function X(e, r, n, i, u) {
112
+ var s = e.cc;
113
+ for (a.state = e, a.stream = u, a.marked = null, a.cc = s, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0); ; ) {
114
+ var k = s.length ? s.pop() : x;
115
+ if (k(n, i)) {
116
+ for (; s.length && s[s.length - 1].lex; )
117
+ s.pop()();
118
+ return a.marked ? a.marked : n == "variable" && R(e, i) ? "variableName.local" : n == "variable" && Y(e, i) ? "variableName.special" : r;
119
+ }
120
+ }
121
+ }
122
+ function Y(e, r) {
123
+ if (/[a-z]/.test(r.charAt(0)))
124
+ return !1;
125
+ for (var n = e.importedtypes.length, i = 0; i < n; i++)
126
+ if (e.importedtypes[i] == r) return !0;
127
+ }
128
+ function F(e) {
129
+ for (var r = a.state, n = r.importedtypes; n; n = n.next)
130
+ if (n.name == e) return;
131
+ r.importedtypes = { name: e, next: r.importedtypes };
132
+ }
133
+ var a = { state: null, marked: null, cc: null };
134
+ function b() {
135
+ for (var e = arguments.length - 1; e >= 0; e--) a.cc.push(arguments[e]);
136
+ }
137
+ function t() {
138
+ return b.apply(null, arguments), !0;
139
+ }
140
+ function H(e, r) {
141
+ for (var n = r; n; n = n.next)
142
+ if (n.name == e) return !0;
143
+ return !1;
144
+ }
145
+ function S(e) {
146
+ var r = a.state;
147
+ if (r.context) {
148
+ if (a.marked = "def", H(e, r.localVars)) return;
149
+ r.localVars = { name: e, next: r.localVars };
150
+ } else if (r.globalVars) {
151
+ if (H(e, r.globalVars)) return;
152
+ r.globalVars = { name: e, next: r.globalVars };
153
+ }
154
+ }
155
+ var ee = { name: "this", next: null };
156
+ function D() {
157
+ a.state.context || (a.state.localVars = ee), a.state.context = { prev: a.state.context, vars: a.state.localVars };
158
+ }
159
+ function V() {
160
+ a.state.localVars = a.state.context.vars, a.state.context = a.state.context.prev;
161
+ }
162
+ V.lex = !0;
163
+ function l(e, r) {
164
+ var n = function() {
165
+ var i = a.state;
166
+ i.lexical = new j(i.indented, a.stream.column(), e, null, i.lexical, r);
167
+ };
168
+ return n.lex = !0, n;
169
+ }
170
+ function f() {
171
+ var e = a.state;
172
+ e.lexical.prev && (e.lexical.type == ")" && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev);
173
+ }
174
+ f.lex = !0;
175
+ function d(e) {
176
+ function r(n) {
177
+ return n == e ? t() : e == ";" ? b() : t(r);
178
+ }
179
+ return r;
180
+ }
181
+ function x(e) {
182
+ return e == "@" ? t(Z) : e == "var" ? t(l("vardef"), C, d(";"), f) : e == "keyword a" ? t(l("form"), h, x, f) : e == "keyword b" ? t(l("form"), x, f) : e == "{" ? t(l("}"), D, _, f, V) : e == ";" ? t() : e == "attribute" ? t(U) : e == "function" ? t(w) : e == "for" ? t(
183
+ l("form"),
184
+ d("("),
185
+ l(")"),
186
+ ae,
187
+ d(")"),
188
+ f,
189
+ x,
190
+ f
191
+ ) : e == "variable" ? t(l("stat"), te) : e == "switch" ? t(
192
+ l("form"),
193
+ h,
194
+ l("}", "switch"),
195
+ d("{"),
196
+ _,
197
+ f,
198
+ f
199
+ ) : e == "case" ? t(h, d(":")) : e == "default" ? t(d(":")) : e == "catch" ? t(
200
+ l("form"),
201
+ D,
202
+ d("("),
203
+ J,
204
+ d(")"),
205
+ x,
206
+ f,
207
+ V
208
+ ) : e == "import" ? t(q, d(";")) : e == "typedef" ? t(ne) : b(l("stat"), h, d(";"), f);
209
+ }
210
+ function h(e) {
211
+ return $.hasOwnProperty(e) || e == "type" ? t(v) : e == "function" ? t(w) : e == "keyword c" ? t(O) : e == "(" ? t(l(")"), O, d(")"), f, v) : e == "operator" ? t(h) : e == "[" ? t(l("]"), m(O, "]"), f, v) : e == "{" ? t(l("}"), m(ue, "}"), f, v) : t();
212
+ }
213
+ function O(e) {
214
+ return e.match(/[;\}\)\],]/) ? b() : b(h);
215
+ }
216
+ function v(e, r) {
217
+ if (e == "operator" && /\+\+|--/.test(r)) return t(v);
218
+ if (e == "operator" || e == ":") return t(h);
219
+ if (e != ";") {
220
+ if (e == "(") return t(l(")"), m(h, ")"), f, v);
221
+ if (e == ".") return t(ie, v);
222
+ if (e == "[") return t(l("]"), h, d("]"), f, v);
223
+ }
224
+ }
225
+ function U(e) {
226
+ if (e == "attribute") return t(U);
227
+ if (e == "function") return t(w);
228
+ if (e == "var") return t(C);
229
+ }
230
+ function Z(e) {
231
+ if (e == ":" || e == "variable") return t(Z);
232
+ if (e == "(") return t(l(")"), m(re, ")"), f, x);
233
+ }
234
+ function re(e) {
235
+ if (e == "variable") return t();
236
+ }
237
+ function q(e, r) {
238
+ if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
239
+ return F(r), t();
240
+ if (e == "variable" || e == "property" || e == "." || r == "*") return t(q);
241
+ }
242
+ function ne(e, r) {
243
+ if (e == "variable" && /[A-Z]/.test(r.charAt(0)))
244
+ return F(r), t();
245
+ if (e == "type" && /[A-Z]/.test(r.charAt(0)))
246
+ return t();
247
+ }
248
+ function te(e) {
249
+ return e == ":" ? t(f, x) : b(v, d(";"), f);
250
+ }
251
+ function ie(e) {
252
+ if (e == "variable")
253
+ return a.marked = "property", t();
254
+ }
255
+ function ue(e) {
256
+ if (e == "variable" && (a.marked = "property"), $.hasOwnProperty(e)) return t(d(":"), h);
257
+ }
258
+ function m(e, r) {
259
+ function n(i) {
260
+ return i == "," ? t(e, n) : i == r ? t() : t(d(r));
261
+ }
262
+ return function(i) {
263
+ return i == r ? t() : b(e, n);
264
+ };
265
+ }
266
+ function _(e) {
267
+ return e == "}" ? t() : b(x, _);
268
+ }
269
+ function C(e, r) {
270
+ return e == "variable" ? (S(r), t(T, G)) : t();
271
+ }
272
+ function G(e, r) {
273
+ if (r == "=") return t(h, G);
274
+ if (e == ",") return t(C);
275
+ }
276
+ function ae(e, r) {
277
+ return e == "variable" ? (S(r), t(fe, h)) : b();
278
+ }
279
+ function fe(e, r) {
280
+ if (r == "in") return t();
281
+ }
282
+ function w(e, r) {
283
+ if (e == "variable" || e == "type")
284
+ return S(r), t(w);
285
+ if (r == "new") return t(w);
286
+ if (e == "(") return t(l(")"), D, m(J, ")"), f, T, x, V);
287
+ }
288
+ function T(e) {
289
+ if (e == ":") return t(oe);
290
+ }
291
+ function oe(e) {
292
+ if (e == "type" || e == "variable") return t();
293
+ if (e == "{") return t(l("}"), m(le, "}"), f);
294
+ }
295
+ function le(e) {
296
+ if (e == "variable") return t(T);
297
+ }
298
+ function J(e, r) {
299
+ if (e == "variable")
300
+ return S(r), t(T);
301
+ }
302
+ const ce = {
303
+ name: "haxe",
304
+ startState: function(e) {
305
+ var r = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"], n = {
306
+ tokenize: A,
307
+ reAllowed: !0,
308
+ kwAllowed: !0,
309
+ cc: [],
310
+ lexical: new j(-e, 0, "block", !1),
311
+ importedtypes: r,
312
+ context: null,
313
+ indented: 0
314
+ };
315
+ return n;
316
+ },
317
+ token: function(e, r) {
318
+ if (e.sol() && (r.lexical.hasOwnProperty("align") || (r.lexical.align = !1), r.indented = e.indentation()), e.eatSpace()) return null;
319
+ var n = r.tokenize(e, r);
320
+ return c == "comment" ? n : (r.reAllowed = !!(c == "operator" || c == "keyword c" || c.match(/^[\[{}\(,;:]$/)), r.kwAllowed = c != ".", X(r, n, c, N, e));
321
+ },
322
+ indent: function(e, r, n) {
323
+ if (e.tokenize != A) return 0;
324
+ var i = r && r.charAt(0), u = e.lexical;
325
+ u.type == "stat" && i == "}" && (u = u.prev);
326
+ var s = u.type, k = i == s;
327
+ return s == "vardef" ? u.indented + 4 : s == "form" && i == "{" ? u.indented : s == "stat" || s == "form" ? u.indented + n.unit : u.info == "switch" && !k ? u.indented + (/^(?:case|default)\b/.test(r) ? n.unit : 2 * n.unit) : u.align ? u.column + (k ? 0 : 1) : u.indented + (k ? 0 : n.unit);
328
+ },
329
+ languageData: {
330
+ indentOnInput: /^\s*[{}]$/,
331
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
332
+ }
333
+ }, se = {
334
+ name: "hxml",
335
+ startState: function() {
336
+ return {
337
+ define: !1,
338
+ inString: !1
339
+ };
340
+ },
341
+ token: function(e, r) {
342
+ var u = e.peek(), n = e.sol();
343
+ if (u == "#")
344
+ return e.skipToEnd(), "comment";
345
+ if (n && u == "-") {
346
+ var i = "variable-2";
347
+ return e.eat(/-/), e.peek() == "-" && (e.eat(/-/), i = "keyword a"), e.peek() == "D" && (e.eat(/[D]/), i = "keyword c", r.define = !0), e.eatWhile(/[A-Z]/i), i;
348
+ }
349
+ var u = e.peek();
350
+ return r.inString == !1 && u == "'" && (r.inString = !0, e.next()), r.inString == !0 ? (e.skipTo("'") || e.skipToEnd(), e.peek() == "'" && (e.next(), r.inString = !1), "string") : (e.next(), null);
351
+ },
352
+ languageData: {
353
+ commentTokens: { line: "#" }
354
+ }
355
+ };
356
+ export {
357
+ ce as haxe,
358
+ se as hxml
359
+ };
@@ -0,0 +1,44 @@
1
+ function u(r, n) {
2
+ return r.skipToEnd(), n.cur = t, "error";
3
+ }
4
+ function i(r, n) {
5
+ return r.match(/^HTTP\/\d\.\d/) ? (n.cur = f, "keyword") : r.match(/^[A-Z]+/) && /[ \t]/.test(r.peek()) ? (n.cur = d, "keyword") : u(r, n);
6
+ }
7
+ function f(r, n) {
8
+ var e = r.match(/^\d+/);
9
+ if (!e) return u(r, n);
10
+ n.cur = l;
11
+ var o = Number(e[0]);
12
+ return o >= 100 && o < 400 ? "atom" : "error";
13
+ }
14
+ function l(r, n) {
15
+ return r.skipToEnd(), n.cur = t, null;
16
+ }
17
+ function d(r, n) {
18
+ return r.eatWhile(/\S/), n.cur = s, "string.special";
19
+ }
20
+ function s(r, n) {
21
+ return r.match(/^HTTP\/\d\.\d$/) ? (n.cur = t, "keyword") : u(r, n);
22
+ }
23
+ function t(r) {
24
+ return r.sol() && !r.eat(/[ \t]/) ? r.match(/^.*?:/) ? "atom" : (r.skipToEnd(), "error") : (r.skipToEnd(), "string");
25
+ }
26
+ function c(r) {
27
+ return r.skipToEnd(), null;
28
+ }
29
+ const p = {
30
+ name: "http",
31
+ token: function(r, n) {
32
+ var e = n.cur;
33
+ return e != t && e != c && r.eatSpace() ? null : e(r, n);
34
+ },
35
+ blankLine: function(r) {
36
+ r.cur = c;
37
+ },
38
+ startState: function() {
39
+ return { cur: i };
40
+ }
41
+ };
42
+ export {
43
+ p as http
44
+ };