summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-07-25 09:39:06 +0200
committerGeorg Brandl <georg@python.org>2015-07-25 09:39:06 +0200
commit75293629c7c6072be3911a18f1b1db6bb652d23f (patch)
treead95afbeb33d0c7508aea3e8adb832c2dce8d30d
parentfacc6a2a2cd4031450d713b432bf82535983ec92 (diff)
downloadpygments-75293629c7c6072be3911a18f1b1db6bb652d23f.tar.gz
jinja: allow functions starting with underscores
-rw-r--r--pygments/lexers/templates.py2
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),