@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.
- package/index.js +31715 -14
- package/package.json +1 -1
- package/stats.html +1 -1
- package/lib_enter-e1LoilHd.js +0 -31772
- package/prism-bash-zSjFhtUz.js +0 -219
- package/prism-c-CXS5tkeN.js +0 -76
- package/prism-cpp-DTm5qrps.js +0 -113
- package/prism-css-3Jya3wSQ.js +0 -55
- package/prism-diff-Apx1lkH_.js +0 -42
- package/prism-go-CHuRSSd-.js +0 -26
- package/prism-java-l04-K_JR.js +0 -142
- package/prism-javascript-CLux6jF8.js +0 -137
- package/prism-json-iVb7He6L.js +0 -25
- package/prism-jsx-yfun9EDN.js +0 -51
- package/prism-kotlin-QHMLy1lI.js +0 -75
- package/prism-markdown-tjNeCMi3.js +0 -300
- package/prism-markup-BNGj0Tvm.js +0 -173
- package/prism-php-Cq3Hq1Wv.js +0 -347
- package/prism-python-CP37PFZv.js +0 -89
- package/prism-ruby-DcAmdHPZ.js +0 -195
- package/prism-rust-CuWIv8B8.js +0 -144
- package/prism-sql-8Y2-THrf.js +0 -33
- package/prism-swift-CeDyTyXT.js +0 -113
- package/prism-tsx-D_jjxt3I.js +0 -6
- package/prism-typescript-DSWPRTnC.js +0 -73
- package/prism-yaml-DwdKlmeG.js +0 -66
package/prism-markup-BNGj0Tvm.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
Prism.languages.markup = {
|
|
2
|
-
comment: {
|
|
3
|
-
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
4
|
-
greedy: !0
|
|
5
|
-
},
|
|
6
|
-
prolog: {
|
|
7
|
-
pattern: /<\?[\s\S]+?\?>/,
|
|
8
|
-
greedy: !0
|
|
9
|
-
},
|
|
10
|
-
doctype: {
|
|
11
|
-
// https://www.w3.org/TR/xml/#NT-doctypedecl
|
|
12
|
-
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
13
|
-
greedy: !0,
|
|
14
|
-
inside: {
|
|
15
|
-
"internal-subset": {
|
|
16
|
-
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
17
|
-
lookbehind: !0,
|
|
18
|
-
greedy: !0,
|
|
19
|
-
inside: null
|
|
20
|
-
// see below
|
|
21
|
-
},
|
|
22
|
-
string: {
|
|
23
|
-
pattern: /"[^"]*"|'[^']*'/,
|
|
24
|
-
greedy: !0
|
|
25
|
-
},
|
|
26
|
-
punctuation: /^<!|>$|[[\]]/,
|
|
27
|
-
"doctype-tag": /^DOCTYPE/i,
|
|
28
|
-
name: /[^\s<>'"]+/
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
cdata: {
|
|
32
|
-
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
33
|
-
greedy: !0
|
|
34
|
-
},
|
|
35
|
-
tag: {
|
|
36
|
-
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
37
|
-
greedy: !0,
|
|
38
|
-
inside: {
|
|
39
|
-
tag: {
|
|
40
|
-
pattern: /^<\/?[^\s>\/]+/,
|
|
41
|
-
inside: {
|
|
42
|
-
punctuation: /^<\/?/,
|
|
43
|
-
namespace: /^[^\s>\/:]+:/
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"special-attr": [],
|
|
47
|
-
"attr-value": {
|
|
48
|
-
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
49
|
-
inside: {
|
|
50
|
-
punctuation: [
|
|
51
|
-
{
|
|
52
|
-
pattern: /^=/,
|
|
53
|
-
alias: "attr-equals"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
pattern: /^(\s*)["']|["']$/,
|
|
57
|
-
lookbehind: !0
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
punctuation: /\/?>/,
|
|
63
|
-
"attr-name": {
|
|
64
|
-
pattern: /[^\s>\/]+/,
|
|
65
|
-
inside: {
|
|
66
|
-
namespace: /^[^\s>\/:]+:/
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
entity: [
|
|
72
|
-
{
|
|
73
|
-
pattern: /&[\da-z]{1,8};/i,
|
|
74
|
-
alias: "named-entity"
|
|
75
|
-
},
|
|
76
|
-
/&#x?[\da-f]{1,8};/i
|
|
77
|
-
]
|
|
78
|
-
};
|
|
79
|
-
Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity;
|
|
80
|
-
Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup;
|
|
81
|
-
Prism.hooks.add("wrap", function(e) {
|
|
82
|
-
e.type === "entity" && (e.attributes.title = e.content.replace(/&/, "&"));
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
|
|
85
|
-
/**
|
|
86
|
-
* Adds an inlined language to markup.
|
|
87
|
-
*
|
|
88
|
-
* An example of an inlined language is CSS with `<style>` tags.
|
|
89
|
-
*
|
|
90
|
-
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
91
|
-
* case insensitive.
|
|
92
|
-
* @param {string} lang The language key.
|
|
93
|
-
* @example
|
|
94
|
-
* addInlined('style', 'css');
|
|
95
|
-
*/
|
|
96
|
-
value: function(a, t) {
|
|
97
|
-
var s = {};
|
|
98
|
-
s["language-" + t] = {
|
|
99
|
-
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
100
|
-
lookbehind: !0,
|
|
101
|
-
inside: Prism.languages[t]
|
|
102
|
-
}, s.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
103
|
-
var n = {
|
|
104
|
-
"included-cdata": {
|
|
105
|
-
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
106
|
-
inside: s
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
n["language-" + t] = {
|
|
110
|
-
pattern: /[\s\S]+/,
|
|
111
|
-
inside: Prism.languages[t]
|
|
112
|
-
};
|
|
113
|
-
var i = {};
|
|
114
|
-
i[a] = {
|
|
115
|
-
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
116
|
-
return a;
|
|
117
|
-
}), "i"),
|
|
118
|
-
lookbehind: !0,
|
|
119
|
-
greedy: !0,
|
|
120
|
-
inside: n
|
|
121
|
-
}, Prism.languages.insertBefore("markup", "cdata", i);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
|
|
125
|
-
/**
|
|
126
|
-
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
127
|
-
*
|
|
128
|
-
* An example of an inlined language is CSS with `style` attributes.
|
|
129
|
-
*
|
|
130
|
-
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
131
|
-
* case insensitive.
|
|
132
|
-
* @param {string} lang The language key.
|
|
133
|
-
* @example
|
|
134
|
-
* addAttribute('style', 'css');
|
|
135
|
-
*/
|
|
136
|
-
value: function(e, a) {
|
|
137
|
-
Prism.languages.markup.tag.inside["special-attr"].push({
|
|
138
|
-
pattern: RegExp(
|
|
139
|
-
/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
140
|
-
"i"
|
|
141
|
-
),
|
|
142
|
-
lookbehind: !0,
|
|
143
|
-
inside: {
|
|
144
|
-
"attr-name": /^[^\s=]+/,
|
|
145
|
-
"attr-value": {
|
|
146
|
-
pattern: /=[\s\S]+/,
|
|
147
|
-
inside: {
|
|
148
|
-
value: {
|
|
149
|
-
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
150
|
-
lookbehind: !0,
|
|
151
|
-
alias: [a, "language-" + a],
|
|
152
|
-
inside: Prism.languages[a]
|
|
153
|
-
},
|
|
154
|
-
punctuation: [
|
|
155
|
-
{
|
|
156
|
-
pattern: /^=/,
|
|
157
|
-
alias: "attr-equals"
|
|
158
|
-
},
|
|
159
|
-
/"|'/
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
Prism.languages.html = Prism.languages.markup;
|
|
168
|
-
Prism.languages.mathml = Prism.languages.markup;
|
|
169
|
-
Prism.languages.svg = Prism.languages.markup;
|
|
170
|
-
Prism.languages.xml = Prism.languages.extend("markup", {});
|
|
171
|
-
Prism.languages.ssml = Prism.languages.xml;
|
|
172
|
-
Prism.languages.atom = Prism.languages.xml;
|
|
173
|
-
Prism.languages.rss = Prism.languages.xml;
|
package/prism-php-Cq3Hq1Wv.js
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { g as c } from "./lib_enter-e1LoilHd.js";
|
|
2
|
-
function f(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 a in t)
|
|
7
|
-
if (a !== "default" && !(a in e)) {
|
|
8
|
-
const i = Object.getOwnPropertyDescriptor(t, a);
|
|
9
|
-
i && Object.defineProperty(e, a, i.get ? i : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => t[a]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var u = {}, d;
|
|
19
|
-
function g() {
|
|
20
|
-
return d || (d = 1, (function(e) {
|
|
21
|
-
var r = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, n = [
|
|
22
|
-
{
|
|
23
|
-
pattern: /\b(?:false|true)\b/i,
|
|
24
|
-
alias: "boolean"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,
|
|
28
|
-
greedy: !0,
|
|
29
|
-
lookbehind: !0
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,
|
|
33
|
-
greedy: !0,
|
|
34
|
-
lookbehind: !0
|
|
35
|
-
},
|
|
36
|
-
/\b(?:null)\b/i,
|
|
37
|
-
/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/
|
|
38
|
-
], t = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, a = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/, i = /[{}\[\](),:;]/;
|
|
39
|
-
e.languages.php = {
|
|
40
|
-
delimiter: {
|
|
41
|
-
pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
|
|
42
|
-
alias: "important"
|
|
43
|
-
},
|
|
44
|
-
comment: r,
|
|
45
|
-
variable: /\$+(?:\w+\b|(?=\{))/,
|
|
46
|
-
package: {
|
|
47
|
-
pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
|
48
|
-
lookbehind: !0,
|
|
49
|
-
inside: {
|
|
50
|
-
punctuation: /\\/
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"class-name-definition": {
|
|
54
|
-
pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
|
|
55
|
-
lookbehind: !0,
|
|
56
|
-
alias: "class-name"
|
|
57
|
-
},
|
|
58
|
-
"function-definition": {
|
|
59
|
-
pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
|
|
60
|
-
lookbehind: !0,
|
|
61
|
-
alias: "function"
|
|
62
|
-
},
|
|
63
|
-
keyword: [
|
|
64
|
-
{
|
|
65
|
-
pattern: /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,
|
|
66
|
-
alias: "type-casting",
|
|
67
|
-
greedy: !0,
|
|
68
|
-
lookbehind: !0
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
pattern: /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,
|
|
72
|
-
alias: "type-hint",
|
|
73
|
-
greedy: !0,
|
|
74
|
-
lookbehind: !0
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,
|
|
78
|
-
alias: "return-type",
|
|
79
|
-
greedy: !0,
|
|
80
|
-
lookbehind: !0
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,
|
|
84
|
-
alias: "type-declaration",
|
|
85
|
-
greedy: !0
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,
|
|
89
|
-
alias: "type-declaration",
|
|
90
|
-
greedy: !0,
|
|
91
|
-
lookbehind: !0
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
pattern: /\b(?:parent|self|static)(?=\s*::)/i,
|
|
95
|
-
alias: "static-context",
|
|
96
|
-
greedy: !0
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
// yield from
|
|
100
|
-
pattern: /(\byield\s+)from\b/i,
|
|
101
|
-
lookbehind: !0
|
|
102
|
-
},
|
|
103
|
-
// `class` is always a keyword unlike other keywords
|
|
104
|
-
/\bclass\b/i,
|
|
105
|
-
{
|
|
106
|
-
// https://www.php.net/manual/en/reserved.keywords.php
|
|
107
|
-
//
|
|
108
|
-
// keywords cannot be preceded by "->"
|
|
109
|
-
// the complex lookbehind means `(?<!(?:->|::)\s*)`
|
|
110
|
-
pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,
|
|
111
|
-
lookbehind: !0
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"argument-name": {
|
|
115
|
-
pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,
|
|
116
|
-
lookbehind: !0
|
|
117
|
-
},
|
|
118
|
-
"class-name": [
|
|
119
|
-
{
|
|
120
|
-
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
|
|
121
|
-
greedy: !0,
|
|
122
|
-
lookbehind: !0
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
|
|
126
|
-
greedy: !0,
|
|
127
|
-
lookbehind: !0
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
|
|
131
|
-
greedy: !0
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
|
|
135
|
-
alias: "class-name-fully-qualified",
|
|
136
|
-
greedy: !0,
|
|
137
|
-
lookbehind: !0,
|
|
138
|
-
inside: {
|
|
139
|
-
punctuation: /\\/
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
|
|
144
|
-
alias: "class-name-fully-qualified",
|
|
145
|
-
greedy: !0,
|
|
146
|
-
inside: {
|
|
147
|
-
punctuation: /\\/
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
|
152
|
-
alias: "class-name-fully-qualified",
|
|
153
|
-
greedy: !0,
|
|
154
|
-
lookbehind: !0,
|
|
155
|
-
inside: {
|
|
156
|
-
punctuation: /\\/
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
pattern: /\b[a-z_]\w*(?=\s*\$)/i,
|
|
161
|
-
alias: "type-declaration",
|
|
162
|
-
greedy: !0
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
|
166
|
-
alias: ["class-name-fully-qualified", "type-declaration"],
|
|
167
|
-
greedy: !0,
|
|
168
|
-
inside: {
|
|
169
|
-
punctuation: /\\/
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
pattern: /\b[a-z_]\w*(?=\s*::)/i,
|
|
174
|
-
alias: "static-context",
|
|
175
|
-
greedy: !0
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
|
|
179
|
-
alias: ["class-name-fully-qualified", "static-context"],
|
|
180
|
-
greedy: !0,
|
|
181
|
-
inside: {
|
|
182
|
-
punctuation: /\\/
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
|
|
187
|
-
alias: "type-hint",
|
|
188
|
-
greedy: !0,
|
|
189
|
-
lookbehind: !0
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
|
193
|
-
alias: ["class-name-fully-qualified", "type-hint"],
|
|
194
|
-
greedy: !0,
|
|
195
|
-
lookbehind: !0,
|
|
196
|
-
inside: {
|
|
197
|
-
punctuation: /\\/
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
|
|
202
|
-
alias: "return-type",
|
|
203
|
-
greedy: !0,
|
|
204
|
-
lookbehind: !0
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
|
208
|
-
alias: ["class-name-fully-qualified", "return-type"],
|
|
209
|
-
greedy: !0,
|
|
210
|
-
lookbehind: !0,
|
|
211
|
-
inside: {
|
|
212
|
-
punctuation: /\\/
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
constant: n,
|
|
217
|
-
function: {
|
|
218
|
-
pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
|
|
219
|
-
lookbehind: !0,
|
|
220
|
-
inside: {
|
|
221
|
-
punctuation: /\\/
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
property: {
|
|
225
|
-
pattern: /(->\s*)\w+/,
|
|
226
|
-
lookbehind: !0
|
|
227
|
-
},
|
|
228
|
-
number: t,
|
|
229
|
-
operator: a,
|
|
230
|
-
punctuation: i
|
|
231
|
-
};
|
|
232
|
-
var l = {
|
|
233
|
-
pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
|
|
234
|
-
lookbehind: !0,
|
|
235
|
-
inside: e.languages.php
|
|
236
|
-
}, o = [
|
|
237
|
-
{
|
|
238
|
-
pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
|
|
239
|
-
alias: "nowdoc-string",
|
|
240
|
-
greedy: !0,
|
|
241
|
-
inside: {
|
|
242
|
-
delimiter: {
|
|
243
|
-
pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
|
|
244
|
-
alias: "symbol",
|
|
245
|
-
inside: {
|
|
246
|
-
punctuation: /^<<<'?|[';]$/
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
|
|
253
|
-
alias: "heredoc-string",
|
|
254
|
-
greedy: !0,
|
|
255
|
-
inside: {
|
|
256
|
-
delimiter: {
|
|
257
|
-
pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
|
|
258
|
-
alias: "symbol",
|
|
259
|
-
inside: {
|
|
260
|
-
punctuation: /^<<<"?|[";]$/
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
interpolation: l
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
pattern: /`(?:\\[\s\S]|[^\\`])*`/,
|
|
268
|
-
alias: "backtick-quoted-string",
|
|
269
|
-
greedy: !0
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
|
273
|
-
alias: "single-quoted-string",
|
|
274
|
-
greedy: !0
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
|
278
|
-
alias: "double-quoted-string",
|
|
279
|
-
greedy: !0,
|
|
280
|
-
inside: {
|
|
281
|
-
interpolation: l
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
];
|
|
285
|
-
e.languages.insertBefore("php", "variable", {
|
|
286
|
-
string: o,
|
|
287
|
-
attribute: {
|
|
288
|
-
pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
|
|
289
|
-
greedy: !0,
|
|
290
|
-
inside: {
|
|
291
|
-
"attribute-content": {
|
|
292
|
-
pattern: /^(#\[)[\s\S]+(?=\]$)/,
|
|
293
|
-
lookbehind: !0,
|
|
294
|
-
// inside can appear subset of php
|
|
295
|
-
inside: {
|
|
296
|
-
comment: r,
|
|
297
|
-
string: o,
|
|
298
|
-
"attribute-class-name": [
|
|
299
|
-
{
|
|
300
|
-
pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
|
|
301
|
-
alias: "class-name",
|
|
302
|
-
greedy: !0,
|
|
303
|
-
lookbehind: !0
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
|
|
307
|
-
alias: [
|
|
308
|
-
"class-name",
|
|
309
|
-
"class-name-fully-qualified"
|
|
310
|
-
],
|
|
311
|
-
greedy: !0,
|
|
312
|
-
lookbehind: !0,
|
|
313
|
-
inside: {
|
|
314
|
-
punctuation: /\\/
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
constant: n,
|
|
319
|
-
number: t,
|
|
320
|
-
operator: a,
|
|
321
|
-
punctuation: i
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
delimiter: {
|
|
325
|
-
pattern: /^#\[|\]$/,
|
|
326
|
-
alias: "punctuation"
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}), e.hooks.add("before-tokenize", function(s) {
|
|
331
|
-
if (/<\?/.test(s.code)) {
|
|
332
|
-
var p = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;
|
|
333
|
-
e.languages["markup-templating"].buildPlaceholders(s, "php", p);
|
|
334
|
-
}
|
|
335
|
-
}), e.hooks.add("after-tokenize", function(s) {
|
|
336
|
-
e.languages["markup-templating"].tokenizePlaceholders(s, "php");
|
|
337
|
-
});
|
|
338
|
-
})(Prism)), u;
|
|
339
|
-
}
|
|
340
|
-
var b = g();
|
|
341
|
-
const y = /* @__PURE__ */ c(b), m = /* @__PURE__ */ f({
|
|
342
|
-
__proto__: null,
|
|
343
|
-
default: y
|
|
344
|
-
}, [b]);
|
|
345
|
-
export {
|
|
346
|
-
m as p
|
|
347
|
-
};
|
package/prism-python-CP37PFZv.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { g as p } from "./lib_enter-e1LoilHd.js";
|
|
2
|
-
function u(r, a) {
|
|
3
|
-
for (var n = 0; n < a.length; n++) {
|
|
4
|
-
const e = a[n];
|
|
5
|
-
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
-
for (const t in e)
|
|
7
|
-
if (t !== "default" && !(t in r)) {
|
|
8
|
-
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
9
|
-
i && Object.defineProperty(r, t, i.get ? i : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => e[t]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var o = {}, s;
|
|
19
|
-
function d() {
|
|
20
|
-
return s || (s = 1, Prism.languages.python = {
|
|
21
|
-
comment: {
|
|
22
|
-
pattern: /(^|[^\\])#.*/,
|
|
23
|
-
lookbehind: !0,
|
|
24
|
-
greedy: !0
|
|
25
|
-
},
|
|
26
|
-
"string-interpolation": {
|
|
27
|
-
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
28
|
-
greedy: !0,
|
|
29
|
-
inside: {
|
|
30
|
-
interpolation: {
|
|
31
|
-
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
|
32
|
-
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
33
|
-
lookbehind: !0,
|
|
34
|
-
inside: {
|
|
35
|
-
"format-spec": {
|
|
36
|
-
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
37
|
-
lookbehind: !0
|
|
38
|
-
},
|
|
39
|
-
"conversion-option": {
|
|
40
|
-
pattern: //,
|
|
41
|
-
alias: "punctuation"
|
|
42
|
-
},
|
|
43
|
-
rest: null
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
string: /[\s\S]+/
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"triple-quoted-string": {
|
|
50
|
-
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
51
|
-
greedy: !0,
|
|
52
|
-
alias: "string"
|
|
53
|
-
},
|
|
54
|
-
string: {
|
|
55
|
-
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
56
|
-
greedy: !0
|
|
57
|
-
},
|
|
58
|
-
function: {
|
|
59
|
-
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
60
|
-
lookbehind: !0
|
|
61
|
-
},
|
|
62
|
-
"class-name": {
|
|
63
|
-
pattern: /(\bclass\s+)\w+/i,
|
|
64
|
-
lookbehind: !0
|
|
65
|
-
},
|
|
66
|
-
decorator: {
|
|
67
|
-
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
68
|
-
lookbehind: !0,
|
|
69
|
-
alias: ["annotation", "punctuation"],
|
|
70
|
-
inside: {
|
|
71
|
-
punctuation: /\./
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
75
|
-
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
76
|
-
boolean: /\b(?:False|None|True)\b/,
|
|
77
|
-
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
78
|
-
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
79
|
-
punctuation: /[{}[\];(),.:]/
|
|
80
|
-
}, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python), o;
|
|
81
|
-
}
|
|
82
|
-
var l = d();
|
|
83
|
-
const c = /* @__PURE__ */ p(l), m = /* @__PURE__ */ u({
|
|
84
|
-
__proto__: null,
|
|
85
|
-
default: c
|
|
86
|
-
}, [l]);
|
|
87
|
-
export {
|
|
88
|
-
m as p
|
|
89
|
-
};
|