summaryrefslogtreecommitdiff
path: root/pygments/lexers/templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/templates.py')
-rw-r--r--pygments/lexers/templates.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py
index 694b85d2..3efb3ba5 100644
--- a/pygments/lexers/templates.py
+++ b/pygments/lexers/templates.py
@@ -314,10 +314,13 @@ class MakoLexer(RegexLexer):
bygroups(Text, Comment.Preproc, using(PythonLexer), Other)),
(r'(\s*)(#[^\n]*)(\n|\Z)',
bygroups(Text, Comment.Preproc, Other)),
- (r'(<%)(def|call|namespace|text)', bygroups(Comment.Preproc, Name.Builtin), 'tag'),
- (r'(</%)(def|call|namespace|text)(>)', bygroups(Comment.Preproc, Name.Builtin, Comment.Preproc)),
+ (r'(<%)(def|call|namespace|text)',
+ bygroups(Comment.Preproc, Name.Builtin), 'tag'),
+ (r'(</%)(def|call|namespace|text)(>)',
+ bygroups(Comment.Preproc, Name.Builtin, Comment.Preproc)),
(r'<%(?=(include|inherit|namespace|page))', Comment.Preproc, 'ondeftags'),
- (r'(<%(?:!?))(.*?)(%>)(?s)', bygroups(Comment.Preproc, using(PythonLexer), Comment.Preproc)),
+ (r'(<%(?:!?))(.*?)(%>)(?s)',
+ bygroups(Comment.Preproc, using(PythonLexer), Comment.Preproc)),
(r'(\$\{)(.*?)(\})',
bygroups(Comment.Preproc, using(PythonLexer), Comment.Preproc)),
(r'''(?sx)