Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

116 lines
3.5 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 278018
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
var r = e.r(916033);
function a(e) {
e.register(r);
for (
var t =
/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/
.source,
i = 0;
i < 2;
i++
)
t = t.replace(/<expr>/g, function () {
return t;
});
t = t.replace(/<expr>/g, /[^\s\S]/.source);
var a = {
comment: /<#--[\s\S]*?-->/,
string: [
{ pattern: /\br("|')(?:(?!\1)[^\\]|\\.)*\1/, greedy: !0 },
{
pattern: RegExp(
/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(
/<expr>/g,
function () {
return t;
},
),
),
greedy: !0,
inside: {
interpolation: {
pattern: RegExp(
/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(
/<expr>/g,
function () {
return t;
},
),
),
lookbehind: !0,
inside: {
"interpolation-punctuation": {
pattern: /^\$\{|\}$/,
alias: "punctuation",
},
rest: null,
},
},
},
},
],
keyword: /\b(?:as)\b/,
boolean: /\b(?:false|true)\b/,
"builtin-function": {
pattern: /((?:^|[^?])\?\s*)\w+/,
lookbehind: !0,
alias: "function",
},
function: /\b\w+(?=\s*\()/,
number: /\b\d+(?:\.\d+)?\b/,
operator:
/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,
punctuation: /[,;.:()[\]{}]/,
};
(a.string[1].inside.interpolation.inside.rest = a),
(e.languages.ftl = {
"ftl-comment": { pattern: /^<#--[\s\S]*/, alias: "comment" },
"ftl-directive": {
pattern: /^<[\s\S]+>$/,
inside: {
directive: {
pattern: /(^<\/?)[#@][a-z]\w*/i,
lookbehind: !0,
alias: "keyword",
},
punctuation: /^<\/?|\/?>$/,
content: { pattern: /\s*\S[\s\S]*/, alias: "ftl", inside: a },
},
},
"ftl-interpolation": {
pattern: /^\$\{[\s\S]*\}$/,
inside: {
punctuation: /^\$\{|\}$/,
content: { pattern: /\s*\S[\s\S]*/, alias: "ftl", inside: a },
},
},
}),
e.hooks.add("before-tokenize", function (i) {
var r = RegExp(
/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(
/<expr>/g,
function () {
return t;
},
),
"gi",
);
e.languages["markup-templating"].buildPlaceholders(i, "ftl", r);
}),
e.hooks.add("after-tokenize", function (t) {
e.languages["markup-templating"].tokenizePlaceholders(t, "ftl");
});
}
(t.exports = a), (a.displayName = "ftl"), (a.aliases = []);
};
export default moduleFactory;