Highlight document comments
This commit is contained in:
parent
bcfc76e4db
commit
7a25b4aeac
@ -81,6 +81,10 @@ var MarkdownHighlightRules = function() {
|
|||||||
token : ["keyword", "text"],
|
token : ["keyword", "text"],
|
||||||
regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",
|
regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",
|
||||||
next : "latexblock"
|
next : "latexblock"
|
||||||
|
}, {
|
||||||
|
token : "doccomment",
|
||||||
|
regex : "<\\!---", next :
|
||||||
|
"doccomment"
|
||||||
}, {
|
}, {
|
||||||
include : "basic"
|
include : "basic"
|
||||||
});
|
});
|
||||||
@ -218,7 +222,13 @@ var MarkdownHighlightRules = function() {
|
|||||||
// the end of the line
|
// the end of the line
|
||||||
token : "comment",
|
token : "comment",
|
||||||
regex : "%.*$"
|
regex : "%.*$"
|
||||||
}]
|
}],
|
||||||
|
|
||||||
|
doccomment : [
|
||||||
|
{token : "doccomment", regex : "-->", next : "start"},
|
||||||
|
{defaultToken : "doccomment"}
|
||||||
|
],
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.normalizeRules();
|
this.normalizeRules();
|
||||||
|
Loading…
Reference in New Issue
Block a user