react-schema-form 1.0.5 → 1.0.7
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.
- package/dist/react-schema-form.css +1 -0
- package/dist/react-schema-form.js +24552 -5
- package/dist/react-schema-form.js.map +1 -0
- package/dist/react-schema-form.umd.cjs +76 -168
- package/dist/react-schema-form.umd.cjs.map +1 -0
- package/package.json +32 -10
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asn1-DF4fnRHj.js +0 -93
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-l4mx49Q1.js +0 -621
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-CJVkMW0i.js +0 -73
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/css-bIlmDBTK.js +0 -1560
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-CFG_IPGn.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-Xa2PN7SI.js +0 -77
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-DJHfQ4a1.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-pdDS1aE8.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index-BE87KcZQ.js +0 -98
- package/dist/index-BLB2mjTh.js +0 -312
- package/dist/index-Bar6lBni.js +0 -75
- package/dist/index-BzGQIlo_.js +0 -134
- package/dist/index-BzqHMC7H.js +0 -58
- package/dist/index-C1_9PR5w.js +0 -156
- package/dist/index-C8EGvqpJ.js +0 -135
- package/dist/index-CFDpG1dM.js +0 -243
- package/dist/index-Cjv9KcfW.js +0 -93
- package/dist/index-CvvBPxcf.js +0 -341
- package/dist/index-DDn1Bvsm.js +0 -538
- package/dist/index-DeMNkpAe.js +0 -299
- package/dist/index-DjyHTjks.js +0 -265
- package/dist/index-JL0W82NW.js +0 -598
- package/dist/index-RrAWWB2k.js +0 -71
- package/dist/index-kp5oFDKj.js +0 -288
- package/dist/javascript-CWGekh08.js +0 -690
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CE_BxZmN.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/main-gT5TlPcm.js +0 -85834
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-1yy7Y7jE.js +0 -275
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-BtA0qkjU.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-ixanSKUz.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pug-CW1q1xhQ.js +0 -248
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-B5QdSKoL.js +0 -313
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-Bz1d3XP0.js +0 -104
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-HGTvdazT.js +0 -88
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-uoWIYwDX.js +0 -284
- package/dist/stex-92raWT1r.js +0 -129
- package/dist/style.css +0 -1
- package/dist/stylus-DRcbY16X.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-D9z-T0ea.js +0 -178
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-DmjTzZb6.js +0 -125
- package/dist/ttcn-cfg-B2U3U7dn.js +0 -90
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/vite.svg +0 -1
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-xQxle02u.js +0 -426
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-schema-form",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "React JSON Schema Form",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"json schema",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"deploy": "gh-pages -d example/dist"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@uiw/react-markdown-editor": "^6.1.2",
|
|
29
28
|
"classnames": "^2.5.1",
|
|
30
29
|
"lodash": "^4.17.21",
|
|
30
|
+
"object-path": "^0.11.8",
|
|
31
31
|
"objectpath": "^2.0.0",
|
|
32
32
|
"react-checkbox-tree": "^1.8.0",
|
|
33
33
|
"supports-color": "^9.4.0",
|
|
@@ -35,31 +35,53 @@
|
|
|
35
35
|
"universal-cookie": "^7.2.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
38
|
+
"@babel/runtime": "^7.26.0",
|
|
39
|
+
"@codemirror/autocomplete": "^6.18.2",
|
|
40
|
+
"@codemirror/language": "^6.10.6",
|
|
41
|
+
"@codemirror/lint": "^6.8.2",
|
|
42
|
+
"@codemirror/search": "^6.5.7",
|
|
43
|
+
"@codemirror/state": "^6.4.1",
|
|
44
|
+
"@codemirror/theme-one-dark": "^6.1.2",
|
|
45
|
+
"@codemirror/view": "^6.34.2",
|
|
46
|
+
"@emotion/react": "^11.13.5",
|
|
47
|
+
"@emotion/styled": "^11.13.5",
|
|
40
48
|
"@eslint/js": "^9.13.0",
|
|
49
|
+
"@lezer/common": "^1.2.3",
|
|
41
50
|
"@mui/icons-material": "^6.1.6",
|
|
42
51
|
"@mui/material": "^6.1.6",
|
|
43
52
|
"@mui/styles": "^6.1.6",
|
|
44
|
-
"@types/react": "^18.3.
|
|
45
|
-
"@
|
|
53
|
+
"@types/react": "^18.3.1",
|
|
54
|
+
"@uiw/react-markdown-editor": "^6.1.2",
|
|
46
55
|
"@vitejs/plugin-react": "^4.3.3",
|
|
56
|
+
"codemirror": "^6.0.1",
|
|
47
57
|
"eslint": "^9.13.0",
|
|
48
58
|
"eslint-plugin-react": "^7.37.2",
|
|
49
59
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
50
60
|
"eslint-plugin-react-refresh": "^0.4.14",
|
|
51
|
-
"globals": "^15.11.0",
|
|
52
61
|
"gh-pages": "^6.2.0",
|
|
62
|
+
"globals": "^15.11.0",
|
|
53
63
|
"react": "^18.3.1",
|
|
54
64
|
"react-dom": "^18.3.1",
|
|
55
|
-
"vite": "^
|
|
65
|
+
"vite": "^6.0.3"
|
|
56
66
|
},
|
|
57
67
|
"peerDependencies": {
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
68
|
+
"@babel/runtime": "^7.26.0",
|
|
69
|
+
"@codemirror/autocomplete": "^6.18.2",
|
|
70
|
+
"@codemirror/language": "^6.10.6",
|
|
71
|
+
"@codemirror/lint": "^6.8.2",
|
|
72
|
+
"@codemirror/search": "^6.5.7",
|
|
73
|
+
"@codemirror/state": "^6.4.1",
|
|
74
|
+
"@codemirror/theme-one-dark": "^6.1.2",
|
|
75
|
+
"@codemirror/view": "^6.34.2",
|
|
76
|
+
"@emotion/react": "^11.13.5",
|
|
77
|
+
"@emotion/styled": "^11.13.5",
|
|
78
|
+
"@lezer/common": "^1.2.3",
|
|
60
79
|
"@mui/icons-material": "^6.1.6",
|
|
61
80
|
"@mui/material": "^6.1.6",
|
|
62
81
|
"@mui/styles": "^6.1.6",
|
|
82
|
+
"@types/react": "^18.3.1",
|
|
83
|
+
"@uiw/react-markdown-editor": "^6.1.2",
|
|
84
|
+
"codemirror": "^6.0.1",
|
|
63
85
|
"react": "^18.3.1",
|
|
64
86
|
"react-dom": "^18.3.1"
|
|
65
87
|
},
|
package/dist/apl-B2DGVGxc.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var l = {
|
|
2
|
-
"+": ["conjugate", "add"],
|
|
3
|
-
"−": ["negate", "subtract"],
|
|
4
|
-
"×": ["signOf", "multiply"],
|
|
5
|
-
"÷": ["reciprocal", "divide"],
|
|
6
|
-
"⌈": ["ceiling", "greaterOf"],
|
|
7
|
-
"⌊": ["floor", "lesserOf"],
|
|
8
|
-
"∣": ["absolute", "residue"],
|
|
9
|
-
"⍳": ["indexGenerate", "indexOf"],
|
|
10
|
-
"?": ["roll", "deal"],
|
|
11
|
-
"⋆": ["exponentiate", "toThePowerOf"],
|
|
12
|
-
"⍟": ["naturalLog", "logToTheBase"],
|
|
13
|
-
"○": ["piTimes", "circularFuncs"],
|
|
14
|
-
"!": ["factorial", "binomial"],
|
|
15
|
-
"⌹": ["matrixInverse", "matrixDivide"],
|
|
16
|
-
"<": [null, "lessThan"],
|
|
17
|
-
"≤": [null, "lessThanOrEqual"],
|
|
18
|
-
"=": [null, "equals"],
|
|
19
|
-
">": [null, "greaterThan"],
|
|
20
|
-
"≥": [null, "greaterThanOrEqual"],
|
|
21
|
-
"≠": [null, "notEqual"],
|
|
22
|
-
"≡": ["depth", "match"],
|
|
23
|
-
"≢": [null, "notMatch"],
|
|
24
|
-
"∈": ["enlist", "membership"],
|
|
25
|
-
"⍷": [null, "find"],
|
|
26
|
-
"∪": ["unique", "union"],
|
|
27
|
-
"∩": [null, "intersection"],
|
|
28
|
-
"∼": ["not", "without"],
|
|
29
|
-
"∨": [null, "or"],
|
|
30
|
-
"∧": [null, "and"],
|
|
31
|
-
"⍱": [null, "nor"],
|
|
32
|
-
"⍲": [null, "nand"],
|
|
33
|
-
"⍴": ["shapeOf", "reshape"],
|
|
34
|
-
",": ["ravel", "catenate"],
|
|
35
|
-
"⍪": [null, "firstAxisCatenate"],
|
|
36
|
-
"⌽": ["reverse", "rotate"],
|
|
37
|
-
"⊖": ["axis1Reverse", "axis1Rotate"],
|
|
38
|
-
"⍉": ["transpose", null],
|
|
39
|
-
"↑": ["first", "take"],
|
|
40
|
-
"↓": [null, "drop"],
|
|
41
|
-
"⊂": ["enclose", "partitionWithAxis"],
|
|
42
|
-
"⊃": ["diclose", "pick"],
|
|
43
|
-
"⌷": [null, "index"],
|
|
44
|
-
"⍋": ["gradeUp", null],
|
|
45
|
-
"⍒": ["gradeDown", null],
|
|
46
|
-
"⊤": ["encode", null],
|
|
47
|
-
"⊥": ["decode", null],
|
|
48
|
-
"⍕": ["format", "formatByExample"],
|
|
49
|
-
"⍎": ["execute", null],
|
|
50
|
-
"⊣": ["stop", "left"],
|
|
51
|
-
"⊢": ["pass", "right"]
|
|
52
|
-
}, t = /[\.\/⌿⍀¨⍣]/, a = /⍬/, i = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/, u = /←/, o = /[⍝#].*$/, s = function(r) {
|
|
53
|
-
var n;
|
|
54
|
-
return n = !1, function(e) {
|
|
55
|
-
return n = e, e === r ? n === "\\" : !0;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
const f = {
|
|
59
|
-
name: "apl",
|
|
60
|
-
startState: function() {
|
|
61
|
-
return {
|
|
62
|
-
prev: !1,
|
|
63
|
-
func: !1,
|
|
64
|
-
op: !1,
|
|
65
|
-
string: !1,
|
|
66
|
-
escape: !1
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
token: function(r, n) {
|
|
70
|
-
var e;
|
|
71
|
-
return r.eatSpace() ? null : (e = r.next(), e === '"' || e === "'" ? (r.eatWhile(s(e)), r.next(), n.prev = !0, "string") : /[\[{\(]/.test(e) ? (n.prev = !1, null) : /[\]}\)]/.test(e) ? (n.prev = !0, null) : a.test(e) ? (n.prev = !1, "atom") : /[¯\d]/.test(e) ? (n.func ? (n.func = !1, n.prev = !1) : n.prev = !0, r.eatWhile(/[\w\.]/), "number") : t.test(e) || u.test(e) ? "operator" : i.test(e) ? (n.func = !0, n.prev = !1, l[e] ? "variableName.function.standard" : "variableName.function") : o.test(e) ? (r.skipToEnd(), "comment") : e === "∘" && r.peek() === "." ? (r.next(), "variableName.function") : (r.eatWhile(/[\w\$_]/), n.prev = !0, "keyword"));
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
f as apl
|
|
76
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
function t(e) {
|
|
2
|
-
var r = e.match(/^\s*\S/);
|
|
3
|
-
return e.skipToEnd(), r ? "error" : null;
|
|
4
|
-
}
|
|
5
|
-
const i = {
|
|
6
|
-
name: "asciiarmor",
|
|
7
|
-
token: function(e, r) {
|
|
8
|
-
var n;
|
|
9
|
-
if (r.state == "top")
|
|
10
|
-
return e.sol() && (n = e.match(/^-----BEGIN (.*)?-----\s*$/)) ? (r.state = "headers", r.type = n[1], "tag") : t(e);
|
|
11
|
-
if (r.state == "headers") {
|
|
12
|
-
if (e.sol() && e.match(/^\w+:/))
|
|
13
|
-
return r.state = "header", "atom";
|
|
14
|
-
var o = t(e);
|
|
15
|
-
return o && (r.state = "body"), o;
|
|
16
|
-
} else {
|
|
17
|
-
if (r.state == "header")
|
|
18
|
-
return e.skipToEnd(), r.state = "headers", "string";
|
|
19
|
-
if (r.state == "body")
|
|
20
|
-
return e.sol() && (n = e.match(/^-----END (.*)?-----\s*$/)) ? n[1] != r.type ? "error" : (r.state = "end", "tag") : e.eatWhile(/[A-Za-z0-9+\/=]/) ? null : (e.next(), "error");
|
|
21
|
-
if (r.state == "end")
|
|
22
|
-
return t(e);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
blankLine: function(e) {
|
|
26
|
-
e.state == "headers" && (e.state = "body");
|
|
27
|
-
},
|
|
28
|
-
startState: function() {
|
|
29
|
-
return { state: "top", type: null };
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
i as asciiArmor
|
|
34
|
-
};
|
package/dist/asn1-DF4fnRHj.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
function u(i) {
|
|
2
|
-
for (var s = {}, c = i.split(" "), T = 0; T < c.length; ++T) s[c[T]] = !0;
|
|
3
|
-
return s;
|
|
4
|
-
}
|
|
5
|
-
const o = {
|
|
6
|
-
keywords: u("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),
|
|
7
|
-
cmipVerbs: u("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),
|
|
8
|
-
compareTypes: u("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),
|
|
9
|
-
status: u("current deprecated mandatory obsolete"),
|
|
10
|
-
tags: u("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),
|
|
11
|
-
storage: u("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),
|
|
12
|
-
modifier: u("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),
|
|
13
|
-
accessTypes: u("not-accessible accessible-for-notify read-only read-create read-write"),
|
|
14
|
-
multiLineStrings: !0
|
|
15
|
-
};
|
|
16
|
-
function L(i) {
|
|
17
|
-
var s = i.keywords || o.keywords, c = i.cmipVerbs || o.cmipVerbs, T = i.compareTypes || o.compareTypes, N = i.status || o.status, d = i.tags || o.tags, f = i.storage || o.storage, m = i.modifier || o.modifier, C = i.accessTypes || o.accessTypes, R = i.multiLineStrings || o.multiLineStrings, y = i.indentStatements !== !1, A = /[\|\^]/, E;
|
|
18
|
-
function D(e, n) {
|
|
19
|
-
var t = e.next();
|
|
20
|
-
if (t == '"' || t == "'")
|
|
21
|
-
return n.tokenize = g(t), n.tokenize(e, n);
|
|
22
|
-
if (/[\[\]\(\){}:=,;]/.test(t))
|
|
23
|
-
return E = t, "punctuation";
|
|
24
|
-
if (t == "-" && e.eat("-"))
|
|
25
|
-
return e.skipToEnd(), "comment";
|
|
26
|
-
if (/\d/.test(t))
|
|
27
|
-
return e.eatWhile(/[\w\.]/), "number";
|
|
28
|
-
if (A.test(t))
|
|
29
|
-
return e.eatWhile(A), "operator";
|
|
30
|
-
e.eatWhile(/[\w\-]/);
|
|
31
|
-
var r = e.current();
|
|
32
|
-
return s.propertyIsEnumerable(r) ? "keyword" : c.propertyIsEnumerable(r) ? "variableName" : T.propertyIsEnumerable(r) ? "atom" : N.propertyIsEnumerable(r) ? "comment" : d.propertyIsEnumerable(r) ? "typeName" : f.propertyIsEnumerable(r) || m.propertyIsEnumerable(r) || C.propertyIsEnumerable(r) ? "modifier" : "variableName";
|
|
33
|
-
}
|
|
34
|
-
function g(e) {
|
|
35
|
-
return function(n, t) {
|
|
36
|
-
for (var r = !1, l, O = !1; (l = n.next()) != null; ) {
|
|
37
|
-
if (l == e && !r) {
|
|
38
|
-
var I = n.peek();
|
|
39
|
-
I && (I = I.toLowerCase(), (I == "b" || I == "h" || I == "o") && n.next()), O = !0;
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
r = !r && l == "\\";
|
|
43
|
-
}
|
|
44
|
-
return (O || !(r || R)) && (t.tokenize = null), "string";
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function p(e, n, t, r, l) {
|
|
48
|
-
this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = l;
|
|
49
|
-
}
|
|
50
|
-
function a(e, n, t) {
|
|
51
|
-
var r = e.indented;
|
|
52
|
-
return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new p(r, n, t, null, e.context);
|
|
53
|
-
}
|
|
54
|
-
function S(e) {
|
|
55
|
-
var n = e.context.type;
|
|
56
|
-
return (n == ")" || n == "]" || n == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
name: "asn1",
|
|
60
|
-
startState: function() {
|
|
61
|
-
return {
|
|
62
|
-
tokenize: null,
|
|
63
|
-
context: new p(-2, 0, "top", !1),
|
|
64
|
-
indented: 0,
|
|
65
|
-
startOfLine: !0
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
token: function(e, n) {
|
|
69
|
-
var t = n.context;
|
|
70
|
-
if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace()) return null;
|
|
71
|
-
E = null;
|
|
72
|
-
var r = (n.tokenize || D)(e, n);
|
|
73
|
-
if (r == "comment") return r;
|
|
74
|
-
if (t.align == null && (t.align = !0), (E == ";" || E == ":" || E == ",") && t.type == "statement")
|
|
75
|
-
S(n);
|
|
76
|
-
else if (E == "{") a(n, e.column(), "}");
|
|
77
|
-
else if (E == "[") a(n, e.column(), "]");
|
|
78
|
-
else if (E == "(") a(n, e.column(), ")");
|
|
79
|
-
else if (E == "}") {
|
|
80
|
-
for (; t.type == "statement"; ) t = S(n);
|
|
81
|
-
for (t.type == "}" && (t = S(n)); t.type == "statement"; ) t = S(n);
|
|
82
|
-
} else E == t.type ? S(n) : y && ((t.type == "}" || t.type == "top") && E != ";" || t.type == "statement" && E == "newstatement") && a(n, e.column(), "statement");
|
|
83
|
-
return n.startOfLine = !1, r;
|
|
84
|
-
},
|
|
85
|
-
languageData: {
|
|
86
|
-
indentOnInput: /^\s*[{}]$/,
|
|
87
|
-
commentTokens: { line: "--" }
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
L as asn1
|
|
93
|
-
};
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
var t = ["exten", "same", "include", "ignorepat", "switch"], o = ["#include", "#exec"], c = [
|
|
2
|
-
"addqueuemember",
|
|
3
|
-
"adsiprog",
|
|
4
|
-
"aelsub",
|
|
5
|
-
"agentlogin",
|
|
6
|
-
"agentmonitoroutgoing",
|
|
7
|
-
"agi",
|
|
8
|
-
"alarmreceiver",
|
|
9
|
-
"amd",
|
|
10
|
-
"answer",
|
|
11
|
-
"authenticate",
|
|
12
|
-
"background",
|
|
13
|
-
"backgrounddetect",
|
|
14
|
-
"bridge",
|
|
15
|
-
"busy",
|
|
16
|
-
"callcompletioncancel",
|
|
17
|
-
"callcompletionrequest",
|
|
18
|
-
"celgenuserevent",
|
|
19
|
-
"changemonitor",
|
|
20
|
-
"chanisavail",
|
|
21
|
-
"channelredirect",
|
|
22
|
-
"chanspy",
|
|
23
|
-
"clearhash",
|
|
24
|
-
"confbridge",
|
|
25
|
-
"congestion",
|
|
26
|
-
"continuewhile",
|
|
27
|
-
"controlplayback",
|
|
28
|
-
"dahdiacceptr2call",
|
|
29
|
-
"dahdibarge",
|
|
30
|
-
"dahdiras",
|
|
31
|
-
"dahdiscan",
|
|
32
|
-
"dahdisendcallreroutingfacility",
|
|
33
|
-
"dahdisendkeypadfacility",
|
|
34
|
-
"datetime",
|
|
35
|
-
"dbdel",
|
|
36
|
-
"dbdeltree",
|
|
37
|
-
"deadagi",
|
|
38
|
-
"dial",
|
|
39
|
-
"dictate",
|
|
40
|
-
"directory",
|
|
41
|
-
"disa",
|
|
42
|
-
"dumpchan",
|
|
43
|
-
"eagi",
|
|
44
|
-
"echo",
|
|
45
|
-
"endwhile",
|
|
46
|
-
"exec",
|
|
47
|
-
"execif",
|
|
48
|
-
"execiftime",
|
|
49
|
-
"exitwhile",
|
|
50
|
-
"extenspy",
|
|
51
|
-
"externalivr",
|
|
52
|
-
"festival",
|
|
53
|
-
"flash",
|
|
54
|
-
"followme",
|
|
55
|
-
"forkcdr",
|
|
56
|
-
"getcpeid",
|
|
57
|
-
"gosub",
|
|
58
|
-
"gosubif",
|
|
59
|
-
"goto",
|
|
60
|
-
"gotoif",
|
|
61
|
-
"gotoiftime",
|
|
62
|
-
"hangup",
|
|
63
|
-
"iax2provision",
|
|
64
|
-
"ices",
|
|
65
|
-
"importvar",
|
|
66
|
-
"incomplete",
|
|
67
|
-
"ivrdemo",
|
|
68
|
-
"jabberjoin",
|
|
69
|
-
"jabberleave",
|
|
70
|
-
"jabbersend",
|
|
71
|
-
"jabbersendgroup",
|
|
72
|
-
"jabberstatus",
|
|
73
|
-
"jack",
|
|
74
|
-
"log",
|
|
75
|
-
"macro",
|
|
76
|
-
"macroexclusive",
|
|
77
|
-
"macroexit",
|
|
78
|
-
"macroif",
|
|
79
|
-
"mailboxexists",
|
|
80
|
-
"meetme",
|
|
81
|
-
"meetmeadmin",
|
|
82
|
-
"meetmechanneladmin",
|
|
83
|
-
"meetmecount",
|
|
84
|
-
"milliwatt",
|
|
85
|
-
"minivmaccmess",
|
|
86
|
-
"minivmdelete",
|
|
87
|
-
"minivmgreet",
|
|
88
|
-
"minivmmwi",
|
|
89
|
-
"minivmnotify",
|
|
90
|
-
"minivmrecord",
|
|
91
|
-
"mixmonitor",
|
|
92
|
-
"monitor",
|
|
93
|
-
"morsecode",
|
|
94
|
-
"mp3player",
|
|
95
|
-
"mset",
|
|
96
|
-
"musiconhold",
|
|
97
|
-
"nbscat",
|
|
98
|
-
"nocdr",
|
|
99
|
-
"noop",
|
|
100
|
-
"odbc",
|
|
101
|
-
"odbc",
|
|
102
|
-
"odbcfinish",
|
|
103
|
-
"originate",
|
|
104
|
-
"ospauth",
|
|
105
|
-
"ospfinish",
|
|
106
|
-
"osplookup",
|
|
107
|
-
"ospnext",
|
|
108
|
-
"page",
|
|
109
|
-
"park",
|
|
110
|
-
"parkandannounce",
|
|
111
|
-
"parkedcall",
|
|
112
|
-
"pausemonitor",
|
|
113
|
-
"pausequeuemember",
|
|
114
|
-
"pickup",
|
|
115
|
-
"pickupchan",
|
|
116
|
-
"playback",
|
|
117
|
-
"playtones",
|
|
118
|
-
"privacymanager",
|
|
119
|
-
"proceeding",
|
|
120
|
-
"progress",
|
|
121
|
-
"queue",
|
|
122
|
-
"queuelog",
|
|
123
|
-
"raiseexception",
|
|
124
|
-
"read",
|
|
125
|
-
"readexten",
|
|
126
|
-
"readfile",
|
|
127
|
-
"receivefax",
|
|
128
|
-
"receivefax",
|
|
129
|
-
"receivefax",
|
|
130
|
-
"record",
|
|
131
|
-
"removequeuemember",
|
|
132
|
-
"resetcdr",
|
|
133
|
-
"retrydial",
|
|
134
|
-
"return",
|
|
135
|
-
"ringing",
|
|
136
|
-
"sayalpha",
|
|
137
|
-
"saycountedadj",
|
|
138
|
-
"saycountednoun",
|
|
139
|
-
"saycountpl",
|
|
140
|
-
"saydigits",
|
|
141
|
-
"saynumber",
|
|
142
|
-
"sayphonetic",
|
|
143
|
-
"sayunixtime",
|
|
144
|
-
"senddtmf",
|
|
145
|
-
"sendfax",
|
|
146
|
-
"sendfax",
|
|
147
|
-
"sendfax",
|
|
148
|
-
"sendimage",
|
|
149
|
-
"sendtext",
|
|
150
|
-
"sendurl",
|
|
151
|
-
"set",
|
|
152
|
-
"setamaflags",
|
|
153
|
-
"setcallerpres",
|
|
154
|
-
"setmusiconhold",
|
|
155
|
-
"sipaddheader",
|
|
156
|
-
"sipdtmfmode",
|
|
157
|
-
"sipremoveheader",
|
|
158
|
-
"skel",
|
|
159
|
-
"slastation",
|
|
160
|
-
"slatrunk",
|
|
161
|
-
"sms",
|
|
162
|
-
"softhangup",
|
|
163
|
-
"speechactivategrammar",
|
|
164
|
-
"speechbackground",
|
|
165
|
-
"speechcreate",
|
|
166
|
-
"speechdeactivategrammar",
|
|
167
|
-
"speechdestroy",
|
|
168
|
-
"speechloadgrammar",
|
|
169
|
-
"speechprocessingsound",
|
|
170
|
-
"speechstart",
|
|
171
|
-
"speechunloadgrammar",
|
|
172
|
-
"stackpop",
|
|
173
|
-
"startmusiconhold",
|
|
174
|
-
"stopmixmonitor",
|
|
175
|
-
"stopmonitor",
|
|
176
|
-
"stopmusiconhold",
|
|
177
|
-
"stopplaytones",
|
|
178
|
-
"system",
|
|
179
|
-
"testclient",
|
|
180
|
-
"testserver",
|
|
181
|
-
"transfer",
|
|
182
|
-
"tryexec",
|
|
183
|
-
"trysystem",
|
|
184
|
-
"unpausemonitor",
|
|
185
|
-
"unpausequeuemember",
|
|
186
|
-
"userevent",
|
|
187
|
-
"verbose",
|
|
188
|
-
"vmauthenticate",
|
|
189
|
-
"vmsayname",
|
|
190
|
-
"voicemail",
|
|
191
|
-
"voicemailmain",
|
|
192
|
-
"wait",
|
|
193
|
-
"waitexten",
|
|
194
|
-
"waitfornoise",
|
|
195
|
-
"waitforring",
|
|
196
|
-
"waitforsilence",
|
|
197
|
-
"waitmusiconhold",
|
|
198
|
-
"waituntil",
|
|
199
|
-
"while",
|
|
200
|
-
"zapateller"
|
|
201
|
-
];
|
|
202
|
-
function l(e, n) {
|
|
203
|
-
var i = "", a = e.next();
|
|
204
|
-
if (n.blockComment)
|
|
205
|
-
return a == "-" && e.match("-;", !0) ? n.blockComment = !1 : e.skipTo("--;") ? (e.next(), e.next(), e.next(), n.blockComment = !1) : e.skipToEnd(), "comment";
|
|
206
|
-
if (a == ";")
|
|
207
|
-
return e.match("--", !0) && !e.match("-", !1) ? (n.blockComment = !0, "comment") : (e.skipToEnd(), "comment");
|
|
208
|
-
if (a == "[")
|
|
209
|
-
return e.skipTo("]"), e.eat("]"), "header";
|
|
210
|
-
if (a == '"')
|
|
211
|
-
return e.skipTo('"'), "string";
|
|
212
|
-
if (a == "'")
|
|
213
|
-
return e.skipTo("'"), "string.special";
|
|
214
|
-
if (a == "#" && (e.eatWhile(/\w/), i = e.current(), o.indexOf(i) !== -1))
|
|
215
|
-
return e.skipToEnd(), "strong";
|
|
216
|
-
if (a == "$") {
|
|
217
|
-
var r = e.peek();
|
|
218
|
-
if (r == "{")
|
|
219
|
-
return e.skipTo("}"), e.eat("}"), "variableName.special";
|
|
220
|
-
}
|
|
221
|
-
if (e.eatWhile(/\w/), i = e.current(), t.indexOf(i) !== -1) {
|
|
222
|
-
switch (n.extenStart = !0, i) {
|
|
223
|
-
case "same":
|
|
224
|
-
n.extenSame = !0;
|
|
225
|
-
break;
|
|
226
|
-
case "include":
|
|
227
|
-
case "switch":
|
|
228
|
-
case "ignorepat":
|
|
229
|
-
n.extenInclude = !0;
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
return "atom";
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
const s = {
|
|
236
|
-
name: "asterisk",
|
|
237
|
-
startState: function() {
|
|
238
|
-
return {
|
|
239
|
-
blockComment: !1,
|
|
240
|
-
extenStart: !1,
|
|
241
|
-
extenSame: !1,
|
|
242
|
-
extenInclude: !1,
|
|
243
|
-
extenExten: !1,
|
|
244
|
-
extenPriority: !1,
|
|
245
|
-
extenApplication: !1
|
|
246
|
-
};
|
|
247
|
-
},
|
|
248
|
-
token: function(e, n) {
|
|
249
|
-
var i = "";
|
|
250
|
-
if (e.eatSpace()) return null;
|
|
251
|
-
if (n.extenStart)
|
|
252
|
-
return e.eatWhile(/[^\s]/), i = e.current(), /^=>?$/.test(i) ? (n.extenExten = !0, n.extenStart = !1, "strong") : (n.extenStart = !1, e.skipToEnd(), "error");
|
|
253
|
-
if (n.extenExten)
|
|
254
|
-
return n.extenExten = !1, n.extenPriority = !0, e.eatWhile(/[^,]/), n.extenInclude && (e.skipToEnd(), n.extenPriority = !1, n.extenInclude = !1), n.extenSame && (n.extenPriority = !1, n.extenSame = !1, n.extenApplication = !0), "tag";
|
|
255
|
-
if (n.extenPriority)
|
|
256
|
-
return n.extenPriority = !1, n.extenApplication = !0, e.next(), n.extenSame ? null : (e.eatWhile(/[^,]/), "number");
|
|
257
|
-
if (n.extenApplication) {
|
|
258
|
-
if (e.eatWhile(/,/), i = e.current(), i === ",") return null;
|
|
259
|
-
if (e.eatWhile(/\w/), i = e.current().toLowerCase(), n.extenApplication = !1, c.indexOf(i) !== -1)
|
|
260
|
-
return "def";
|
|
261
|
-
} else
|
|
262
|
-
return l(e, n);
|
|
263
|
-
return null;
|
|
264
|
-
},
|
|
265
|
-
languageData: {
|
|
266
|
-
commentTokens: { line: ";", block: { open: ";--", close: "--;" } }
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
export {
|
|
270
|
-
s as asterisk
|
|
271
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var f = "><+-.,[]".split("");
|
|
2
|
-
const r = {
|
|
3
|
-
name: "brainfuck",
|
|
4
|
-
startState: function() {
|
|
5
|
-
return {
|
|
6
|
-
commentLine: !1,
|
|
7
|
-
left: 0,
|
|
8
|
-
right: 0,
|
|
9
|
-
commentLoop: !1
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
token: function(i, n) {
|
|
13
|
-
if (i.eatSpace()) return null;
|
|
14
|
-
i.sol() && (n.commentLine = !1);
|
|
15
|
-
var e = i.next().toString();
|
|
16
|
-
if (f.indexOf(e) !== -1) {
|
|
17
|
-
if (n.commentLine === !0)
|
|
18
|
-
return i.eol() && (n.commentLine = !1), "comment";
|
|
19
|
-
if (e === "]" || e === "[")
|
|
20
|
-
return e === "[" ? n.left++ : n.right++, "bracket";
|
|
21
|
-
if (e === "+" || e === "-")
|
|
22
|
-
return "keyword";
|
|
23
|
-
if (e === "<" || e === ">")
|
|
24
|
-
return "atom";
|
|
25
|
-
if (e === "." || e === ",")
|
|
26
|
-
return "def";
|
|
27
|
-
} else
|
|
28
|
-
return n.commentLine = !0, i.eol() && (n.commentLine = !1), "comment";
|
|
29
|
-
i.eol() && (n.commentLine = !1);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
r as brainfuck
|
|
34
|
-
};
|