@mxmweb/rtext 1.6.14 → 1.6.16

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.
@@ -1,195 +0,0 @@
1
- import { g as l } from "./lib_enter-e1LoilHd.js";
2
- function d(e, r) {
3
- for (var n = 0; n < r.length; n++) {
4
- const t = r[n];
5
- if (typeof t != "string" && !Array.isArray(t)) {
6
- for (const i in t)
7
- if (i !== "default" && !(i in e)) {
8
- const s = Object.getOwnPropertyDescriptor(t, i);
9
- s && Object.defineProperty(e, i, s.get ? s : {
10
- enumerable: !0,
11
- get: () => t[i]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var a = {}, o;
19
- function g() {
20
- return o || (o = 1, (function(e) {
21
- e.languages.ruby = e.languages.extend("clike", {
22
- comment: {
23
- pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
24
- greedy: !0
25
- },
26
- "class-name": {
27
- pattern: /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,
28
- lookbehind: !0,
29
- inside: {
30
- punctuation: /[.\\]/
31
- }
32
- },
33
- keyword: /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,
34
- operator: /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,
35
- punctuation: /[(){}[\].,;]/
36
- }), e.languages.insertBefore("ruby", "operator", {
37
- "double-colon": {
38
- pattern: /::/,
39
- alias: "punctuation"
40
- }
41
- });
42
- var r = {
43
- pattern: /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,
44
- lookbehind: !0,
45
- inside: {
46
- content: {
47
- pattern: /^(#\{)[\s\S]+(?=\}$)/,
48
- lookbehind: !0,
49
- inside: e.languages.ruby
50
- },
51
- delimiter: {
52
- pattern: /^#\{|\}$/,
53
- alias: "punctuation"
54
- }
55
- }
56
- };
57
- delete e.languages.ruby.function;
58
- var n = "(?:" + [
59
- /([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
60
- /\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,
61
- /\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,
62
- /\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,
63
- /<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source
64
- ].join("|") + ")", t = /(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;
65
- e.languages.insertBefore("ruby", "keyword", {
66
- "regex-literal": [
67
- {
68
- pattern: RegExp(/%r/.source + n + /[egimnosux]{0,6}/.source),
69
- greedy: !0,
70
- inside: {
71
- interpolation: r,
72
- regex: /[\s\S]+/
73
- }
74
- },
75
- {
76
- pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
77
- lookbehind: !0,
78
- greedy: !0,
79
- inside: {
80
- interpolation: r,
81
- regex: /[\s\S]+/
82
- }
83
- }
84
- ],
85
- variable: /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
86
- symbol: [
87
- {
88
- pattern: RegExp(/(^|[^:]):/.source + t),
89
- lookbehind: !0,
90
- greedy: !0
91
- },
92
- {
93
- pattern: RegExp(/([\r\n{(,][ \t]*)/.source + t + /(?=:(?!:))/.source),
94
- lookbehind: !0,
95
- greedy: !0
96
- }
97
- ],
98
- "method-definition": {
99
- pattern: /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,
100
- lookbehind: !0,
101
- inside: {
102
- function: /\b\w+$/,
103
- keyword: /^self\b/,
104
- "class-name": /^\w+/,
105
- punctuation: /\./
106
- }
107
- }
108
- }), e.languages.insertBefore("ruby", "string", {
109
- "string-literal": [
110
- {
111
- pattern: RegExp(/%[qQiIwWs]?/.source + n),
112
- greedy: !0,
113
- inside: {
114
- interpolation: r,
115
- string: /[\s\S]+/
116
- }
117
- },
118
- {
119
- pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
120
- greedy: !0,
121
- inside: {
122
- interpolation: r,
123
- string: /[\s\S]+/
124
- }
125
- },
126
- {
127
- pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
128
- alias: "heredoc-string",
129
- greedy: !0,
130
- inside: {
131
- delimiter: {
132
- pattern: /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,
133
- inside: {
134
- symbol: /\b\w+/,
135
- punctuation: /^<<[-~]?/
136
- }
137
- },
138
- interpolation: r,
139
- string: /[\s\S]+/
140
- }
141
- },
142
- {
143
- pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
144
- alias: "heredoc-string",
145
- greedy: !0,
146
- inside: {
147
- delimiter: {
148
- pattern: /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,
149
- inside: {
150
- symbol: /\b\w+/,
151
- punctuation: /^<<[-~]?'|'$/
152
- }
153
- },
154
- string: /[\s\S]+/
155
- }
156
- }
157
- ],
158
- "command-literal": [
159
- {
160
- pattern: RegExp(/%x/.source + n),
161
- greedy: !0,
162
- inside: {
163
- interpolation: r,
164
- command: {
165
- pattern: /[\s\S]+/,
166
- alias: "string"
167
- }
168
- }
169
- },
170
- {
171
- pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,
172
- greedy: !0,
173
- inside: {
174
- interpolation: r,
175
- command: {
176
- pattern: /[\s\S]+/,
177
- alias: "string"
178
- }
179
- }
180
- }
181
- ]
182
- }), delete e.languages.ruby.string, e.languages.insertBefore("ruby", "number", {
183
- builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
184
- constant: /\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/
185
- }), e.languages.rb = e.languages.ruby;
186
- })(Prism)), a;
187
- }
188
- var u = g();
189
- const p = /* @__PURE__ */ l(u), b = /* @__PURE__ */ d({
190
- __proto__: null,
191
- default: p
192
- }, [u]);
193
- export {
194
- b as p
195
- };
@@ -1,144 +0,0 @@
1
- import { g as l } from "./lib_enter-e1LoilHd.js";
2
- function p(e, t) {
3
- for (var r = 0; r < t.length; r++) {
4
- const a = t[r];
5
- if (typeof a != "string" && !Array.isArray(a)) {
6
- for (const n in a)
7
- if (n !== "default" && !(n in e)) {
8
- const s = Object.getOwnPropertyDescriptor(a, n);
9
- s && Object.defineProperty(e, n, s.get ? s : {
10
- enumerable: !0,
11
- get: () => a[n]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var i = {}, u;
19
- function c() {
20
- return u || (u = 1, (function(e) {
21
- for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
22
- t = t.replace(/<self>/g, function() {
23
- return t;
24
- });
25
- t = t.replace(/<self>/g, function() {
26
- return /[^\s\S]/.source;
27
- }), e.languages.rust = {
28
- comment: [
29
- {
30
- pattern: RegExp(/(^|[^\\])/.source + t),
31
- lookbehind: !0,
32
- greedy: !0
33
- },
34
- {
35
- pattern: /(^|[^\\:])\/\/.*/,
36
- lookbehind: !0,
37
- greedy: !0
38
- }
39
- ],
40
- string: {
41
- pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,
42
- greedy: !0
43
- },
44
- char: {
45
- pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,
46
- greedy: !0
47
- },
48
- attribute: {
49
- pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,
50
- greedy: !0,
51
- alias: "attr-name",
52
- inside: {
53
- string: null
54
- // see below
55
- }
56
- },
57
- // Closure params should not be confused with bitwise OR |
58
- "closure-params": {
59
- pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,
60
- lookbehind: !0,
61
- greedy: !0,
62
- inside: {
63
- "closure-punctuation": {
64
- pattern: /^\||\|$/,
65
- alias: "punctuation"
66
- },
67
- rest: null
68
- // see below
69
- }
70
- },
71
- "lifetime-annotation": {
72
- pattern: /'\w+/,
73
- alias: "symbol"
74
- },
75
- "fragment-specifier": {
76
- pattern: /(\$\w+:)[a-z]+/,
77
- lookbehind: !0,
78
- alias: "punctuation"
79
- },
80
- variable: /\$\w+/,
81
- "function-definition": {
82
- pattern: /(\bfn\s+)\w+/,
83
- lookbehind: !0,
84
- alias: "function"
85
- },
86
- "type-definition": {
87
- pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/,
88
- lookbehind: !0,
89
- alias: "class-name"
90
- },
91
- "module-declaration": [
92
- {
93
- pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,
94
- lookbehind: !0,
95
- alias: "namespace"
96
- },
97
- {
98
- pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,
99
- lookbehind: !0,
100
- alias: "namespace",
101
- inside: {
102
- punctuation: /::/
103
- }
104
- }
105
- ],
106
- keyword: [
107
- // https://github.com/rust-lang/reference/blob/master/src/keywords.md
108
- /\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,
109
- // primitives and str
110
- // https://doc.rust-lang.org/stable/rust-by-example/primitives.html
111
- /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/
112
- ],
113
- // functions can technically start with an upper-case letter, but this will introduce a lot of false positives
114
- // and Rust's naming conventions recommend snake_case anyway.
115
- // https://doc.rust-lang.org/1.0.0/style/style/naming/README.html
116
- function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,
117
- macro: {
118
- pattern: /\b\w+!/,
119
- alias: "property"
120
- },
121
- constant: /\b[A-Z_][A-Z_\d]+\b/,
122
- "class-name": /\b[A-Z]\w*\b/,
123
- namespace: {
124
- pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,
125
- inside: {
126
- punctuation: /::/
127
- }
128
- },
129
- // Hex, oct, bin, dec numbers with visual separators and type suffix
130
- number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
131
- boolean: /\b(?:false|true)\b/,
132
- punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
133
- operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
134
- }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
135
- })(Prism)), i;
136
- }
137
- var o = c();
138
- const d = /* @__PURE__ */ l(o), f = /* @__PURE__ */ p({
139
- __proto__: null,
140
- default: d
141
- }, [o]);
142
- export {
143
- f as p
144
- };
@@ -1,33 +0,0 @@
1
- Prism.languages.sql = {
2
- comment: {
3
- pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
4
- lookbehind: !0
5
- },
6
- variable: [
7
- {
8
- pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
9
- greedy: !0
10
- },
11
- /@[\w.$]+/
12
- ],
13
- string: {
14
- pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
15
- greedy: !0,
16
- lookbehind: !0
17
- },
18
- identifier: {
19
- pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
20
- greedy: !0,
21
- lookbehind: !0,
22
- inside: {
23
- punctuation: /^`|`$/
24
- }
25
- },
26
- function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
27
- // Should we highlight user defined functions too?
28
- keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
29
- boolean: /\b(?:FALSE|NULL|TRUE)\b/i,
30
- number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
31
- operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
32
- punctuation: /[;[\]()`,.]/
33
- };
@@ -1,113 +0,0 @@
1
- Prism.languages.swift = {
2
- comment: {
3
- // Nested comments are supported up to 2 levels
4
- pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,
5
- lookbehind: !0,
6
- greedy: !0
7
- },
8
- "string-literal": [
9
- // https://docs.swift.org/swift-book/LanguageGuide/StringsAndCharacters.html
10
- {
11
- pattern: RegExp(
12
- /(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source
13
- ),
14
- lookbehind: !0,
15
- greedy: !0,
16
- inside: {
17
- interpolation: {
18
- pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/,
19
- lookbehind: !0,
20
- inside: null
21
- // see below
22
- },
23
- "interpolation-punctuation": {
24
- pattern: /^\)|\\\($/,
25
- alias: "punctuation"
26
- },
27
- punctuation: /\\(?=[\r\n])/,
28
- string: /[\s\S]+/
29
- }
30
- },
31
- {
32
- pattern: RegExp(
33
- /(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"
34
- ),
35
- lookbehind: !0,
36
- greedy: !0,
37
- inside: {
38
- interpolation: {
39
- pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,
40
- lookbehind: !0,
41
- inside: null
42
- // see below
43
- },
44
- "interpolation-punctuation": {
45
- pattern: /^\)|\\#+\($/,
46
- alias: "punctuation"
47
- },
48
- string: /[\s\S]+/
49
- }
50
- }
51
- ],
52
- directive: {
53
- // directives with conditions
54
- pattern: RegExp(
55
- /#/.source + "(?:" + (/(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+") + "|" + /(?:else|endif)\b/.source + ")"
56
- ),
57
- alias: "property",
58
- inside: {
59
- "directive-name": /^#\w+/,
60
- boolean: /\b(?:false|true)\b/,
61
- number: /\b\d+(?:\.\d+)*\b/,
62
- operator: /!|&&|\|\||[<>]=?/,
63
- punctuation: /[(),]/
64
- }
65
- },
66
- literal: {
67
- pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,
68
- alias: "constant"
69
- },
70
- "other-directive": {
71
- pattern: /#\w+\b/,
72
- alias: "property"
73
- },
74
- attribute: {
75
- pattern: /@\w+/,
76
- alias: "atrule"
77
- },
78
- "function-definition": {
79
- pattern: /(\bfunc\s+)\w+/,
80
- lookbehind: !0,
81
- alias: "function"
82
- },
83
- label: {
84
- // https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html#ID141
85
- pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,
86
- lookbehind: !0,
87
- alias: "important"
88
- },
89
- keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,
90
- boolean: /\b(?:false|true)\b/,
91
- nil: {
92
- pattern: /\bnil\b/,
93
- alias: "constant"
94
- },
95
- "short-argument": /\$\d+\b/,
96
- omit: {
97
- pattern: /\b_\b/,
98
- alias: "keyword"
99
- },
100
- number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,
101
- // A class name must start with an upper-case letter and be either 1 letter long or contain a lower-case letter.
102
- "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,
103
- function: /\b[a-z_]\w*(?=\s*\()/i,
104
- constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,
105
- // Operators are generic in Swift. Developers can even create new operators (e.g. +++).
106
- // https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html#ID481
107
- // This regex only supports ASCII operators.
108
- operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,
109
- punctuation: /[{}[\]();,.:\\]/
110
- };
111
- Prism.languages.swift["string-literal"].forEach(function(e) {
112
- e.inside.interpolation.inside = Prism.languages.swift;
113
- });
@@ -1,6 +0,0 @@
1
- (function(e) {
2
- var a = e.util.clone(e.languages.typescript);
3
- e.languages.tsx = e.languages.extend("jsx", a), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
4
- var t = e.languages.tsx.tag;
5
- t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
6
- })(Prism);
@@ -1,73 +0,0 @@
1
- import { g as c } from "./lib_enter-e1LoilHd.js";
2
- function u(e, t) {
3
- for (var n = 0; n < t.length; n++) {
4
- const r = t[n];
5
- if (typeof r != "string" && !Array.isArray(r)) {
6
- for (const s in r)
7
- if (s !== "default" && !(s in e)) {
8
- const a = Object.getOwnPropertyDescriptor(r, s);
9
- a && Object.defineProperty(e, s, a.get ? a : {
10
- enumerable: !0,
11
- get: () => r[s]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var i = {}, p;
19
- function l() {
20
- return p || (p = 1, (function(e) {
21
- e.languages.typescript = e.languages.extend("javascript", {
22
- "class-name": {
23
- pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
24
- lookbehind: !0,
25
- greedy: !0,
26
- inside: null
27
- // see below
28
- },
29
- builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
30
- }), e.languages.typescript.keyword.push(
31
- /\b(?:abstract|declare|is|keyof|readonly|require)\b/,
32
- // keywords that have to be followed by an identifier
33
- /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
34
- // This is for `import type *, {}`
35
- /\btype\b(?=\s*(?:[\{*]|$))/
36
- ), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
37
- var t = e.languages.extend("typescript", {});
38
- delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", {
39
- decorator: {
40
- pattern: /@[$\w\xA0-\uFFFF]+/,
41
- inside: {
42
- at: {
43
- pattern: /^@/,
44
- alias: "operator"
45
- },
46
- function: /^[\s\S]+/
47
- }
48
- },
49
- "generic-function": {
50
- // e.g. foo<T extends "bar" | "baz">( ...
51
- pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
52
- greedy: !0,
53
- inside: {
54
- function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
55
- generic: {
56
- pattern: /<[\s\S]+/,
57
- // everything after the first <
58
- alias: "class-name",
59
- inside: t
60
- }
61
- }
62
- }
63
- }), e.languages.ts = e.languages.typescript;
64
- })(Prism)), i;
65
- }
66
- var o = l();
67
- const g = /* @__PURE__ */ c(o), F = /* @__PURE__ */ u({
68
- __proto__: null,
69
- default: g
70
- }, [o]);
71
- export {
72
- F as p
73
- };
@@ -1,66 +0,0 @@
1
- (function(r) {
2
- var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, a = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", d = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
3
- return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
4
- }), o = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
5
- function e(i, u) {
6
- u = (u || "").replace(/m/g, "") + "m";
7
- var p = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
8
- return a;
9
- }).replace(/<<value>>/g, function() {
10
- return i;
11
- });
12
- return RegExp(p, u);
13
- }
14
- r.languages.yaml = {
15
- scalar: {
16
- pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
17
- return a;
18
- })),
19
- lookbehind: !0,
20
- alias: "string"
21
- },
22
- comment: /#.*/,
23
- key: {
24
- pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
25
- return a;
26
- }).replace(/<<key>>/g, function() {
27
- return "(?:" + d + "|" + o + ")";
28
- })),
29
- lookbehind: !0,
30
- greedy: !0,
31
- alias: "atrule"
32
- },
33
- directive: {
34
- pattern: /(^[ \t]*)%.+/m,
35
- lookbehind: !0,
36
- alias: "important"
37
- },
38
- datetime: {
39
- pattern: e(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
40
- lookbehind: !0,
41
- alias: "number"
42
- },
43
- boolean: {
44
- pattern: e(/false|true/.source, "i"),
45
- lookbehind: !0,
46
- alias: "important"
47
- },
48
- null: {
49
- pattern: e(/null|~/.source, "i"),
50
- lookbehind: !0,
51
- alias: "important"
52
- },
53
- string: {
54
- pattern: e(o),
55
- lookbehind: !0,
56
- greedy: !0
57
- },
58
- number: {
59
- pattern: e(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
60
- lookbehind: !0
61
- },
62
- tag: n,
63
- important: t,
64
- punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
65
- }, r.languages.yml = r.languages.yaml;
66
- })(Prism);