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:
parent
076eeb8cab
commit
d0709fea87
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue