Improvement to HTML comments

Fixed issue where HTML comments were not properly ending, causing all code after the start comment tag to appear commented out.
This commit is contained in:
Ryan Griffith 2013-04-22 11:18:24 -03:00
commit d0709fea87

View file

@ -133,6 +133,10 @@ var VelocityHighlightRules = function() {
token : "comment.block", // closing comment token : "comment.block", // closing comment
regex : ".*?\\*#", regex : ".*?\\*#",
next : "start" next : "start"
}, {
token : "comment", // closing HTML comment
regex : ".*?-->",
next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
regex : ".+" regex : ".+"