"use strict";const r=require("./markup-templating.cjs.js");o.displayName="django";o.aliases=["jinja2"];function o(t){t.register(r),(function(e){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:/[{}[\](),.:;]/};var i=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=e.languages["markup-templating"];e.hooks.add("before-tokenize",function(n){a.buildPlaceholders(n,"django",i)}),e.hooks.add("after-tokenize",function(n){a.tokenizePlaceholders(n,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(n){a.buildPlaceholders(n,"jinja2",i)}),e.hooks.add("after-tokenize",function(n){a.tokenizePlaceholders(n,"jinja2")})})(t)}module.exports=o;
//# sourceMappingURL=django.cjs.js.map
