86 lines
2.7 KiB
JavaScript
86 lines
2.7 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
|
|
* Module id: 295068
|
|
* 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 = e.languages.parser =
|
|
e.languages.extend("markup", {
|
|
keyword: {
|
|
pattern:
|
|
/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,
|
|
lookbehind: !0,
|
|
},
|
|
variable: {
|
|
pattern:
|
|
/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,
|
|
lookbehind: !0,
|
|
inside: { punctuation: /\.|:+/ },
|
|
},
|
|
function: {
|
|
pattern: /(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,
|
|
lookbehind: !0,
|
|
inside: {
|
|
keyword: { pattern: /(^@)(?:GET_|SET_)/, lookbehind: !0 },
|
|
punctuation: /\.|:+/,
|
|
},
|
|
},
|
|
escape: {
|
|
pattern: /\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,
|
|
alias: "builtin",
|
|
},
|
|
punctuation: /[\[\](){};]/,
|
|
})),
|
|
(t = e.languages.insertBefore("parser", "keyword", {
|
|
"parser-comment": {
|
|
pattern: /(\s)#.*/,
|
|
lookbehind: !0,
|
|
alias: "comment",
|
|
},
|
|
expression: {
|
|
pattern: /(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,
|
|
greedy: !0,
|
|
lookbehind: !0,
|
|
inside: {
|
|
string: {
|
|
pattern: /(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,
|
|
lookbehind: !0,
|
|
},
|
|
keyword: t.keyword,
|
|
variable: t.variable,
|
|
function: t.function,
|
|
boolean: /\b(?:false|true)\b/,
|
|
number: /\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,
|
|
escape: t.escape,
|
|
operator:
|
|
/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,
|
|
punctuation: t.punctuation,
|
|
},
|
|
},
|
|
})),
|
|
e.languages.insertBefore(
|
|
"inside",
|
|
"punctuation",
|
|
{
|
|
expression: t.expression,
|
|
keyword: t.keyword,
|
|
variable: t.variable,
|
|
function: t.function,
|
|
escape: t.escape,
|
|
"parser-punctuation": {
|
|
pattern: t.punctuation,
|
|
alias: "punctuation",
|
|
},
|
|
},
|
|
t.tag.inside["attr-value"],
|
|
);
|
|
}
|
|
(t.exports = r), (r.displayName = "parser"), (r.aliases = []);
|
|
};
|
|
|
|
export default moduleFactory;
|