Skip to content

Commit

Permalink
removed \'{* ... *}\' as a django comment
Browse files Browse the repository at this point in the history
  • Loading branch information
boanergies authored and birkenfeld committed Oct 30, 2020
1 parent d953c84 commit 5534f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class DjangoLexer(RegexLexer):
(r'[^{]+', Other),
(r'\{\{', Comment.Preproc, 'var'),
# jinja/django comments
(r'\{[*#].*?[*#]\}', Comment),
(r'\{#.*?#\}', Comment),
# django comments
(r'(\{%)(-?\s*)(comment)(\s*-?)(%\})(.*?)'
r'(\{%)(-?\s*)(endcomment)(\s*-?)(%\})',
Expand Down

0 comments on commit 5534f84

Please sign in to comment.