@aiao/code-editor-react 0.0.9 → 0.0.11

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 +5 -5
  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,54 +0,0 @@
1
- function t(O) {
2
- for (var E = {}, T = O.split(" "), I = 0; I < T.length; ++I) E[T[I]] = !0;
3
- return E;
4
- }
5
- var U = "ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ", a = "VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP", C = "BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ", e = t(U), r = t(a), L = t(C), A = /[*+\-%<>=&?:\/!|]/;
6
- function n(O, E, T) {
7
- return E.tokenize = T, T(O, E);
8
- }
9
- function G(O, E) {
10
- for (var T = !1, I; I = O.next(); ) {
11
- if (I == "/" && T) {
12
- E.tokenize = R;
13
- break;
14
- }
15
- T = I == "*";
16
- }
17
- return "comment";
18
- }
19
- function o(O) {
20
- return function(E, T) {
21
- for (var I = !1, N, S = !1; (N = E.next()) != null; ) {
22
- if (N == O && !I) {
23
- S = !0;
24
- break;
25
- }
26
- I = !I && N == "\\";
27
- }
28
- return (S || !I) && (T.tokenize = R), "error";
29
- };
30
- }
31
- function R(O, E) {
32
- var T = O.next();
33
- return T == '"' || T == "'" ? n(O, E, o(T)) : /[\[\]{}\(\),;\.]/.test(T) ? null : /\d/.test(T) ? (O.eatWhile(/[\w\.]/), "number") : T == "/" ? O.eat("*") ? n(O, E, G) : (O.eatWhile(A), "operator") : T == "-" ? O.eat("-") ? (O.skipToEnd(), "comment") : (O.eatWhile(A), "operator") : A.test(T) ? (O.eatWhile(A), "operator") : (O.eatWhile(/[\w\$_]/), r && r.propertyIsEnumerable(O.current().toUpperCase()) && !O.eat(")") && !O.eat(".") ? "keyword" : e && e.propertyIsEnumerable(O.current().toUpperCase()) ? "builtin" : L && L.propertyIsEnumerable(O.current().toUpperCase()) ? "type" : "variable");
34
- }
35
- const M = {
36
- name: "pig",
37
- startState: function() {
38
- return {
39
- tokenize: R,
40
- startOfLine: !0
41
- };
42
- },
43
- token: function(O, E) {
44
- if (O.eatSpace()) return null;
45
- var T = E.tokenize(O, E);
46
- return T;
47
- },
48
- languageData: {
49
- autocomplete: (U + C + a).split(" ")
50
- }
51
- };
52
- export {
53
- M as pig
54
- };
@@ -1,249 +0,0 @@
1
- function a(e, t) {
2
- t = t || {};
3
- for (var r = t.prefix !== void 0 ? t.prefix : "^", o = t.suffix !== void 0 ? t.suffix : "\\b", n = 0; n < e.length; n++)
4
- e[n] instanceof RegExp ? e[n] = e[n].source : e[n] = e[n].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
5
- return new RegExp(r + "(" + e.join("|") + ")" + o, "i");
6
- }
7
- var f = "(?=[^A-Za-z\\d\\-_]|$)", u = /[\w\-:]/, d = a([
8
- /begin|break|catch|continue|data|default|do|dynamicparam/,
9
- /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
10
- /param|process|return|switch|throw|trap|try|until|where|while/
11
- ], { suffix: f }), v = /[\[\]{},;`\\\.]|@[({]/, b = a([
12
- "f",
13
- /b?not/,
14
- /[ic]?split/,
15
- "join",
16
- /is(not)?/,
17
- "as",
18
- /[ic]?(eq|ne|[gl][te])/,
19
- /[ic]?(not)?(like|match|contains)/,
20
- /[ic]?replace/,
21
- /b?(and|or|xor)/
22
- ], { prefix: "-" }), C = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/, k = a([b, C], { suffix: "" }), h = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i, x = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/, E = /[A-Z]:|%|\?/i, y = a([
23
- /Add-(Computer|Content|History|Member|PSSnapin|Type)/,
24
- /Checkpoint-Computer/,
25
- /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,
26
- /Compare-Object/,
27
- /Complete-Transaction/,
28
- /Connect-PSSession/,
29
- /ConvertFrom-(Csv|Json|SecureString|StringData)/,
30
- /Convert-Path/,
31
- /ConvertTo-(Csv|Html|Json|SecureString|Xml)/,
32
- /Copy-Item(Property)?/,
33
- /Debug-Process/,
34
- /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
35
- /Disconnect-PSSession/,
36
- /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
37
- /(Enter|Exit)-PSSession/,
38
- /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,
39
- /ForEach-Object/,
40
- /Format-(Custom|List|Table|Wide)/,
41
- new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),
42
- /Group-Object/,
43
- /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,
44
- /ImportSystemModules/,
45
- /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,
46
- /Join-Path/,
47
- /Limit-EventLog/,
48
- /Measure-(Command|Object)/,
49
- /Move-Item(Property)?/,
50
- new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),
51
- /Out-(Default|File|GridView|Host|Null|Printer|String)/,
52
- /Pause/,
53
- /(Pop|Push)-Location/,
54
- /Read-Host/,
55
- /Receive-(Job|PSSession)/,
56
- /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,
57
- /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,
58
- /Rename-(Computer|Item(Property)?)/,
59
- /Reset-ComputerMachinePassword/,
60
- /Resolve-Path/,
61
- /Restart-(Computer|Service)/,
62
- /Restore-Computer/,
63
- /Resume-(Job|Service)/,
64
- /Save-Help/,
65
- /Select-(Object|String|Xml)/,
66
- /Send-MailMessage/,
67
- new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),
68
- /Show-(Command|ControlPanelItem|EventLog)/,
69
- /Sort-Object/,
70
- /Split-Path/,
71
- /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,
72
- /Stop-(Computer|Job|Process|Service|Transcript)/,
73
- /Suspend-(Job|Service)/,
74
- /TabExpansion2/,
75
- /Tee-Object/,
76
- /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,
77
- /Trace-Command/,
78
- /Unblock-File/,
79
- /Undo-Transaction/,
80
- /Unregister-(Event|PSSessionConfiguration)/,
81
- /Update-(FormatData|Help|List|TypeData)/,
82
- /Use-Transaction/,
83
- /Wait-(Event|Job|Process)/,
84
- /Where-Object/,
85
- /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,
86
- /cd|help|mkdir|more|oss|prompt/,
87
- /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,
88
- /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,
89
- /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,
90
- /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
91
- /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,
92
- /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/
93
- ], { prefix: "", suffix: "" }), w = a([
94
- /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,
95
- /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,
96
- /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
97
- /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,
98
- /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,
99
- /WarningPreference|WhatIfPreference/,
100
- /Event|EventArgs|EventSubscriber|Sender/,
101
- /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,
102
- /true|false|null/
103
- ], { prefix: "\\$", suffix: "" }), M = a([E, y, w], { suffix: f }), p = {
104
- keyword: d,
105
- number: h,
106
- operator: k,
107
- builtin: M,
108
- punctuation: v,
109
- variable: x
110
- };
111
- function i(e, t) {
112
- var r = t.returnStack[t.returnStack.length - 1];
113
- if (r && r.shouldReturnFrom(t))
114
- return t.tokenize = r.tokenize, t.returnStack.pop(), t.tokenize(e, t);
115
- if (e.eatSpace())
116
- return null;
117
- if (e.eat("("))
118
- return t.bracketNesting += 1, "punctuation";
119
- if (e.eat(")"))
120
- return t.bracketNesting -= 1, "punctuation";
121
- for (var o in p)
122
- if (e.match(p[o]))
123
- return o;
124
- var n = e.next();
125
- if (n === "'")
126
- return R(e, t);
127
- if (n === "$")
128
- return c(e, t);
129
- if (n === '"')
130
- return P(e, t);
131
- if (n === "<" && e.eat("#"))
132
- return t.tokenize = m, m(e, t);
133
- if (n === "#")
134
- return e.skipToEnd(), "comment";
135
- if (n === "@") {
136
- var l = e.eat(/["']/);
137
- if (l && e.eol())
138
- return t.tokenize = s, t.startQuote = l[0], s(e, t);
139
- if (e.eol())
140
- return "error";
141
- if (e.peek().match(/[({]/))
142
- return "punctuation";
143
- if (e.peek().match(u))
144
- return c(e, t);
145
- }
146
- return "error";
147
- }
148
- function R(e, t) {
149
- for (var r; (r = e.peek()) != null; )
150
- if (e.next(), r === "'" && !e.eat("'"))
151
- return t.tokenize = i, "string";
152
- return "error";
153
- }
154
- function P(e, t) {
155
- for (var r; (r = e.peek()) != null; ) {
156
- if (r === "$")
157
- return t.tokenize = z, "string";
158
- if (e.next(), r === "`") {
159
- e.next();
160
- continue;
161
- }
162
- if (r === '"' && !e.eat('"'))
163
- return t.tokenize = i, "string";
164
- }
165
- return "error";
166
- }
167
- function z(e, t) {
168
- return g(e, t, P);
169
- }
170
- function T(e, t) {
171
- return t.tokenize = s, t.startQuote = '"', s(e, t);
172
- }
173
- function I(e, t) {
174
- return g(e, t, T);
175
- }
176
- function g(e, t, r) {
177
- if (e.match("$(")) {
178
- var o = t.bracketNesting;
179
- return t.returnStack.push({
180
- /*jshint loopfunc:true */
181
- shouldReturnFrom: function(n) {
182
- return n.bracketNesting === o;
183
- },
184
- tokenize: r
185
- }), t.tokenize = i, t.bracketNesting += 1, "punctuation";
186
- } else
187
- return e.next(), t.returnStack.push({
188
- shouldReturnFrom: function() {
189
- return !0;
190
- },
191
- tokenize: r
192
- }), t.tokenize = c, t.tokenize(e, t);
193
- }
194
- function m(e, t) {
195
- for (var r = !1, o; (o = e.next()) != null; ) {
196
- if (r && o == ">") {
197
- t.tokenize = i;
198
- break;
199
- }
200
- r = o === "#";
201
- }
202
- return "comment";
203
- }
204
- function c(e, t) {
205
- var r = e.peek();
206
- return e.eat("{") ? (t.tokenize = S, S(e, t)) : r != null && r.match(u) ? (e.eatWhile(u), t.tokenize = i, "variable") : (t.tokenize = i, "error");
207
- }
208
- function S(e, t) {
209
- for (var r; (r = e.next()) != null; )
210
- if (r === "}") {
211
- t.tokenize = i;
212
- break;
213
- }
214
- return "variable";
215
- }
216
- function s(e, t) {
217
- var r = t.startQuote;
218
- if (e.sol() && e.match(new RegExp(r + "@")))
219
- t.tokenize = i;
220
- else if (r === '"')
221
- for (; !e.eol(); ) {
222
- var o = e.peek();
223
- if (o === "$")
224
- return t.tokenize = I, "string";
225
- e.next(), o === "`" && e.next();
226
- }
227
- else
228
- e.skipToEnd();
229
- return "string";
230
- }
231
- const D = {
232
- name: "powershell",
233
- startState: function() {
234
- return {
235
- returnStack: [],
236
- bracketNesting: 0,
237
- tokenize: i
238
- };
239
- },
240
- token: function(e, t) {
241
- return t.tokenize(e, t);
242
- },
243
- languageData: {
244
- commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
245
- }
246
- };
247
- export {
248
- D as powerShell
249
- };
@@ -1,26 +0,0 @@
1
- const l = {
2
- name: "properties",
3
- token: function(e, t) {
4
- var o = e.sol() || t.afterSection, i = e.eol();
5
- if (t.afterSection = !1, o && (t.nextMultiline ? (t.inMultiline = !0, t.nextMultiline = !1) : t.position = "def"), i && !t.nextMultiline && (t.inMultiline = !1, t.position = "def"), o)
6
- for (; e.eatSpace(); )
7
- ;
8
- var n = e.next();
9
- return o && (n === "#" || n === "!" || n === ";") ? (t.position = "comment", e.skipToEnd(), "comment") : o && n === "[" ? (t.afterSection = !0, e.skipTo("]"), e.eat("]"), "header") : n === "=" || n === ":" ? (t.position = "quote", null) : (n === "\\" && t.position === "quote" && e.eol() && (t.nextMultiline = !0), t.position);
10
- },
11
- startState: function() {
12
- return {
13
- position: "def",
14
- // Current position, "def", "quote" or "comment"
15
- nextMultiline: !1,
16
- // Is the next line multiline value
17
- inMultiline: !1,
18
- // Is the current line a multiline value
19
- afterSection: !1
20
- // Did we just open a section
21
- };
22
- }
23
- };
24
- export {
25
- l as properties
26
- };
@@ -1,49 +0,0 @@
1
- function n(t) {
2
- return new RegExp("^((" + t.join(")|(") + "))\\b", "i");
3
- }
4
- var e = [
5
- "package",
6
- "message",
7
- "import",
8
- "syntax",
9
- "required",
10
- "optional",
11
- "repeated",
12
- "reserved",
13
- "default",
14
- "extensions",
15
- "packed",
16
- "bool",
17
- "bytes",
18
- "double",
19
- "enum",
20
- "float",
21
- "string",
22
- "int32",
23
- "int64",
24
- "uint32",
25
- "uint64",
26
- "sint32",
27
- "sint64",
28
- "fixed32",
29
- "fixed64",
30
- "sfixed32",
31
- "sfixed64",
32
- "option",
33
- "service",
34
- "rpc",
35
- "returns"
36
- ], a = n(e), i = new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");
37
- function o(t) {
38
- return t.eatSpace() ? null : t.match("//") ? (t.skipToEnd(), "comment") : t.match(/^[0-9\.+-]/, !1) && (t.match(/^[+-]?0x[0-9a-fA-F]+/) || t.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/) || t.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) ? "number" : t.match(/^"([^"]|(""))*"/) || t.match(/^'([^']|(''))*'/) ? "string" : t.match(a) ? "keyword" : t.match(i) ? "variable" : (t.next(), null);
39
- }
40
- const r = {
41
- name: "protobuf",
42
- token: o,
43
- languageData: {
44
- autocomplete: e
45
- }
46
- };
47
- export {
48
- r as protobuf
49
- };
@@ -1,248 +0,0 @@
1
- import { javascript as a } from "./javascript-DOuB9oqA-BxiygWgm.js";
2
- var u = {
3
- "{": "}",
4
- "(": ")",
5
- "[": "]"
6
- };
7
- function l(e) {
8
- if (typeof e != "object") return e;
9
- let t = {};
10
- for (let r in e) {
11
- let i = e[r];
12
- t[r] = i instanceof Array ? i.slice() : i;
13
- }
14
- return t;
15
- }
16
- class n {
17
- constructor(t) {
18
- this.indentUnit = t, this.javaScriptLine = !1, this.javaScriptLineExcludesColon = !1, this.javaScriptArguments = !1, this.javaScriptArgumentsDepth = 0, this.isInterpolating = !1, this.interpolationNesting = 0, this.jsState = a.startState(t), this.restOfLine = "", this.isIncludeFiltered = !1, this.isEach = !1, this.lastTag = "", this.isAttrs = !1, this.attrsNest = [], this.inAttributeName = !0, this.attributeIsType = !1, this.attrValue = "", this.indentOf = 1 / 0, this.indentToken = "";
19
- }
20
- copy() {
21
- var t = new n(this.indentUnit);
22
- return t.javaScriptLine = this.javaScriptLine, t.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon, t.javaScriptArguments = this.javaScriptArguments, t.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth, t.isInterpolating = this.isInterpolating, t.interpolationNesting = this.interpolationNesting, t.jsState = (a.copyState || l)(this.jsState), t.restOfLine = this.restOfLine, t.isIncludeFiltered = this.isIncludeFiltered, t.isEach = this.isEach, t.lastTag = this.lastTag, t.isAttrs = this.isAttrs, t.attrsNest = this.attrsNest.slice(), t.inAttributeName = this.inAttributeName, t.attributeIsType = this.attributeIsType, t.attrValue = this.attrValue, t.indentOf = this.indentOf, t.indentToken = this.indentToken, t;
23
- }
24
- }
25
- function p(e, t) {
26
- if (e.sol() && (t.javaScriptLine = !1, t.javaScriptLineExcludesColon = !1), t.javaScriptLine) {
27
- if (t.javaScriptLineExcludesColon && e.peek() === ":") {
28
- t.javaScriptLine = !1, t.javaScriptLineExcludesColon = !1;
29
- return;
30
- }
31
- var r = a.token(e, t.jsState);
32
- return e.eol() && (t.javaScriptLine = !1), r || !0;
33
- }
34
- }
35
- function h(e, t) {
36
- if (t.javaScriptArguments) {
37
- if (t.javaScriptArgumentsDepth === 0 && e.peek() !== "(") {
38
- t.javaScriptArguments = !1;
39
- return;
40
- }
41
- if (e.peek() === "(" ? t.javaScriptArgumentsDepth++ : e.peek() === ")" && t.javaScriptArgumentsDepth--, t.javaScriptArgumentsDepth === 0) {
42
- t.javaScriptArguments = !1;
43
- return;
44
- }
45
- var r = a.token(e, t.jsState);
46
- return r || !0;
47
- }
48
- }
49
- function m(e) {
50
- if (e.match(/^yield\b/))
51
- return "keyword";
52
- }
53
- function d(e) {
54
- if (e.match(/^(?:doctype) *([^\n]+)?/)) return "meta";
55
- }
56
- function c(e, t) {
57
- if (e.match("#{"))
58
- return t.isInterpolating = !0, t.interpolationNesting = 0, "punctuation";
59
- }
60
- function v(e, t) {
61
- if (t.isInterpolating) {
62
- if (e.peek() === "}") {
63
- if (t.interpolationNesting--, t.interpolationNesting < 0)
64
- return e.next(), t.isInterpolating = !1, "punctuation";
65
- } else e.peek() === "{" && t.interpolationNesting++;
66
- return a.token(e, t.jsState) || !0;
67
- }
68
- }
69
- function S(e, t) {
70
- if (e.match(/^case\b/))
71
- return t.javaScriptLine = !0, "keyword";
72
- }
73
- function j(e, t) {
74
- if (e.match(/^when\b/))
75
- return t.javaScriptLine = !0, t.javaScriptLineExcludesColon = !0, "keyword";
76
- }
77
- function g(e) {
78
- if (e.match(/^default\b/))
79
- return "keyword";
80
- }
81
- function k(e, t) {
82
- if (e.match(/^extends?\b/))
83
- return t.restOfLine = "string", "keyword";
84
- }
85
- function b(e, t) {
86
- if (e.match(/^append\b/))
87
- return t.restOfLine = "variable", "keyword";
88
- }
89
- function A(e, t) {
90
- if (e.match(/^prepend\b/))
91
- return t.restOfLine = "variable", "keyword";
92
- }
93
- function L(e, t) {
94
- if (e.match(/^block\b *(?:(prepend|append)\b)?/))
95
- return t.restOfLine = "variable", "keyword";
96
- }
97
- function y(e, t) {
98
- if (e.match(/^include\b/))
99
- return t.restOfLine = "string", "keyword";
100
- }
101
- function w(e, t) {
102
- if (e.match(/^include:([a-zA-Z0-9\-]+)/, !1) && e.match("include"))
103
- return t.isIncludeFiltered = !0, "keyword";
104
- }
105
- function N(e, t) {
106
- if (t.isIncludeFiltered) {
107
- var r = f(e, t);
108
- return t.isIncludeFiltered = !1, t.restOfLine = "string", r;
109
- }
110
- }
111
- function x(e, t) {
112
- if (e.match(/^mixin\b/))
113
- return t.javaScriptLine = !0, "keyword";
114
- }
115
- function T(e, t) {
116
- if (e.match(/^\+([-\w]+)/))
117
- return e.match(/^\( *[-\w]+ *=/, !1) || (t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0), "variable";
118
- if (e.match("+#{", !1))
119
- return e.next(), t.mixinCallAfter = !0, c(e, t);
120
- }
121
- function I(e, t) {
122
- if (t.mixinCallAfter)
123
- return t.mixinCallAfter = !1, e.match(/^\( *[-\w]+ *=/, !1) || (t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0), !0;
124
- }
125
- function O(e, t) {
126
- if (e.match(/^(if|unless|else if|else)\b/))
127
- return t.javaScriptLine = !0, "keyword";
128
- }
129
- function E(e, t) {
130
- if (e.match(/^(- *)?(each|for)\b/))
131
- return t.isEach = !0, "keyword";
132
- }
133
- function C(e, t) {
134
- if (t.isEach) {
135
- if (e.match(/^ in\b/))
136
- return t.javaScriptLine = !0, t.isEach = !1, "keyword";
137
- if (e.sol() || e.eol())
138
- t.isEach = !1;
139
- else if (e.next()) {
140
- for (; !e.match(/^ in\b/, !1) && e.next(); )
141
- ;
142
- return "variable";
143
- }
144
- }
145
- }
146
- function D(e, t) {
147
- if (e.match(/^while\b/))
148
- return t.javaScriptLine = !0, "keyword";
149
- }
150
- function F(e, t) {
151
- var r;
152
- if (r = e.match(/^(\w(?:[-:\w]*\w)?)\/?/))
153
- return t.lastTag = r[1].toLowerCase(), "tag";
154
- }
155
- function f(e, t) {
156
- if (e.match(/^:([\w\-]+)/))
157
- return s(e, t), "atom";
158
- }
159
- function V(e, t) {
160
- if (e.match(/^(!?=|-)/))
161
- return t.javaScriptLine = !0, "punctuation";
162
- }
163
- function U(e) {
164
- if (e.match(/^#([\w-]+)/))
165
- return "builtin";
166
- }
167
- function z(e) {
168
- if (e.match(/^\.([\w-]+)/))
169
- return "className";
170
- }
171
- function Z(e, t) {
172
- if (e.peek() == "(")
173
- return e.next(), t.isAttrs = !0, t.attrsNest = [], t.inAttributeName = !0, t.attrValue = "", t.attributeIsType = !1, "punctuation";
174
- }
175
- function o(e, t) {
176
- if (t.isAttrs) {
177
- if (u[e.peek()] && t.attrsNest.push(u[e.peek()]), t.attrsNest[t.attrsNest.length - 1] === e.peek())
178
- t.attrsNest.pop();
179
- else if (e.eat(")"))
180
- return t.isAttrs = !1, "punctuation";
181
- if (t.inAttributeName && e.match(/^[^=,\)!]+/))
182
- return (e.peek() === "=" || e.peek() === "!") && (t.inAttributeName = !1, t.jsState = a.startState(2), t.lastTag === "script" && e.current().trim().toLowerCase() === "type" ? t.attributeIsType = !0 : t.attributeIsType = !1), "attribute";
183
- var r = a.token(e, t.jsState);
184
- if (t.attrsNest.length === 0 && (r === "string" || r === "variable" || r === "keyword"))
185
- try {
186
- return Function("", "var x " + t.attrValue.replace(/,\s*$/, "").replace(/^!/, "")), t.inAttributeName = !0, t.attrValue = "", e.backUp(e.current().length), o(e, t);
187
- } catch {
188
- }
189
- return t.attrValue += e.current(), r || !0;
190
- }
191
- }
192
- function $(e, t) {
193
- if (e.match(/^&attributes\b/))
194
- return t.javaScriptArguments = !0, t.javaScriptArgumentsDepth = 0, "keyword";
195
- }
196
- function q(e) {
197
- if (e.sol() && e.eatSpace())
198
- return "indent";
199
- }
200
- function B(e, t) {
201
- if (e.match(/^ *\/\/(-)?([^\n]*)/))
202
- return t.indentOf = e.indentation(), t.indentToken = "comment", "comment";
203
- }
204
- function G(e) {
205
- if (e.match(/^: */))
206
- return "colon";
207
- }
208
- function H(e, t) {
209
- if (e.match(/^(?:\| ?| )([^\n]+)/))
210
- return "string";
211
- if (e.match(/^(<[^\n]*)/, !1))
212
- return s(e, t), e.skipToEnd(), t.indentToken;
213
- }
214
- function J(e, t) {
215
- if (e.eat("."))
216
- return s(e, t), "dot";
217
- }
218
- function K(e) {
219
- return e.next(), null;
220
- }
221
- function s(e, t) {
222
- t.indentOf = e.indentation(), t.indentToken = "string";
223
- }
224
- function M(e, t) {
225
- if (e.sol() && (t.restOfLine = ""), t.restOfLine) {
226
- e.skipToEnd();
227
- var r = t.restOfLine;
228
- return t.restOfLine = "", r;
229
- }
230
- }
231
- function P(e) {
232
- return new n(e);
233
- }
234
- function Q(e) {
235
- return e.copy();
236
- }
237
- function R(e, t) {
238
- var r = M(e, t) || v(e, t) || N(e, t) || C(e, t) || o(e, t) || p(e, t) || h(e, t) || I(e, t) || m(e) || d(e) || c(e, t) || S(e, t) || j(e, t) || g(e) || k(e, t) || b(e, t) || A(e, t) || L(e, t) || y(e, t) || w(e, t) || x(e, t) || T(e, t) || O(e, t) || E(e, t) || D(e, t) || F(e, t) || f(e, t) || V(e, t) || U(e) || z(e) || Z(e, t) || $(e, t) || q(e) || H(e, t) || B(e, t) || G(e) || J(e, t) || K(e);
239
- return r === !0 ? null : r;
240
- }
241
- const W = {
242
- startState: P,
243
- copyState: Q,
244
- token: R
245
- };
246
- export {
247
- W as pug
248
- };
@@ -1,45 +0,0 @@
1
- var r = {}, u = /({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;
2
- function o(e, t) {
3
- for (var a = t.split(" "), n = 0; n < a.length; n++)
4
- r[a[n]] = e;
5
- }
6
- o("keyword", "class define site node include import inherits");
7
- o("keyword", "case if else in and elsif default or");
8
- o("atom", "false true running present absent file directory undef");
9
- o("builtin", "action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");
10
- function c(e, t) {
11
- for (var a, n, s = !1; !e.eol() && (a = e.next()) != t.pending; ) {
12
- if (a === "$" && n != "\\" && t.pending == '"') {
13
- s = !0;
14
- break;
15
- }
16
- n = a;
17
- }
18
- return s && e.backUp(1), a == t.pending ? t.continueString = !1 : t.continueString = !0, "string";
19
- }
20
- function f(e, t) {
21
- var a = e.match(/[\w]+/, !1), n = e.match(/(\s+)?\w+\s+=>.*/, !1), s = e.match(/(\s+)?[\w:_]+(\s+)?{/, !1), l = e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/, !1), i = e.next();
22
- if (i === "$")
23
- return e.match(u) ? t.continueString ? "variableName.special" : "variable" : "error";
24
- if (t.continueString)
25
- return e.backUp(1), c(e, t);
26
- if (t.inDefinition) {
27
- if (e.match(/(\s+)?[\w:_]+(\s+)?/))
28
- return "def";
29
- e.match(/\s+{/), t.inDefinition = !1;
30
- }
31
- return t.inInclude ? (e.match(/(\s+)?\S+(\s+)?/), t.inInclude = !1, "def") : e.match(/(\s+)?\w+\(/) ? (e.backUp(1), "def") : n ? (e.match(/(\s+)?\w+/), "tag") : a && r.hasOwnProperty(a) ? (e.backUp(1), e.match(/[\w]+/), e.match(/\s+\S+\s+{/, !1) && (t.inDefinition = !0), a == "include" && (t.inInclude = !0), r[a]) : /(^|\s+)[A-Z][\w:_]+/.test(a) ? (e.backUp(1), e.match(/(^|\s+)[A-Z][\w:_]+/), "def") : s ? (e.match(/(\s+)?[\w:_]+/), "def") : l ? (e.match(/(\s+)?[@]{1,2}/), "atom") : i == "#" ? (e.skipToEnd(), "comment") : i == "'" || i == '"' ? (t.pending = i, c(e, t)) : i == "{" || i == "}" ? "bracket" : i == "/" ? (e.match(/^[^\/]*\//), "string.special") : i.match(/[0-9]/) ? (e.eatWhile(/[0-9]+/), "number") : i == "=" ? (e.peek() == ">" && e.next(), "operator") : (e.eatWhile(/[\w-]/), null);
32
- }
33
- const p = {
34
- name: "puppet",
35
- startState: function() {
36
- var e = {};
37
- return e.inDefinition = !1, e.inInclude = !1, e.continueString = !1, e.pending = !1, e;
38
- },
39
- token: function(e, t) {
40
- return e.eatSpace() ? null : f(e, t);
41
- }
42
- };
43
- export {
44
- p as puppet
45
- };