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
regex : ".*?\\*#",
next : "start"
}, {
token : "comment", // closing HTML comment
regex : ".*?-->",
next : "start"
}, {
token : "comment", // comment spanning whole line
regex : ".+"
@ -229,4 +233,4 @@ var VelocityHighlightRules = function() {
oop.inherits(VelocityHighlightRules, TextHighlightRules);
exports.VelocityHighlightRules = VelocityHighlightRules;
});
});