101 lines
3.9 KiB
JavaScript
101 lines
3.9 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 692492
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, i) => {
|
|
"use strict";
|
|
function r(e) {
|
|
var t;
|
|
(t =
|
|
/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/
|
|
.source),
|
|
(e.languages.perl = {
|
|
comment: [
|
|
{ pattern: /(^\s*)=\w[\s\S]*?=cut.*/m, lookbehind: !0, greedy: !0 },
|
|
{ pattern: /(^|[^\\$])#.*/, lookbehind: !0, greedy: !0 },
|
|
],
|
|
string: [
|
|
{
|
|
pattern: RegExp(
|
|
/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source +
|
|
"(?:" +
|
|
[
|
|
/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
|
/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,
|
|
t,
|
|
].join("|") +
|
|
")",
|
|
),
|
|
greedy: !0,
|
|
},
|
|
{ pattern: /("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/, greedy: !0 },
|
|
{ pattern: /'(?:[^'\\\r\n]|\\.)*'/, greedy: !0 },
|
|
],
|
|
regex: [
|
|
{
|
|
pattern: RegExp(
|
|
/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source +
|
|
"(?:" +
|
|
[
|
|
/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
|
/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,
|
|
t,
|
|
].join("|") +
|
|
")" +
|
|
/[msixpodualngc]*/.source,
|
|
),
|
|
greedy: !0,
|
|
},
|
|
{
|
|
pattern: RegExp(
|
|
/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source +
|
|
"(?:" +
|
|
[
|
|
/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/
|
|
.source,
|
|
/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/
|
|
.source,
|
|
t + /\s*/.source + t,
|
|
].join("|") +
|
|
")" +
|
|
/[msixpodualngcer]*/.source,
|
|
),
|
|
lookbehind: !0,
|
|
greedy: !0,
|
|
},
|
|
{
|
|
pattern:
|
|
/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,
|
|
greedy: !0,
|
|
},
|
|
],
|
|
variable: [
|
|
/[&*$@%]\{\^[A-Z]+\}/,
|
|
/[&*$@%]\^[A-Z_]/,
|
|
/[&*$@%]#?(?=\{)/,
|
|
/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,
|
|
/[&*$@%]\d+/,
|
|
/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/,
|
|
],
|
|
filehandle: { pattern: /<(?![<=])\S*?>|\b_\b/, alias: "symbol" },
|
|
"v-string": {
|
|
pattern: /v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,
|
|
alias: "string",
|
|
},
|
|
function: { pattern: /(\bsub[ \t]+)\w+/, lookbehind: !0 },
|
|
keyword:
|
|
/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,
|
|
number:
|
|
/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,
|
|
operator:
|
|
/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,
|
|
punctuation: /[{}[\];(),:]/,
|
|
});
|
|
}
|
|
(t.exports = r), (r.displayName = "perl"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|