zs_library 0.4.6 → 0.4.8

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 (118) hide show
  1. package/dist/apl-DzB7vleG.js +77 -0
  2. package/dist/asciiarmor-GBg_dTix.js +35 -0
  3. package/dist/asn1-C3znSLx9.js +96 -0
  4. package/dist/asterisk-DlqRFsge.js +272 -0
  5. package/dist/brainfuck-BRsrPeoO.js +35 -0
  6. package/dist/clike-BvRdj3ii.js +621 -0
  7. package/dist/clojure-DoHCnq3P.js +801 -0
  8. package/dist/cmake-lga2BQKc.js +29 -0
  9. package/dist/cobol-CoUZEClC.js +73 -0
  10. package/dist/coffeescript-DtzhVgPb.js +180 -0
  11. package/dist/commonlisp-Dczl5pgK.js +76 -0
  12. package/dist/crystal-CGcK8mnw.js +218 -0
  13. package/dist/css-BSROsPdq.js +1561 -0
  14. package/dist/cypher-DtSMl1Mv.js +69 -0
  15. package/dist/d-Dvhr70b-.js +128 -0
  16. package/dist/diff-CGwDp7kO.js +19 -0
  17. package/dist/dockerfile-comEO-T6.js +195 -0
  18. package/dist/dtd-CCHJ68ra.js +85 -0
  19. package/dist/dylan-DuvcMu5H.js +235 -0
  20. package/dist/ebnf-40BT7kIS.js +79 -0
  21. package/dist/ecl-D1uoNQJW.js +122 -0
  22. package/dist/eiffel-5pGo0kXa.js +111 -0
  23. package/dist/elm-BaiVOLJD.js +109 -0
  24. package/dist/erlang-CkzodiGe.js +488 -0
  25. package/dist/factor-BOXOAn_M.js +66 -0
  26. package/dist/fcl-BpnTn_eU.js +104 -0
  27. package/dist/forth-DErAeAEb.js +61 -0
  28. package/dist/fortran-D2-6KpzO.js +443 -0
  29. package/dist/gas-DyEPANLH.js +184 -0
  30. package/dist/gherkin-Drt_srgO.js +35 -0
  31. package/dist/groovy-BMVfw_nf.js +147 -0
  32. package/dist/haskell-hWhKnZO1.js +376 -0
  33. package/dist/haxe-B1MRfS0p.js +360 -0
  34. package/dist/http-DmgKxj-g.js +45 -0
  35. package/dist/idl-DqZ86h3r.js +948 -0
  36. package/dist/index-5dj8r7GK.js +266 -0
  37. package/dist/index-BTXiadLB.js +309 -0
  38. package/dist/index-BlC4-BmN.js +72 -0
  39. package/dist/index-BrFeP3fX.js +244 -0
  40. package/dist/index-Bto4OncH.js +539 -0
  41. package/dist/index-Bvv7YkGe.js +136 -0
  42. package/dist/index-Bx4MkRG_.js +76 -0
  43. package/dist/index-CVOhQMF3.js +608 -0
  44. package/dist/index-CecD8NGL.js +228472 -0
  45. package/dist/index-CmoZmAhh.js +289 -0
  46. package/dist/index-DE3hmKbB.js +135 -0
  47. package/dist/index-DF7XjAxV.js +94 -0
  48. package/dist/index-DcChItCb.js +157 -0
  49. package/dist/index-Dl5DpQ2k.js +342 -0
  50. package/dist/index-Dpbxeq5U.js +59 -0
  51. package/dist/index-gpJmCEdM.js +99 -0
  52. package/dist/index-udH8R_K0.js +300 -0
  53. package/dist/{zs_library.css → index.css} +1 -1
  54. package/dist/index.js +9 -0
  55. package/dist/javascript-BvuVDFxD.js +691 -0
  56. package/dist/jinja2-sU0UaYnG.js +155 -0
  57. package/dist/julia-3_lRZPrK.js +242 -0
  58. package/dist/livescript-BeDiX_lv.js +273 -0
  59. package/dist/lua-DsgFLpii.js +218 -0
  60. package/dist/mathematica-1GSq-6KQ.js +36 -0
  61. package/dist/mbox-agttEgFX.js +77 -0
  62. package/dist/mirc-0mTi20sq.js +73 -0
  63. package/dist/mllike-Cn3QD1L6.js +273 -0
  64. package/dist/modelica-zXUsSMFb.js +94 -0
  65. package/dist/mscgen-CjqYDKLG.js +105 -0
  66. package/dist/mumps-o2cuacx9.js +26 -0
  67. package/dist/nginx-BwTpvSVN.js +90 -0
  68. package/dist/nsis-BuRdhAu4.js +63 -0
  69. package/dist/ntriples-DrgMTIhT.js +80 -0
  70. package/dist/octave-Cxdtf9mO.js +144 -0
  71. package/dist/oz-DFmTw-qE.js +152 -0
  72. package/dist/pascal-DXxn4Ogv.js +78 -0
  73. package/dist/perl-C73cx1ym.js +916 -0
  74. package/dist/pig-Bb8sMbk0.js +55 -0
  75. package/dist/powershell-DxmufwKU.js +250 -0
  76. package/dist/properties-C4fhBR7T.js +27 -0
  77. package/dist/protobuf-Eqae3kep.js +50 -0
  78. package/dist/pug-Cdoid33I.js +249 -0
  79. package/dist/puppet-BH84QZvC.js +46 -0
  80. package/dist/python-D32-_XsH.js +314 -0
  81. package/dist/q-CDvEpNHY.js +84 -0
  82. package/dist/r-D9TtEI-G.js +105 -0
  83. package/dist/rpm-Ckejt31K.js +58 -0
  84. package/dist/ruby-gRVA_lpr.js +229 -0
  85. package/dist/sas-Cetv6MtF.js +106 -0
  86. package/dist/scheme-BpAxUIwV.js +125 -0
  87. package/dist/shell-DmARhv5h.js +183 -0
  88. package/dist/sieve-DJENs6f1.js +73 -0
  89. package/dist/simple-mode-B0kVDhR7.js +89 -0
  90. package/dist/smalltalk-CtRR6guu.js +49 -0
  91. package/dist/solr-ZVIJNGhC.js +42 -0
  92. package/dist/sparql-Cg1WYQva.js +198 -0
  93. package/dist/spreadsheet-Bi94Lk_2.js +50 -0
  94. package/dist/sql-BLhvp4JJ.js +283 -0
  95. package/dist/stex-DuReG47O.js +130 -0
  96. package/dist/stylus-D5QpSSbb.js +251 -0
  97. package/dist/swift-CZplZXOW.js +231 -0
  98. package/dist/tcl-COiqjz-O.js +82 -0
  99. package/dist/textile-BIDpYsbD.js +296 -0
  100. package/dist/tiddlywiki-C4woD_uK.js +156 -0
  101. package/dist/tiki-Ddj0Z2aQ.js +182 -0
  102. package/dist/toml-Byr0PaXO.js +50 -0
  103. package/dist/troff-BEvN8lSw.js +36 -0
  104. package/dist/ttcn-CyeSpuPS.js +124 -0
  105. package/dist/ttcn-cfg-C4JBLVfg.js +89 -0
  106. package/dist/turtle-8qSCc9Tc.js +81 -0
  107. package/dist/vb-BOJI7cFm.js +75 -0
  108. package/dist/vbscript-Cu6iG9pw.js +325 -0
  109. package/dist/velocity-BEpFYT7L.js +97 -0
  110. package/dist/verilog-BBxq08Rh.js +264 -0
  111. package/dist/vhdl-B0tZHMGi.js +107 -0
  112. package/dist/webidl-CW91NtvY.js +156 -0
  113. package/dist/xquery-DzC9wL36.js +423 -0
  114. package/dist/yacas-lKwNB4DM.js +74 -0
  115. package/dist/z80-Bq0fiCqy.js +62 -0
  116. package/package.json +146 -146
  117. package/dist/index.es.js +0 -10618
  118. package/dist/index.umd.js +0 -701
