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

74 lines
2.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 398234
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
var t;
(e.languages.velocity = e.languages.extend("markup", {})),
((t = {
variable: {
pattern:
/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,
lookbehind: !0,
inside: {},
},
string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 },
number: /\b\d+\b/,
boolean: /\b(?:false|true)\b/,
operator:
/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,
punctuation: /[(){}[\]:,.]/,
}).variable.inside = {
string: t.string,
function: { pattern: /([^\w-])[a-z][\w-]*(?=\()/, lookbehind: !0 },
number: t.number,
boolean: t.boolean,
punctuation: t.punctuation,
}),
e.languages.insertBefore("velocity", "comment", {
unparsed: {
pattern: /(^|[^\\])#\[\[[\s\S]*?\]\]#/,
lookbehind: !0,
greedy: !0,
inside: { punctuation: /^#\[\[|\]\]#$/ },
},
"velocity-comment": [
{
pattern: /(^|[^\\])#\*[\s\S]*?\*#/,
lookbehind: !0,
greedy: !0,
alias: "comment",
},
{
pattern: /(^|[^\\])##.*/,
lookbehind: !0,
greedy: !0,
alias: "comment",
},
],
directive: {
pattern:
/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,
lookbehind: !0,
inside: {
keyword: {
pattern: /^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,
inside: { punctuation: /[{}]/ },
},
rest: t,
},
},
variable: t.variable,
}),
(e.languages.velocity.tag.inside["attr-value"].inside.rest =
e.languages.velocity);
}
(t.exports = r), (r.displayName = "velocity"), (r.aliases = []);
};
export default moduleFactory;