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

60 lines
2.0 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 776958
* 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) {
var t, i;
e.register(r),
(e.languages.django = {
comment: /^\{#[\s\S]*?#\}$/,
tag: {
pattern: /(^\{%[+-]?\s*)\w+/,
lookbehind: !0,
alias: "keyword",
},
delimiter: {
pattern: /^\{[{%][+-]?|[+-]?[}%]\}$/,
alias: "punctuation",
},
string: { pattern: /("|')(?:\\.|(?!\1)[^\\\r\n])*\1/, greedy: !0 },
filter: { pattern: /(\|)\w+/, lookbehind: !0, alias: "function" },
test: {
pattern: /(\bis\s+(?:not\s+)?)(?!not\b)\w+/,
lookbehind: !0,
alias: "function",
},
function: /\b[a-z_]\w+(?=\s*\()/i,
keyword:
/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,
operator: /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
number: /\b\d+(?:\.\d+)?\b/,
boolean: /[Ff]alse|[Nn]one|[Tt]rue/,
variable: /\b\w+\b/,
punctuation: /[{}[\](),.:;]/,
}),
(t = /\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g),
(i = e.languages["markup-templating"]),
e.hooks.add("before-tokenize", function (e) {
i.buildPlaceholders(e, "django", t);
}),
e.hooks.add("after-tokenize", function (e) {
i.tokenizePlaceholders(e, "django");
}),
(e.languages.jinja2 = e.languages.django),
e.hooks.add("before-tokenize", function (e) {
i.buildPlaceholders(e, "jinja2", t);
}),
e.hooks.add("after-tokenize", function (e) {
i.tokenizePlaceholders(e, "jinja2");
});
}
(t.exports = a), (a.displayName = "django"), (a.aliases = ["jinja2"]);
};
export default moduleFactory;