@@ -0,0 +1,61 @@
1
+ import "./index.css";
2
+ function R(i) {
3
+ var n = [];
4
+ return i.split(" ").forEach(function(E) {
5
+ n.push({ name: E });
6
+ }), n;
7
+ }
8
+ var r = R(
9
+ "INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"
10
+ ), O = R("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");
11
+ function t(i, n) {
12
+ var E;
13
+ for (E = i.length - 1; E >= 0; E--)
14
+ if (i[E].name === n.toUpperCase())
15
+ return i[E];
16
+ }
17
+ const T = {
18
+ name: "forth",
19
+ startState: function() {
20
+ return {
21
+ state: "",
22
+ base: 10,
23
+ coreWordList: r,
24
+ immediateWordList: O,
25
+ wordList: []
26
+ };
27
+ },
28
+ token: function(i, n) {
29
+ var E;
30
+ if (i.eatSpace())
31
+ return null;
32
+ if (n.state === "") {
33
+ if (i.match(/^(\]|:NONAME)(\s|$)/i))
34
+ return n.state = " compilation", "builtin";
35
+ if (E = i.match(/^(\:)\s+(\S+)(\s|$)+/), E)
36
+ return n.wordList.push({ name: E[2].toUpperCase() }), n.state = " compilation", "def";
37
+ if (E = i.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i), E)
38
+ return n.wordList.push({ name: E[2].toUpperCase() }), "def";
39
+ if (E = i.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/), E)
40
+ return "builtin";
41
+ } else {
42
+ if (i.match(/^(\;|\[)(\s)/))
43
+ return n.state = "", i.backUp(1), "builtin";
44
+ if (i.match(/^(\;|\[)($)/))
45
+ return n.state = "", "builtin";
46
+ if (i.match(/^(POSTPONE)\s+\S+(\s|$)+/))
47
+ return "builtin";
48
+ }
49
+ if (E = i.match(/^(\S+)(\s+|$)/), E)
50
+ return t(n.wordList, E[1]) !== void 0 ? "variable" : E[1] === "\\" ? (i.skipToEnd(), "comment") : t(n.coreWordList, E[1]) !== void 0 ? "builtin" : t(n.immediateWordList, E[1]) !== void 0 ? "keyword" : E[1] === "(" ? (i.eatWhile(function(e) {
51
+ return e !== ")";
52
+ }), i.eat(")"), "comment") : E[1] === ".(" ? (i.eatWhile(function(e) {
53
+ return e !== ")";
54
+ }), i.eat(")"), "string") : E[1] === 'S"' || E[1] === '."' || E[1] === 'C"' ? (i.eatWhile(function(e) {
55
+ return e !== '"';
56
+ }), i.eat('"'), "string") : E[1] - 68719476735 ? "number" : "atom";
57
+ }
58
+ };
59
+ export {
60
+ T as forth
61
+ };
@@ -0,0 +1,443 @@
1
+ import "./index.css";
2
+ function r(t) {
3
+ for (var n = {}, e = 0; e < t.length; ++e)
4
+ n[t[e]] = !0;
5
+ return n;
6
+ }
7
+ var l = r([
8
+ "abstract",
9
+ "accept",
10
+ "allocatable",
11
+ "allocate",
12
+ "array",
13
+ "assign",
14
+ "asynchronous",
15
+ "backspace",
16
+ "bind",
17
+ "block",
18
+ "byte",
19
+ "call",
20
+ "case",
21
+ "class",
22
+ "close",
23
+ "common",
24
+ "contains",
25
+ "continue",
26
+ "cycle",
27
+ "data",
28
+ "deallocate",
29
+ "decode",
30
+ "deferred",
31
+ "dimension",
32
+ "do",
33
+ "elemental",
34
+ "else",
35
+ "encode",
36
+ "end",
37
+ "endif",
38
+ "entry",
39
+ "enumerator",
40
+ "equivalence",
41
+ "exit",
42
+ "external",
43
+ "extrinsic",
44
+ "final",
45
+ "forall",
46
+ "format",
47
+ "function",
48
+ "generic",
49
+ "go",
50
+ "goto",
51
+ "if",
52
+ "implicit",
53
+ "import",
54
+ "include",
55
+ "inquire",
56
+ "intent",
57
+ "interface",
58
+ "intrinsic",
59
+ "module",
60
+ "namelist",
61
+ "non_intrinsic",
62
+ "non_overridable",
63
+ "none",
64
+ "nopass",
65
+ "nullify",
66
+ "open",
67
+ "optional",
68
+ "options",
69
+ "parameter",
70
+ "pass",
71
+ "pause",
72
+ "pointer",
73
+ "print",
74
+ "private",
75
+ "program",
76
+ "protected",
77
+ "public",
78
+ "pure",
79
+ "read",
80
+ "recursive",
81
+ "result",
82
+ "return",
83
+ "rewind",
84
+ "save",
85
+ "select",
86
+ "sequence",
87
+ "stop",
88
+ "subroutine",
89
+ "target",
90
+ "then",
91
+ "to",
92
+ "type",
93
+ "use",
94
+ "value",
95
+ "volatile",
96
+ "where",
97
+ "while",
98
+ "write"
99
+ ]), s = r([
100
+ "abort",
101
+ "abs",
102
+ "access",
103
+ "achar",
104
+ "acos",
105
+ "adjustl",
106
+ "adjustr",
107
+ "aimag",
108
+ "aint",
109
+ "alarm",
110
+ "all",
111
+ "allocated",
112
+ "alog",
113
+ "amax",
114
+ "amin",
115
+ "amod",
116
+ "and",
117
+ "anint",
118
+ "any",
119
+ "asin",
120
+ "associated",
121
+ "atan",
122
+ "besj",
123
+ "besjn",
124
+ "besy",
125
+ "besyn",
126
+ "bit_size",
127
+ "btest",
128
+ "cabs",
129
+ "ccos",
130
+ "ceiling",
131
+ "cexp",
132
+ "char",
133
+ "chdir",
134
+ "chmod",
135
+ "clog",
136
+ "cmplx",
137
+ "command_argument_count",
138
+ "complex",
139
+ "conjg",
140
+ "cos",
141
+ "cosh",
142
+ "count",
143
+ "cpu_time",
144
+ "cshift",
145
+ "csin",
146
+ "csqrt",
147
+ "ctime",
148
+ "c_funloc",
149
+ "c_loc",
150
+ "c_associated",
151
+ "c_null_ptr",
152
+ "c_null_funptr",
153
+ "c_f_pointer",
154
+ "c_null_char",
155
+ "c_alert",
156
+ "c_backspace",
157
+ "c_form_feed",
158
+ "c_new_line",
159
+ "c_carriage_return",
160
+ "c_horizontal_tab",
161
+ "c_vertical_tab",
162
+ "dabs",
163
+ "dacos",
164
+ "dasin",
165
+ "datan",
166
+ "date_and_time",
167
+ "dbesj",
168
+ "dbesj",
169
+ "dbesjn",
170
+ "dbesy",
171
+ "dbesy",
172
+ "dbesyn",
173
+ "dble",
174
+ "dcos",
175
+ "dcosh",
176
+ "ddim",
177
+ "derf",
178
+ "derfc",
179
+ "dexp",
180
+ "digits",
181
+ "dim",
182
+ "dint",
183
+ "dlog",
184
+ "dlog",
185
+ "dmax",
186
+ "dmin",
187
+ "dmod",
188
+ "dnint",
189
+ "dot_product",
190
+ "dprod",
191
+ "dsign",
192
+ "dsinh",
193
+ "dsin",
194
+ "dsqrt",
195
+ "dtanh",
196
+ "dtan",
197
+ "dtime",
198
+ "eoshift",
199
+ "epsilon",
200
+ "erf",
201
+ "erfc",
202
+ "etime",
203
+ "exit",
204
+ "exp",
205
+ "exponent",
206
+ "extends_type_of",
207
+ "fdate",
208
+ "fget",
209
+ "fgetc",
210
+ "float",
211
+ "floor",
212
+ "flush",
213
+ "fnum",
214
+ "fputc",
215
+ "fput",
216
+ "fraction",
217
+ "fseek",
218
+ "fstat",
219
+ "ftell",
220
+ "gerror",
221
+ "getarg",
222
+ "get_command",
223
+ "get_command_argument",
224
+ "get_environment_variable",
225
+ "getcwd",
226
+ "getenv",
227
+ "getgid",
228
+ "getlog",
229
+ "getpid",
230
+ "getuid",
231
+ "gmtime",
232
+ "hostnm",
233
+ "huge",
234
+ "iabs",
235
+ "iachar",
236
+ "iand",
237
+ "iargc",
238
+ "ibclr",
239
+ "ibits",
240
+ "ibset",
241
+ "ichar",
242
+ "idate",
243
+ "idim",
244
+ "idint",
245
+ "idnint",
246
+ "ieor",
247
+ "ierrno",
248
+ "ifix",
249
+ "imag",
250
+ "imagpart",
251
+ "index",
252
+ "int",
253
+ "ior",
254
+ "irand",
255
+ "isatty",
256
+ "ishft",
257
+ "ishftc",
258
+ "isign",
259
+ "iso_c_binding",
260
+ "is_iostat_end",
261
+ "is_iostat_eor",
262
+ "itime",
263
+ "kill",
264
+ "kind",
265
+ "lbound",
266
+ "len",
267
+ "len_trim",
268
+ "lge",
269
+ "lgt",
270
+ "link",
271
+ "lle",
272
+ "llt",
273
+ "lnblnk",
274
+ "loc",
275
+ "log",
276
+ "logical",
277
+ "long",
278
+ "lshift",
279
+ "lstat",
280
+ "ltime",
281
+ "matmul",
282
+ "max",
283
+ "maxexponent",
284
+ "maxloc",
285
+ "maxval",
286
+ "mclock",
287
+ "merge",
288
+ "move_alloc",
289
+ "min",
290
+ "minexponent",
291
+ "minloc",
292
+ "minval",
293
+ "mod",
294
+ "modulo",
295
+ "mvbits",
296
+ "nearest",
297
+ "new_line",
298
+ "nint",
299
+ "not",
300
+ "or",
301
+ "pack",
302
+ "perror",
303
+ "precision",
304
+ "present",
305
+ "product",
306
+ "radix",
307
+ "rand",
308
+ "random_number",
309
+ "random_seed",
310
+ "range",
311
+ "real",
312
+ "realpart",
313
+ "rename",
314
+ "repeat",
315
+ "reshape",
316
+ "rrspacing",
317
+ "rshift",
318
+ "same_type_as",
319
+ "scale",
320
+ "scan",
321
+ "second",
322
+ "selected_int_kind",
323
+ "selected_real_kind",
324
+ "set_exponent",
325
+ "shape",
326
+ "short",
327
+ "sign",
328
+ "signal",
329
+ "sinh",
330
+ "sin",
331
+ "sleep",
332
+ "sngl",
333
+ "spacing",
334
+ "spread",
335
+ "sqrt",
336
+ "srand",
337
+ "stat",
338
+ "sum",
339
+ "symlnk",
340
+ "system",
341
+ "system_clock",
342
+ "tan",
343
+ "tanh",
344
+ "time",
345
+ "tiny",
346
+ "transfer",
347
+ "transpose",
348
+ "trim",
349
+ "ttynam",
350
+ "ubound",
351
+ "umask",
352
+ "unlink",
353
+ "unpack",
354
+ "verify",
355
+ "xor",
356
+ "zabs",
357
+ "zcos",
358
+ "zexp",
359
+ "zlog",
360
+ "zsin",
361
+ "zsqrt"
362
+ ]), d = r([
363
+ "c_bool",
364
+ "c_char",
365
+ "c_double",
366
+ "c_double_complex",
367
+ "c_float",
368
+ "c_float_complex",
369
+ "c_funptr",
370
+ "c_int",
371
+ "c_int16_t",
372
+ "c_int32_t",
373
+ "c_int64_t",
374
+ "c_int8_t",
375
+ "c_int_fast16_t",
376
+ "c_int_fast32_t",
377
+ "c_int_fast64_t",
378
+ "c_int_fast8_t",
379
+ "c_int_least16_t",
380
+ "c_int_least32_t",
381
+ "c_int_least64_t",
382
+ "c_int_least8_t",
383
+ "c_intmax_t",
384
+ "c_intptr_t",
385
+ "c_long",
386
+ "c_long_double",
387
+ "c_long_double_complex",
388
+ "c_long_long",
389
+ "c_ptr",
390
+ "c_short",
391
+ "c_signed_char",
392
+ "c_size_t",
393
+ "character",
394
+ "complex",
395
+ "double",
396
+ "integer",
397
+ "logical",
398
+ "real"
399
+ ]), c = /[+\-*&=<>\/\:]/, _ = /^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;
400
+ function u(t, n) {
401
+ if (t.match(_))
402
+ return "operator";
403
+ var e = t.next();
404
+ if (e == "!")
405
+ return t.skipToEnd(), "comment";
406
+ if (e == '"' || e == "'")
407
+ return n.tokenize = m(e), n.tokenize(t, n);
408
+ if (/[\[\]\(\),]/.test(e))
409
+ return null;
410
+ if (/\d/.test(e))
411
+ return t.eatWhile(/[\w\.]/), "number";
412
+ if (c.test(e))
413
+ return t.eatWhile(c), "operator";
414
+ t.eatWhile(/[\w\$_]/);
415
+ var i = t.current().toLowerCase();
416
+ return l.hasOwnProperty(i) ? "keyword" : s.hasOwnProperty(i) || d.hasOwnProperty(i) ? "builtin" : "variable";
417
+ }
418
+ function m(t) {
419
+ return function(n, e) {
420
+ for (var i = !1, a, o = !1; (a = n.next()) != null; ) {
421
+ if (a == t && !i) {
422
+ o = !0;
423
+ break;
424
+ }
425
+ i = !i && a == "\\";
426
+ }
427
+ return (o || !i) && (e.tokenize = null), "string";
428
+ };
429
+ }
430
+ const f = {
431
+ name: "fortran",
432
+ startState: function() {
433
+ return { tokenize: null };
434
+ },
435
+ token: function(t, n) {
436
+ if (t.eatSpace()) return null;
437
+ var e = (n.tokenize || u)(t, n);
438
+ return e == "comment" || e == "meta", e;
439
+ }
440
+ };
441
+ export {
442
+ f as fortran
443
+ };
@@ -0,0 +1,184 @@
1
+ import "./index.css";
2
+ function v(r) {
3
+ var u = [], b = "", o = {
4
+ ".abort": "builtin",
5
+ ".align": "builtin",
6
+ ".altmacro": "builtin",
7
+ ".ascii": "builtin",
8
+ ".asciz": "builtin",
9
+ ".balign": "builtin",
10
+ ".balignw": "builtin",
11
+ ".balignl": "builtin",
12
+ ".bundle_align_mode": "builtin",
13
+ ".bundle_lock": "builtin",
14
+ ".bundle_unlock": "builtin",
15
+ ".byte": "builtin",
16
+ ".cfi_startproc": "builtin",
17
+ ".comm": "builtin",
18
+ ".data": "builtin",
19
+ ".def": "builtin",
20
+ ".desc": "builtin",
21
+ ".dim": "builtin",
22
+ ".double": "builtin",
23
+ ".eject": "builtin",
24
+ ".else": "builtin",
25
+ ".elseif": "builtin",
26
+ ".end": "builtin",
27
+ ".endef": "builtin",
28
+ ".endfunc": "builtin",
29
+ ".endif": "builtin",
30
+ ".equ": "builtin",
31
+ ".equiv": "builtin",
32
+ ".eqv": "builtin",
33
+ ".err": "builtin",
34
+ ".error": "builtin",
35
+ ".exitm": "builtin",
36
+ ".extern": "builtin",
37
+ ".fail": "builtin",
38
+ ".file": "builtin",
39
+ ".fill": "builtin",
40
+ ".float": "builtin",
41
+ ".func": "builtin",
42
+ ".global": "builtin",
43
+ ".gnu_attribute": "builtin",
44
+ ".hidden": "builtin",
45
+ ".hword": "builtin",
46
+ ".ident": "builtin",
47
+ ".if": "builtin",
48
+ ".incbin": "builtin",
49
+ ".include": "builtin",
50
+ ".int": "builtin",
51
+ ".internal": "builtin",
52
+ ".irp": "builtin",
53
+ ".irpc": "builtin",
54
+ ".lcomm": "builtin",
55
+ ".lflags": "builtin",
56
+ ".line": "builtin",
57
+ ".linkonce": "builtin",
58
+ ".list": "builtin",
59
+ ".ln": "builtin",
60
+ ".loc": "builtin",
61
+ ".loc_mark_labels": "builtin",
62
+ ".local": "builtin",
63
+ ".long": "builtin",
64
+ ".macro": "builtin",
65
+ ".mri": "builtin",
66
+ ".noaltmacro": "builtin",
67
+ ".nolist": "builtin",
68
+ ".octa": "builtin",
69
+ ".offset": "builtin",
70
+ ".org": "builtin",
71
+ ".p2align": "builtin",
72
+ ".popsection": "builtin",
73
+ ".previous": "builtin",
74
+ ".print": "builtin",
75
+ ".protected": "builtin",
76
+ ".psize": "builtin",
77
+ ".purgem": "builtin",
78
+ ".pushsection": "builtin",
79
+ ".quad": "builtin",
80
+ ".reloc": "builtin",
81
+ ".rept": "builtin",
82
+ ".sbttl": "builtin",
83
+ ".scl": "builtin",
84
+ ".section": "builtin",
85
+ ".set": "builtin",
86
+ ".short": "builtin",
87
+ ".single": "builtin",
88
+ ".size": "builtin",
89
+ ".skip": "builtin",
90
+ ".sleb128": "builtin",
91
+ ".space": "builtin",
92
+ ".stab": "builtin",
93
+ ".string": "builtin",
94
+ ".struct": "builtin",
95
+ ".subsection": "builtin",
96
+ ".symver": "builtin",
97
+ ".tag": "builtin",
98
+ ".text": "builtin",
99
+ ".title": "builtin",
100
+ ".type": "builtin",
101
+ ".uleb128": "builtin",
102
+ ".val": "builtin",
103
+ ".version": "builtin",
104
+ ".vtable_entry": "builtin",
105
+ ".vtable_inherit": "builtin",
106
+ ".warning": "builtin",
107
+ ".weak": "builtin",
108
+ ".weakref": "builtin",
109
+ ".word": "builtin"
110
+ }, i = {};
111
+ function p() {
112
+ b = "#", i.al = "variable", i.ah = "variable", i.ax = "variable", i.eax = "variableName.special", i.rax = "variableName.special", i.bl = "variable", i.bh = "variable", i.bx = "variable", i.ebx = "variableName.special", i.rbx = "variableName.special", i.cl = "variable", i.ch = "variable", i.cx = "variable", i.ecx = "variableName.special", i.rcx = "variableName.special", i.dl = "variable", i.dh = "variable", i.dx = "variable", i.edx = "variableName.special", i.rdx = "variableName.special", i.si = "variable", i.esi = "variableName.special", i.rsi = "variableName.special", i.di = "variable", i.edi = "variableName.special", i.rdi = "variableName.special", i.sp = "variable", i.esp = "variableName.special", i.rsp = "variableName.special", i.bp = "variable", i.ebp = "variableName.special", i.rbp = "variableName.special", i.ip = "variable", i.eip = "variableName.special", i.rip = "variableName.special", i.cs = "keyword", i.ds = "keyword", i.ss = "keyword", i.es = "keyword", i.fs = "keyword", i.gs = "keyword";
113
+ }
114
+ function f() {
115
+ b = "@", o.syntax = "builtin", i.r0 = "variable", i.r1 = "variable", i.r2 = "variable", i.r3 = "variable", i.r4 = "variable", i.r5 = "variable", i.r6 = "variable", i.r7 = "variable", i.r8 = "variable", i.r9 = "variable", i.r10 = "variable", i.r11 = "variable", i.r12 = "variable", i.sp = "variableName.special", i.lr = "variableName.special", i.pc = "variableName.special", i.r13 = i.sp, i.r14 = i.lr, i.r15 = i.pc, u.push(function(l, n) {
116
+ if (l === "#")
117
+ return n.eatWhile(/\w/), "number";
118
+ });
119
+ }
120
+ r === "x86" ? p() : (r === "arm" || r === "armv6") && f();
121
+ function d(l, n) {
122
+ for (var e = !1, a; (a = l.next()) != null; ) {
123
+ if (a === n && !e)
124
+ return !1;
125
+ e = !e && a === "\\";
126
+ }
127
+ return e;
128
+ }
129
+ function s(l, n) {
130
+ for (var e = !1, a; (a = l.next()) != null; ) {
131
+ if (a === "/" && e) {
132
+ n.tokenize = null;
133
+ break;
134
+ }
135
+ e = a === "*";
136
+ }
137
+ return "comment";
138
+ }
139
+ return {
140
+ name: "gas",
141
+ startState: function() {
142
+ return {
143
+ tokenize: null
144
+ };
145
+ },
146
+ token: function(l, n) {
147
+ if (n.tokenize)
148
+ return n.tokenize(l, n);
149
+ if (l.eatSpace())
150
+ return null;
151
+ var e, a, t = l.next();
152
+ if (t === "/" && l.eat("*"))
153
+ return n.tokenize = s, s(l, n);
154
+ if (t === b)
155
+ return l.skipToEnd(), "comment";
156
+ if (t === '"')
157
+ return d(l, '"'), "string";
158
+ if (t === ".")
159
+ return l.eatWhile(/\w/), a = l.current().toLowerCase(), e = o[a], e || null;
160
+ if (t === "=")
161
+ return l.eatWhile(/\w/), "tag";
162
+ if (t === "{" || t === "}")
163
+ return "bracket";
164
+ if (/\d/.test(t))
165
+ return t === "0" && l.eat("x") ? (l.eatWhile(/[0-9a-fA-F]/), "number") : (l.eatWhile(/\d/), "number");
166
+ if (/\w/.test(t))
167
+ return l.eatWhile(/\w/), l.eat(":") ? "tag" : (a = l.current().toLowerCase(), e = i[a], e || null);
168
+ for (var c = 0; c < u.length; c++)
169
+ if (e = u[c](t, l, n), e)
170
+ return e;
171
+ },
172
+ languageData: {
173
+ commentTokens: {
174
+ line: b,
175
+ block: { open: "/*", close: "*/" }
176
+ }
177
+ }
178
+ };
179
+ }
180
+ const g = v("x86"), k = v("arm");
181
+ export {
182
+ g as gas,
183
+ k as gasArm
184
+ };