@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,35 +0,0 @@
1
- var c = {};
2
- function h(t) {
3
- if (t.eatSpace()) return null;
4
- var a = t.sol(), r = t.next();
5
- if (r === "\\")
6
- return t.match("fB") || t.match("fR") || t.match("fI") || t.match("u") || t.match("d") || t.match("%") || t.match("&") ? "string" : t.match("m[") ? (t.skipTo("]"), t.next(), "string") : t.match("s+") || t.match("s-") ? (t.eatWhile(/[\d-]/), "string") : ((t.match("(") || t.match("*(")) && t.eatWhile(/[\w-]/), "string");
7
- if (a && (r === "." || r === "'") && t.eat("\\") && t.eat('"'))
8
- return t.skipToEnd(), "comment";
9
- if (a && r === ".") {
10
- if (t.match("B ") || t.match("I ") || t.match("R "))
11
- return "attribute";
12
- if (t.match("TH ") || t.match("SH ") || t.match("SS ") || t.match("HP "))
13
- return t.skipToEnd(), "quote";
14
- if (t.match(/[A-Z]/) && t.match(/[A-Z]/) || t.match(/[a-z]/) && t.match(/[a-z]/))
15
- return "attribute";
16
- }
17
- t.eatWhile(/[\w-]/);
18
- var e = t.current();
19
- return c.hasOwnProperty(e) ? c[e] : null;
20
- }
21
- function m(t, a) {
22
- return (a.tokens[0] || h)(t, a);
23
- }
24
- const i = {
25
- name: "troff",
26
- startState: function() {
27
- return { tokens: [] };
28
- },
29
- token: function(t, a) {
30
- return m(t, a);
31
- }
32
- };
33
- export {
34
- i as troff
35
- };
@@ -1,123 +0,0 @@
1
- function o(e) {
2
- for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
3
- return t;
4
- }
5
- const i = {
6
- keywords: o("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),
7
- builtin: o("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),
8
- types: o("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),
9
- timerOps: o("read running start stop timeout"),
10
- portOps: o("call catch check clear getcall getreply halt raise receive reply send trigger"),
11
- configOps: o("create connect disconnect done kill killed map unmap"),
12
- verdictOps: o("getverdict setverdict"),
13
- sutOps: o("action"),
14
- functionOps: o("apply derefers refers"),
15
- verdictConsts: o("error fail inconc none pass"),
16
- booleanConsts: o("true false"),
17
- otherConsts: o("null NULL omit"),
18
- visibilityModifiers: o("private public friend"),
19
- templateMatch: o("complement ifpresent subset superset permutation")
20
- };
21
- var b = [];
22
- function p(e) {
23
- if (e) for (var t in e) e.hasOwnProperty(t) && b.push(t);
24
- }
25
- p(i.keywords);
26
- p(i.builtin);
27
- p(i.timerOps);
28
- p(i.portOps);
29
- var y = i.keywords || {}, v = i.builtin || {}, x = i.timerOps || {}, g = i.portOps || {}, k = i.configOps || {}, O = i.verdictOps || {}, E = i.sutOps || {}, w = i.functionOps || {}, I = i.verdictConsts || {}, z = i.booleanConsts || {}, C = i.otherConsts || {}, L = i.types || {}, M = i.visibilityModifiers || {}, W = i.templateMatch || {}, S = i.indentStatements !== !1, m = /[+\-*&@=<>!\/]/, a;
30
- function T(e, t) {
31
- var n = e.next();
32
- if (n == '"' || n == "'")
33
- return t.tokenize = N(n), t.tokenize(e, t);
34
- if (/[\[\]{}\(\),;\\:\?\.]/.test(n))
35
- return a = n, "punctuation";
36
- if (n == "#")
37
- return e.skipToEnd(), "atom";
38
- if (n == "%")
39
- return e.eatWhile(/\b/), "atom";
40
- if (/\d/.test(n))
41
- return e.eatWhile(/[\w\.]/), "number";
42
- if (n == "/") {
43
- if (e.eat("*"))
44
- return t.tokenize = d, d(e, t);
45
- if (e.eat("/"))
46
- return e.skipToEnd(), "comment";
47
- }
48
- if (m.test(n))
49
- return n == "@" && (e.match("try") || e.match("catch") || e.match("lazy")) ? "keyword" : (e.eatWhile(m), "operator");
50
- e.eatWhile(/[\w\$_\xa1-\uffff]/);
51
- var r = e.current();
52
- return y.propertyIsEnumerable(r) ? "keyword" : v.propertyIsEnumerable(r) ? "builtin" : x.propertyIsEnumerable(r) || k.propertyIsEnumerable(r) || O.propertyIsEnumerable(r) || g.propertyIsEnumerable(r) || E.propertyIsEnumerable(r) || w.propertyIsEnumerable(r) ? "def" : I.propertyIsEnumerable(r) || z.propertyIsEnumerable(r) || C.propertyIsEnumerable(r) ? "string" : L.propertyIsEnumerable(r) ? "typeName.standard" : M.propertyIsEnumerable(r) ? "modifier" : W.propertyIsEnumerable(r) ? "atom" : "variable";
53
- }
54
- function N(e) {
55
- return function(t, n) {
56
- for (var r = !1, l, f = !1; (l = t.next()) != null; ) {
57
- if (l == e && !r) {
58
- var s = t.peek();
59
- s && (s = s.toLowerCase(), (s == "b" || s == "h" || s == "o") && t.next()), f = !0;
60
- break;
61
- }
62
- r = !r && l == "\\";
63
- }
64
- return f && (n.tokenize = null), "string";
65
- };
66
- }
67
- function d(e, t) {
68
- for (var n = !1, r; r = e.next(); ) {
69
- if (r == "/" && n) {
70
- t.tokenize = null;
71
- break;
72
- }
73
- n = r == "*";
74
- }
75
- return "comment";
76
- }
77
- function h(e, t, n, r, l) {
78
- this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = l;
79
- }
80
- function u(e, t, n) {
81
- var r = e.indented;
82
- return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new h(r, t, n, null, e.context);
83
- }
84
- function c(e) {
85
- var t = e.context.type;
86
- return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
87
- }
88
- const P = {
89
- name: "ttcn",
90
- startState: function() {
91
- return {
92
- tokenize: null,
93
- context: new h(0, 0, "top", !1),
94
- indented: 0,
95
- startOfLine: !0
96
- };
97
- },
98
- token: function(e, t) {
99
- var n = t.context;
100
- if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
101
- a = null;
102
- var r = (t.tokenize || T)(e, t);
103
- if (r == "comment") return r;
104
- if (n.align == null && (n.align = !0), (a == ";" || a == ":" || a == ",") && n.type == "statement")
105
- c(t);
106
- else if (a == "{") u(t, e.column(), "}");
107
- else if (a == "[") u(t, e.column(), "]");
108
- else if (a == "(") u(t, e.column(), ")");
109
- else if (a == "}") {
110
- for (; n.type == "statement"; ) n = c(t);
111
- for (n.type == "}" && (n = c(t)); n.type == "statement"; ) n = c(t);
112
- } else a == n.type ? c(t) : S && ((n.type == "}" || n.type == "top") && a != ";" || n.type == "statement" && a == "newstatement") && u(t, e.column(), "statement");
113
- return t.startOfLine = !1, r;
114
- },
115
- languageData: {
116
- indentOnInput: /^\s*[{}]$/,
117
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
118
- autocomplete: b
119
- }
120
- };
121
- export {
122
- P as ttcn
123
- };
@@ -1,88 +0,0 @@
1
- function i(t) {
2
- for (var e = {}, T = t.split(" "), E = 0; E < T.length; ++E)
3
- e[T[E]] = !0;
4
- return e;
5
- }
6
- const o = {
7
- keywords: i("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),
8
- fileNCtrlMaskOptions: i("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),
9
- externalCommands: i("BeginControlPart EndControlPart BeginTestCase EndTestCase")
10
- };
11
- var U = o.keywords, a = o.fileNCtrlMaskOptions, R = o.externalCommands, l = o.indentStatements !== !1, A = /[\|]/, n;
12
- function s(t, e) {
13
- var T = t.next();
14
- if (T == '"' || T == "'")
15
- return e.tokenize = S(T), e.tokenize(t, e);
16
- if (/[:=]/.test(T))
17
- return n = T, "punctuation";
18
- if (T == "#")
19
- return t.skipToEnd(), "comment";
20
- if (/\d/.test(T))
21
- return t.eatWhile(/[\w\.]/), "number";
22
- if (A.test(T))
23
- return t.eatWhile(A), "operator";
24
- if (T == "[")
25
- return t.eatWhile(/[\w_\]]/), "number";
26
- t.eatWhile(/[\w\$_]/);
27
- var E = t.current();
28
- return U.propertyIsEnumerable(E) ? "keyword" : a.propertyIsEnumerable(E) ? "atom" : R.propertyIsEnumerable(E) ? "deleted" : "variable";
29
- }
30
- function S(t) {
31
- return function(e, T) {
32
- for (var E = !1, C, _ = !1; (C = e.next()) != null; ) {
33
- if (C == t && !E) {
34
- var N = e.peek();
35
- N && (N = N.toLowerCase(), (N == "b" || N == "h" || N == "o") && e.next()), _ = !0;
36
- break;
37
- }
38
- E = !E && C == "\\";
39
- }
40
- return _ && (T.tokenize = null), "string";
41
- };
42
- }
43
- function O(t, e, T, E, C) {
44
- this.indented = t, this.column = e, this.type = T, this.align = E, this.prev = C;
45
- }
46
- function I(t, e, T) {
47
- var E = t.indented;
48
- return t.context && t.context.type == "statement" && (E = t.context.indented), t.context = new O(E, e, T, null, t.context);
49
- }
50
- function r(t) {
51
- var e = t.context.type;
52
- return (e == ")" || e == "]" || e == "}") && (t.indented = t.context.indented), t.context = t.context.prev;
53
- }
54
- const P = {
55
- name: "ttcn",
56
- startState: function() {
57
- return {
58
- tokenize: null,
59
- context: new O(0, 0, "top", !1),
60
- indented: 0,
61
- startOfLine: !0
62
- };
63
- },
64
- token: function(t, e) {
65
- var T = e.context;
66
- if (t.sol() && (T.align == null && (T.align = !1), e.indented = t.indentation(), e.startOfLine = !0), t.eatSpace()) return null;
67
- n = null;
68
- var E = (e.tokenize || s)(t, e);
69
- if (E == "comment") return E;
70
- if (T.align == null && (T.align = !0), (n == ";" || n == ":" || n == ",") && T.type == "statement")
71
- r(e);
72
- else if (n == "{") I(e, t.column(), "}");
73
- else if (n == "[") I(e, t.column(), "]");
74
- else if (n == "(") I(e, t.column(), ")");
75
- else if (n == "}") {
76
- for (; T.type == "statement"; ) T = r(e);
77
- for (T.type == "}" && (T = r(e)); T.type == "statement"; ) T = r(e);
78
- } else n == T.type ? r(e) : l && ((T.type == "}" || T.type == "top") && n != ";" || T.type == "statement" && n == "newstatement") && I(e, t.column(), "statement");
79
- return e.startOfLine = !1, E;
80
- },
81
- languageData: {
82
- indentOnInput: /^\s*[{}]$/,
83
- commentTokens: { line: "#" }
84
- }
85
- };
86
- export {
87
- P as ttcnCfg
88
- };
@@ -1,80 +0,0 @@
1
- var i;
2
- function x(e) {
3
- return new RegExp("^(?:" + e.join("|") + ")$", "i");
4
- }
5
- x([]);
6
- var p = x(["@prefix", "@base", "a"]), u = /[*+\-<>=&|]/;
7
- function f(e, t) {
8
- var n = e.next();
9
- if (i = null, n == "<" && !e.match(/^[\s\u00a0=]/, !1))
10
- return e.match(/^[^\s\u00a0>]*>?/), "atom";
11
- if (n == '"' || n == "'")
12
- return t.tokenize = s(n), t.tokenize(e, t);
13
- if (/[{}\(\),\.;\[\]]/.test(n))
14
- return i = n, null;
15
- if (n == "#")
16
- return e.skipToEnd(), "comment";
17
- if (u.test(n))
18
- return e.eatWhile(u), null;
19
- if (n == ":")
20
- return "operator";
21
- if (e.eatWhile(/[_\w\d]/), e.peek() == ":")
22
- return "variableName.special";
23
- var o = e.current();
24
- return p.test(o) ? "meta" : n >= "A" && n <= "Z" ? "comment" : "keyword";
25
- var o;
26
- }
27
- function s(e) {
28
- return function(t, n) {
29
- for (var o = !1, r; (r = t.next()) != null; ) {
30
- if (r == e && !o) {
31
- n.tokenize = f;
32
- break;
33
- }
34
- o = !o && r == "\\";
35
- }
36
- return "string";
37
- };
38
- }
39
- function c(e, t, n) {
40
- e.context = { prev: e.context, indent: e.indent, col: n, type: t };
41
- }
42
- function a(e) {
43
- e.indent = e.context.indent, e.context = e.context.prev;
44
- }
45
- const m = {
46
- name: "turtle",
47
- startState: function() {
48
- return {
49
- tokenize: f,
50
- context: null,
51
- indent: 0,
52
- col: 0
53
- };
54
- },
55
- token: function(e, t) {
56
- if (e.sol() && (t.context && t.context.align == null && (t.context.align = !1), t.indent = e.indentation()), e.eatSpace()) return null;
57
- var n = t.tokenize(e, t);
58
- if (n != "comment" && t.context && t.context.align == null && t.context.type != "pattern" && (t.context.align = !0), i == "(") c(t, ")", e.column());
59
- else if (i == "[") c(t, "]", e.column());
60
- else if (i == "{") c(t, "}", e.column());
61
- else if (/[\]\}\)]/.test(i)) {
62
- for (; t.context && t.context.type == "pattern"; ) a(t);
63
- t.context && i == t.context.type && a(t);
64
- } else i == "." && t.context && t.context.type == "pattern" ? a(t) : /atom|string|variable/.test(n) && t.context && (/[\}\]]/.test(t.context.type) ? c(t, "pattern", e.column()) : t.context.type == "pattern" && !t.context.align && (t.context.align = !0, t.context.col = e.column()));
65
- return n;
66
- },
67
- indent: function(e, t, n) {
68
- var o = t && t.charAt(0), r = e.context;
69
- if (/[\]\}]/.test(o))
70
- for (; r && r.type == "pattern"; ) r = r.prev;
71
- var l = r && o == r.type;
72
- return r ? r.type == "pattern" ? r.col : r.align ? r.col + (l ? 0 : 1) : r.indent + (l ? 0 : n.unit) : 0;
73
- },
74
- languageData: {
75
- commentTokens: { line: "#" }
76
- }
77
- };
78
- export {
79
- m as turtle
80
- };
@@ -1,74 +0,0 @@
1
- var c = "error";
2
- function i(t) {
3
- return new RegExp("^((" + t.join(")|(") + "))\\b", "i");
4
- }
5
- var y = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"), k = new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"), w = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"), x = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"), I = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"), z = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"), l = ["class", "module", "sub", "enum", "select", "while", "if", "function", "get", "set", "property", "try", "structure", "synclock", "using", "with"], d = ["else", "elseif", "case", "catch", "finally"], m = ["next", "loop"], h = ["and", "andalso", "or", "orelse", "xor", "in", "not", "is", "isnot", "like"], L = i(h), f = ["#const", "#else", "#elseif", "#end", "#if", "#region", "addhandler", "addressof", "alias", "as", "byref", "byval", "cbool", "cbyte", "cchar", "cdate", "cdbl", "cdec", "cint", "clng", "cobj", "compare", "const", "continue", "csbyte", "cshort", "csng", "cstr", "cuint", "culng", "cushort", "declare", "default", "delegate", "dim", "directcast", "each", "erase", "error", "event", "exit", "explicit", "false", "for", "friend", "gettype", "goto", "handles", "implements", "imports", "infer", "inherits", "interface", "isfalse", "istrue", "lib", "me", "mod", "mustinherit", "mustoverride", "my", "mybase", "myclass", "namespace", "narrowing", "new", "nothing", "notinheritable", "notoverridable", "of", "off", "on", "operator", "option", "optional", "out", "overloads", "overridable", "overrides", "paramarray", "partial", "private", "protected", "public", "raiseevent", "readonly", "redim", "removehandler", "resume", "return", "shadows", "shared", "static", "step", "stop", "strict", "then", "throw", "to", "true", "trycast", "typeof", "until", "until", "when", "widening", "withevents", "writeonly"], p = ["object", "boolean", "char", "string", "byte", "sbyte", "short", "ushort", "int16", "uint16", "integer", "uinteger", "int32", "uint32", "long", "ulong", "int64", "uint64", "decimal", "single", "double", "float", "date", "datetime", "intptr", "uintptr"], E = i(f), R = i(p), C = '"', F = i(l), g = i(d), b = i(m), v = i(["end"]), O = i(["do"]);
6
- function u(t, e) {
7
- e.currentIndent++;
8
- }
9
- function o(t, e) {
10
- e.currentIndent--;
11
- }
12
- function s(t, e) {
13
- if (t.eatSpace())
14
- return null;
15
- var r = t.peek();
16
- if (r === "'")
17
- return t.skipToEnd(), "comment";
18
- if (t.match(/^((&H)|(&O))?[0-9\.a-f]/i, !1)) {
19
- var n = !1;
20
- if ((t.match(/^\d*\.\d+F?/i) || t.match(/^\d+\.\d*F?/) || t.match(/^\.\d+F?/)) && (n = !0), n)
21
- return t.eat(/J/i), "number";
22
- var a = !1;
23
- if (t.match(/^&H[0-9a-f]+/i) || t.match(/^&O[0-7]+/i) ? a = !0 : t.match(/^[1-9]\d*F?/) ? (t.eat(/J/i), a = !0) : t.match(/^0(?![\dx])/i) && (a = !0), a)
24
- return t.eat(/L/i), "number";
25
- }
26
- return t.match(C) ? (e.tokenize = T(t.current()), e.tokenize(t, e)) : t.match(I) || t.match(x) ? null : t.match(w) || t.match(y) || t.match(L) ? "operator" : t.match(k) ? null : t.match(O) ? (u(t, e), e.doInCurrentLine = !0, "keyword") : t.match(F) ? (e.doInCurrentLine ? e.doInCurrentLine = !1 : u(t, e), "keyword") : t.match(g) ? "keyword" : t.match(v) ? (o(t, e), o(t, e), "keyword") : t.match(b) ? (o(t, e), "keyword") : t.match(R) || t.match(E) ? "keyword" : t.match(z) ? "variable" : (t.next(), c);
27
- }
28
- function T(t) {
29
- var e = t.length == 1, r = "string";
30
- return function(n, a) {
31
- for (; !n.eol(); ) {
32
- if (n.eatWhile(/[^'"]/), n.match(t))
33
- return a.tokenize = s, r;
34
- n.eat(/['"]/);
35
- }
36
- return e && (a.tokenize = s), r;
37
- };
38
- }
39
- function j(t, e) {
40
- var r = e.tokenize(t, e), n = t.current();
41
- if (n === ".")
42
- return r = e.tokenize(t, e), r === "variable" ? "variable" : c;
43
- var a = "[({".indexOf(n);
44
- return a !== -1 && u(t, e), a = "])}".indexOf(n), a !== -1 && o(t, e) ? c : r;
45
- }
46
- const S = {
47
- name: "vb",
48
- startState: function() {
49
- return {
50
- tokenize: s,
51
- lastToken: null,
52
- currentIndent: 0,
53
- nextLineIndent: 0,
54
- doInCurrentLine: !1
55
- };
56
- },
57
- token: function(t, e) {
58
- t.sol() && (e.currentIndent += e.nextLineIndent, e.nextLineIndent = 0, e.doInCurrentLine = 0);
59
- var r = j(t, e);
60
- return e.lastToken = { style: r, content: t.current() }, r;
61
- },
62
- indent: function(t, e, r) {
63
- var n = e.replace(/^\s+|\s+$/g, "");
64
- return n.match(b) || n.match(v) || n.match(g) ? r.unit * (t.currentIndent - 1) : t.currentIndent < 0 ? 0 : t.currentIndent * r.unit;
65
- },
66
- languageData: {
67
- closeBrackets: { brackets: ["(", "[", "{", '"'] },
68
- commentTokens: { line: "'" },
69
- autocomplete: l.concat(d).concat(m).concat(h).concat(f).concat(p)
70
- }
71
- };
72
- export {
73
- S as vb
74
- };