Merge pull request #308 from CaptainOz/master

Fixed comment docs in C and C++
This commit is contained in:
Fabian Jakobs 2011-06-19 16:29:13 -07:00
commit f28ab84a5e
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ var c_cppHighlightRules = function() {
token : "comment",
regex : "\\/\\/.*$"
},
new DocCommentHighlightRules().getStartRule("start"),
new DocCommentHighlightRules().getStartRule("doc-start"),
{
token : "comment", // multi line comment
regex : "\\/\\*",

View file

@ -48,7 +48,7 @@ var DocCommentHighlightRules = function() {
regex : "@[\\w\\d_]+" // TODO: fix email addresses
}, {
token : "comment.doc",
regex : "\s+"
regex : "\\s+"
}, {
token : "comment.doc",
regex : "TODO"
@ -80,7 +80,7 @@ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
regex : "\\*\\/",
next : start
};
}
};
}).call(DocCommentHighlightRules.prototype);