diff options
-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'), ], } |