91 lines
2.7 KiB
JavaScript
91 lines
2.7 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 600014
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
var t, i, r, a, n;
|
|
(t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }),
|
|
(a = RegExp(
|
|
(r =
|
|
"(?:[^\\\\-]|" +
|
|
(i =
|
|
/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/)
|
|
.source +
|
|
")") +
|
|
"-" +
|
|
r,
|
|
)),
|
|
(n = {
|
|
pattern: /(<|')[^<>']+(?=[>']$)/,
|
|
lookbehind: !0,
|
|
alias: "variable",
|
|
}),
|
|
(e.languages.regex = {
|
|
"char-class": {
|
|
pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,
|
|
lookbehind: !0,
|
|
inside: {
|
|
"char-class-negation": {
|
|
pattern: /(^\[)\^/,
|
|
lookbehind: !0,
|
|
alias: "operator",
|
|
},
|
|
"char-class-punctuation": {
|
|
pattern: /^\[|\]$/,
|
|
alias: "punctuation",
|
|
},
|
|
range: {
|
|
pattern: a,
|
|
inside: {
|
|
escape: i,
|
|
"range-punctuation": { pattern: /-/, alias: "operator" },
|
|
},
|
|
},
|
|
"special-escape": t,
|
|
"char-set": {
|
|
pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
|
|
alias: "class-name",
|
|
},
|
|
escape: i,
|
|
},
|
|
},
|
|
"special-escape": t,
|
|
"char-set": {
|
|
pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
|
|
alias: "class-name",
|
|
},
|
|
backreference: [
|
|
{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" },
|
|
{
|
|
pattern: /\\k<[^<>']+>/,
|
|
alias: "keyword",
|
|
inside: { "group-name": n },
|
|
},
|
|
],
|
|
anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" },
|
|
escape: i,
|
|
group: [
|
|
{
|
|
pattern:
|
|
/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,
|
|
alias: "punctuation",
|
|
inside: { "group-name": n },
|
|
},
|
|
{ pattern: /\)/, alias: "punctuation" },
|
|
],
|
|
quantifier: {
|
|
pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,
|
|
alias: "number",
|
|
},
|
|
alternation: { pattern: /\|/, alias: "keyword" },
|
|
});
|
|
}
|
|
(t.exports = r), (r.displayName = "regex"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|