]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/django.js
1 /*! `django` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Description: Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
9 Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
10 Contributors: Ilya Baryshev <baryshev@gmail.com>
11 Website: https://www.djangoproject.com
15 /** @type LanguageFn */
16 function django(hljs
) {
18 begin: /\|[A-Za-z]+:?/,
20 'truncatewords removetags linebreaksbr yesno get_digit timesince random striptags '
21 + 'filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands '
22 + 'title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode '
23 + 'timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort '
24 + 'dictsortreversed default_if_none pluralize lower join center default '
25 + 'truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first '
26 + 'escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize '
27 + 'localtime utc timezone' },
29 hljs
.QUOTE_STRING_MODE
,
37 case_insensitive: true,
40 hljs
.COMMENT(/\{%\s*comment\s*%\}/, /\{%\s*endcomment\s*%\}/),
41 hljs
.COMMENT(/\{#/, /#\}/),
43 className: 'template-tag',
51 'comment endcomment load templatetag ifchanged endifchanged if endif firstof for '
52 + 'endfor ifnotequal endifnotequal widthratio extends include spaceless '
53 + 'endspaceless regroup ifequal endifequal ssi now with cycle url filter '
54 + 'endfilter debug block endblock else autoescape endautoescape csrf_token empty elif '
55 + 'endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix '
56 + 'plural get_current_language language get_available_languages '
57 + 'get_current_language_bidi get_language_info get_language_info_list localize '
58 + 'endlocalize localtime endlocaltime timezone endtimezone get_current_timezone '
70 className: 'template-variable',
83 export default hljsGrammar
;