]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/jinja2.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / jinja2.yaml
1 filetype: jinja2
2
3 rules:
4   - include: "html"
5   - special: "({{|}}|{%-?|-?%})"
6   - default:
7         start: "({%-?|{{)"
8         end: "(-?%}|}})"
9         limit-group: special
10         rules:
11           - include: "python"
12           - statement: "\\b(ignore missing|with(out)? context|block|call|endblock|endcall|endfilter|endfor|endmacro|endraw|endset|extends|filter|for|include|macro|raw|recursive|scoped|set)\\b"
13           - identifier.builtinfunc: "\\b(attr|batch|capitalize|center|count|d|default|dictsort|e|escape|filesizeformat|first|forceescape|groupby|indent|join|last|length|lower|pprint|random|reject|rejectattr|replace|reverse|safe|select|selectattr|striptags|title|tojson|trim|truncate|unique|upper|urlencode|urlize|wordcount|wordwrap|xmlattr)\\b"
14           - identifier.builtintest: "\\b(callable|defined|divisibleby|eq|equalto|escaped|even|ge|gt|iterable|le|lower|lt|mapping|ne|none|number|odd|sameas|sequence|string|undefined|upper)\\b"
15           - identifier.defaultglobal: "\\b(lipsum|cycler|joiner|namespace)\\b"
16   - comment:
17         start: "{#"
18         end: "#}"
19         rules: []