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

73 lines
2.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 902120
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
var r = e.r(916033),
a = e.r(463753);
function n(e) {
var t;
e.register(r),
e.register(a),
(e.languages.latte = {
comment: /^\{\*[\s\S]*/,
"latte-tag": {
pattern: /(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,
lookbehind: !0,
alias: "important",
},
delimiter: { pattern: /^\{\/?|\}$/, alias: "punctuation" },
php: {
pattern: /\S(?:[\s\S]*\S)?/,
alias: "language-php",
inside: e.languages.php,
},
}),
(t = e.languages.extend("markup", {})),
e.languages.insertBefore(
"inside",
"attr-value",
{
"n-attr": {
pattern: /n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,
inside: {
"attr-name": { pattern: /^[^\s=]+/, alias: "important" },
"attr-value": {
pattern: /=[\s\S]+/,
inside: {
punctuation: [
/^=/,
{ pattern: /^(\s*)["']|["']$/, lookbehind: !0 },
],
php: {
pattern: /\S(?:[\s\S]*\S)?/,
inside: e.languages.php,
},
},
},
},
},
},
t.tag,
),
e.hooks.add("before-tokenize", function (i) {
"latte" === i.language &&
(e.languages["markup-templating"].buildPlaceholders(
i,
"latte",
/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g,
),
(i.grammar = t));
}),
e.hooks.add("after-tokenize", function (t) {
e.languages["markup-templating"].tokenizePlaceholders(t, "latte");
});
}
(t.exports = n), (n.displayName = "latte"), (n.aliases = []);
};
export default moduleFactory;