From 1b2b7c3eb939724696894f31ff27db97b0cac84c Mon Sep 17 00:00:00 2001 From: Andreas Widen Date: Sat, 25 Nov 2023 17:21:37 +0100 Subject: Initial commit. Signed-off-by: Andreas Widen --- static/base/highlight/es/languages/twig.min.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 static/base/highlight/es/languages/twig.min.js (limited to 'static/base/highlight/es/languages/twig.min.js') diff --git a/static/base/highlight/es/languages/twig.min.js b/static/base/highlight/es/languages/twig.min.js new file mode 100644 index 0000000..eeb8758 --- /dev/null +++ b/static/base/highlight/es/languages/twig.min.js @@ -0,0 +1,15 @@ +/*! `twig` grammar compiled for Highlight.js 11.3.1 */ +var hljsGrammar=(()=>{"use strict";return e=>{ +var a="attribute block constant cycle date dump include max min parent random range source template_from_string",t={ +beginKeywords:a,keywords:{name:a},relevance:0,contains:[{className:"params", +begin:"\\(",end:"\\)"}]},n={begin:/\|[A-Za-z_]+:?/, +keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode", +contains:[t] +},s="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with" +;return s=s+" "+s.split(" ").map((e=>"end"+e)).join(" "),{name:"Twig", +aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml", +contains:[e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/, +end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:s,starts:{ +endsWithParent:!0,contains:[n,t],relevance:0}}]},{className:"template-variable", +begin:/\{\{/,end:/\}\}/,contains:["self",n,t]}]}}})() +;export default hljsGrammar; \ No newline at end of file -- cgit v1.2.3-54-g00ecf