Adjusted to comment section tokens based on recommendation.

This commit is contained in:
Ryan Griffith 2013-04-26 14:57:17 -04:00
commit f380abf51c

View file

@ -130,16 +130,11 @@ var VelocityHighlightRules = function() {
], ],
"comment" : [ "comment" : [
{ {
token : "comment.block", // closing comment token : "comment", // closing comment
regex : ".*?\\*#", regex : "\\*#|-->",
next : "start" next : "start"
}, { }, {
token : "comment", // closing HTML comment defaultToken: "comment"
regex : ".*?-->",
next : "start"
}, {
token : "comment", // comment spanning whole line
regex : ".+"
} }
], ],
"vm_start" : [ "vm_start" : [
@ -233,4 +228,4 @@ var VelocityHighlightRules = function() {
oop.inherits(VelocityHighlightRules, TextHighlightRules); oop.inherits(VelocityHighlightRules, TextHighlightRules);
exports.VelocityHighlightRules = VelocityHighlightRules; exports.VelocityHighlightRules = VelocityHighlightRules;
}); });