Highlight document comments

This commit is contained in:
benweet 2014-03-10 23:53:36 +00:00
parent bcfc76e4db
commit 7a25b4aeac

View File

@ -81,6 +81,10 @@ var MarkdownHighlightRules = function() {
token : ["keyword", "text"],
regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",
next : "latexblock"
}, {
token : "doccomment",
regex : "<\\!---", next :
"doccomment"
}, {
include : "basic"
});
@ -218,7 +222,13 @@ var MarkdownHighlightRules = function() {
// the end of the line
token : "comment",
regex : "%.*$"
}]
}],
doccomment : [
{token : "doccomment", regex : "-->", next : "start"},
{defaultToken : "doccomment"}
],
});
this.normalizeRules();