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

54 lines
1.7 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 699970
* 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),
(e.languages.twig = {
comment: /^\{#[\s\S]*?#\}$/,
"tag-name": {
pattern: /(^\{%-?\s*)\w+/,
lookbehind: !0,
alias: "keyword",
},
delimiter: { pattern: /^\{[{%]-?|-?[%}]\}$/, alias: "punctuation" },
string: {
pattern: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
inside: { punctuation: /^['"]|['"]$/ },
},
keyword: /\b(?:even|if|odd)\b/,
boolean: /\b(?:false|null|true)\b/,
number:
/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,
operator: [
{
pattern:
/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,
lookbehind: !0,
},
/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/,
],
punctuation: /[()\[\]{}:.,]/,
}),
e.hooks.add("before-tokenize", function (t) {
"twig" === t.language &&
e.languages["markup-templating"].buildPlaceholders(
t,
"twig",
/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g,
);
}),
e.hooks.add("after-tokenize", function (t) {
e.languages["markup-templating"].tokenizePlaceholders(t, "twig");
});
}
(t.exports = a), (a.displayName = "twig"), (a.aliases = []);
};
export default moduleFactory;