зеркало из https://github.com/nextcloud/text.git
1 строка
3.1 KiB
Plaintext
1 строка
3.1 KiB
Plaintext
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/twig.js"],"names":["module","exports","hljs","FUNCTION_NAMES","FUNCTIONS","beginKeywords","keywords","name","relevance","contains","className","begin","end","FILTER","TAGS","split","map","t","join","aliases","case_insensitive","subLanguage","COMMENT","starts","endsWithParent"],"mappings":"oGA4EAA,EAAOC,QAnEP,SAAcC,GACZ,IAKIC,EAAiB,2GAGjBC,EAAY,CACdC,cAAeF,EACfG,SAAU,CAACC,KAAMJ,GACjBK,UAAW,EACXC,SAAU,CAZC,CACXC,UAAW,SACXC,MAAO,MAAOC,IAAK,SAejBC,EAAS,CACXF,MAAO,iBACPL,SACE,4SAIFG,SAAU,CACRL,IAIAU,EAAO,iIAKX,OAFAA,EAAOA,EAAO,IAAMA,EAAKC,MAAM,KAAKC,KAAI,SAASC,GAAG,MAAO,MAAQA,KAAIC,KAAK,KAErE,CACLX,KAAM,OACNY,QAAS,CAAC,YACVC,kBAAkB,EAClBC,YAAa,MACbZ,SAAU,CACRP,EAAKoB,QAAQ,MAAO,OACpB,CACEZ,UAAW,eACXC,MAAO,MAAOC,IAAK,MACnBH,SAAU,CACR,CACEC,UAAW,OACXC,MAAO,MACPL,SAAUQ,EACVS,OAAQ,CACNC,gBAAgB,EAChBf,SAAU,CAACI,EAAQT,GACnBI,UAAW,MAKnB,CACEE,UAAW,oBACXC,MAAO,OAAQC,IAAK,OACpBH,SAAU,CAAC,OAAQI,EAAQT","file":"highlight/twig.js?v=899d1851095d4fe95170","sourcesContent":["/*\nLanguage: Twig\nRequires: xml.js\nAuthor: Luke Holder <lukemh@gmail.com>\nDescription: Twig is a templating language for PHP\nWebsite: https://twig.symfony.com\nCategory: template\n*/\n\nfunction twig(hljs) {\n var PARAMS = {\n className: 'params',\n begin: '\\\\(', end: '\\\\)'\n };\n\n var FUNCTION_NAMES = 'attribute block constant cycle date dump include ' +\n 'max min parent random range source template_from_string';\n\n var FUNCTIONS = {\n beginKeywords: FUNCTION_NAMES,\n keywords: {name: FUNCTION_NAMES},\n relevance: 0,\n contains: [\n PARAMS\n ]\n };\n\n var FILTER = {\n begin: /\\|[A-Za-z_]+:?/,\n keywords:\n 'abs batch capitalize column convert_encoding date date_modify default ' +\n 'escape filter first format inky_to_html inline_css join json_encode keys last ' +\n 'length lower map markdown merge nl2br number_format raw reduce replace ' +\n 'reverse round slice sort spaceless split striptags title trim upper url_encode',\n contains: [\n FUNCTIONS\n ]\n };\n\n var TAGS = 'apply autoescape block deprecated do embed extends filter flush for from ' +\n 'if import include macro sandbox set use verbatim with';\n\n TAGS = TAGS + ' ' + TAGS.split(' ').map(function(t){return 'end' + t}).join(' ');\n\n return {\n name: 'Twig',\n aliases: ['craftcms'],\n case_insensitive: true,\n subLanguage: 'xml',\n contains: [\n hljs.COMMENT(/\\{#/, /#\\}/),\n {\n className: 'template-tag',\n begin: /\\{%/, end: /%\\}/,\n contains: [\n {\n className: 'name',\n begin: /\\w+/,\n keywords: TAGS,\n starts: {\n endsWithParent: true,\n contains: [FILTER, FUNCTIONS],\n relevance: 0\n }\n }\n ]\n },\n {\n className: 'template-variable',\n begin: /\\{\\{/, end: /\\}\\}/,\n contains: ['self', FILTER, FUNCTIONS]\n }\n ]\n };\n}\n\nmodule.exports = twig;\n"],"sourceRoot":""} |