Adjusted to comment section tokens based on recommendation.
This commit is contained in:
parent
d0709fea87
commit
f380abf51c
1 changed files with 4 additions and 9 deletions
|
|
@ -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;
|
||||||
});
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue