summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-10 23:45:53 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-10 23:45:53 -0400
commit356cc596915bc87e2e0ceca865dd018b3b33522c (patch)
treef17812e3c208926c46bd7d7eb17020001ac27261
parent7bd577685544b0f3f27c030fb8feb1757aa76dd3 (diff)
downloadpygments-356cc596915bc87e2e0ceca865dd018b3b33522c.tar.gz
Match larger strings for comment tokens
-rw-r--r--pygments/lexers/templates.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py
index a592c3e5..9ed1c635 100644
--- a/pygments/lexers/templates.py
+++ b/pygments/lexers/templates.py
@@ -1557,9 +1557,10 @@ class ColdfusionMarkupLexer(RegexLexer):
(r'#', Other),
],
'cfcomment': [
- (r'<!---', Comment.Multiline, '#push'),
- (r'--->', Comment.Multiline, '#pop'),
- (r'(?s).', Comment.Multiline),
+ (r'(?s)(.*?)(<!---)',
+ bygroups(Comment.Multiline, Comment.Multiline), '#push'),
+ (r'(?s)(.*?)(--->)',
+ bygroups(Comment.Multiline, Comment.Multiline), '#pop'),
],
}