diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-10 23:45:53 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-10 23:45:53 -0400 |
commit | 356cc596915bc87e2e0ceca865dd018b3b33522c (patch) | |
tree | f17812e3c208926c46bd7d7eb17020001ac27261 /pygments | |
parent | 7bd577685544b0f3f27c030fb8feb1757aa76dd3 (diff) | |
download | pygments-356cc596915bc87e2e0ceca865dd018b3b33522c.tar.gz |
Match larger strings for comment tokens
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/templates.py | 7 |
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'), ], } |