diff options
| author | mitsuhiko <mitsuhiko@localhost> | 2009-09-13 00:51:07 -0700 |
|---|---|---|
| committer | mitsuhiko <mitsuhiko@localhost> | 2009-09-13 00:51:07 -0700 |
| commit | e44e91be4edb752313d6bcc07a2c2f5beb43b73b (patch) | |
| tree | b63526e1eaa82b2389c04cfc7943f9e9dbd36504 /pygments | |
| parent | 6a49dfb7bfb298829c984eca91aefb2060d706a6 (diff) | |
| download | pygments-git-e44e91be4edb752313d6bcc07a2c2f5beb43b73b.tar.gz | |
Added support for new Jinja2 keywords.
Diffstat (limited to 'pygments')
| -rw-r--r-- | pygments/lexers/templates.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py index e81a0c5d..9ae0c3aa 100644 --- a/pygments/lexers/templates.py +++ b/pygments/lexers/templates.py @@ -239,7 +239,8 @@ class DjangoLexer(RegexLexer): bygroups(Keyword, Text, Keyword, Text, Name.Function)), (r'(_|true|false|none|True|False|None)\b', Keyword.Pseudo), (r'(in|as|reversed|recursive|not|and|or|is|if|else|import|' - r'with(?:(?:out)?\s*context)?)\b', Keyword), + r'with(?:(?:out)?\s*context)?|scoped|ignore\s+missing)\b', + Keyword), (r'(loop|block|super|forloop)\b', Name.Builtin), (r'[a-zA-Z][a-zA-Z0-9_]*', Name.Variable), (r'\.[a-zA-Z0-9_]+', Name.Variable), |
