зеркало из https://github.com/nextcloud/text.git
1 строка
3.6 KiB
Plaintext
1 строка
3.6 KiB
Plaintext
{"version":3,"file":"django-DoS3c6Za.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/django.js"],"sourcesContent":["/*\nLanguage: Django\nDescription: Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.\nRequires: xml.js\nAuthor: Ivan Sagalaev <maniac@softwaremaniacs.org>\nContributors: Ilya Baryshev <baryshev@gmail.com>\nWebsite: https://www.djangoproject.com\nCategory: template\n*/\n\n/** @type LanguageFn */\nfunction django(hljs) {\n const FILTER = {\n begin: /\\|[A-Za-z]+:?/,\n keywords: { name:\n 'truncatewords removetags linebreaksbr yesno get_digit timesince random striptags '\n + 'filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands '\n + 'title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode '\n + 'timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort '\n + 'dictsortreversed default_if_none pluralize lower join center default '\n + 'truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first '\n + 'escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize '\n + 'localtime utc timezone' },\n contains: [\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE\n ]\n };\n\n return {\n name: 'Django',\n aliases: [ 'jinja' ],\n case_insensitive: true,\n subLanguage: 'xml',\n contains: [\n hljs.COMMENT(/\\{%\\s*comment\\s*%\\}/, /\\{%\\s*endcomment\\s*%\\}/),\n hljs.COMMENT(/\\{#/, /#\\}/),\n {\n className: 'template-tag',\n begin: /\\{%/,\n end: /%\\}/,\n contains: [\n {\n className: 'name',\n begin: /\\w+/,\n keywords: { name:\n 'comment endcomment load templatetag ifchanged endifchanged if endif firstof for '\n + 'endfor ifnotequal endifnotequal widthratio extends include spaceless '\n + 'endspaceless regroup ifequal endifequal ssi now with cycle url filter '\n + 'endfilter debug block endblock else autoescape endautoescape csrf_token empty elif '\n + 'endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix '\n + 'plural get_current_language language get_available_languages '\n + 'get_current_language_bidi get_language_info get_language_info_list localize '\n + 'endlocalize localtime endlocaltime timezone endtimezone get_current_timezone '\n + 'verbatim' },\n starts: {\n endsWithParent: true,\n keywords: 'in by as',\n contains: [ FILTER ],\n relevance: 0\n }\n }\n ]\n },\n {\n className: 'template-variable',\n begin: /\\{\\{/,\n end: /\\}\\}/,\n contains: [ FILTER ]\n }\n ]\n };\n}\n\nmodule.exports = django;\n"],"names":["django","hljs","FILTER","django_1"],"mappings":";4YAWA,SAASA,EAAOC,EAAM,CACpB,MAAMC,EAAS,CACb,MAAO,gBACP,SAAU,CAAE,KACR,0kBAO4B,EAChC,SAAU,CACRD,EAAK,kBACLA,EAAK,gBACN,CACL,EAEE,MAAO,CACL,KAAM,SACN,QAAS,CAAE,OAAS,EACpB,iBAAkB,GAClB,YAAa,MACb,SAAU,CACRA,EAAK,QAAQ,sBAAuB,wBAAwB,EAC5DA,EAAK,QAAQ,MAAO,KAAK,EACzB,CACE,UAAW,eACX,MAAO,MACP,IAAK,MACL,SAAU,CACR,CACE,UAAW,OACX,MAAO,MACP,SAAU,CAAE,KACR,+lBAQc,EAClB,OAAQ,CACN,eAAgB,GAChB,SAAU,WACV,SAAU,CAAEC,CAAQ,EACpB,UAAW,CACZ,CACF,CACF,CACF,EACD,CACE,UAAW,oBACX,MAAO,OACP,IAAK,OACL,SAAU,CAAEA,CAAQ,CACrB,CACF,CACL,CACA,CAEA,IAAAC,EAAiBH","x_google_ignoreList":[0]} |