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"], 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();