diff options
author | Georg Brandl <georg@python.org> | 2015-07-25 09:39:06 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-07-25 09:39:06 +0200 |
commit | 75293629c7c6072be3911a18f1b1db6bb652d23f (patch) | |
tree | ad95afbeb33d0c7508aea3e8adb832c2dce8d30d | |
parent | facc6a2a2cd4031450d713b432bf82535983ec92 (diff) | |
download | pygments-75293629c7c6072be3911a18f1b1db6bb652d23f.tar.gz |
jinja: allow functions starting with underscores
-rw-r--r-- | pygments/lexers/templates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py index 3cb73059..bfca0d38 100644 --- a/pygments/lexers/templates.py +++ b/pygments/lexers/templates.py @@ -369,7 +369,7 @@ class DjangoLexer(RegexLexer): r'with(?:(?:out)?\s*context)?|scoped|ignore\s+missing)\b', Keyword), (r'(loop|block|super|forloop)\b', Name.Builtin), - (r'[a-zA-Z][\w-]*', Name.Variable), + (r'[a-zA-Z_][\w-]*', Name.Variable), (r'\.\w+', Name.Variable), (r':?"(\\\\|\\"|[^"])*"', String.Double), (r":?'(\\\\|\\'|[^'])*'", String.Single), |