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.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py
index 89d29f0f..f1f879a5 100644
--- a/pygments/lexers/templates.py
+++ b/pygments/lexers/templates.py
@@ -1559,10 +1559,9 @@ class ColdfusionMarkupLexer(RegexLexer):
(r'#', Other),
],
'cfcomment': [
- (r'(?s)(.*?)(<!---)',
- bygroups(Comment.Multiline, Comment.Multiline), '#push'),
- (r'(?s)(.*?)(--->)',
- bygroups(Comment.Multiline, Comment.Multiline), '#pop'),
+ (r'<!---', Comment.Multiline, '#push'),
+ (r'--->', Comment.Multiline, '#pop'),
+ (r'([^<-]|<(?!!---)|-(?!-->))+', Comment.Multiline),
],
}