Merge pull request #308 from CaptainOz/master
Fixed comment docs in C and C++
This commit is contained in:
commit
f28ab84a5e
2 changed files with 3 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ var c_cppHighlightRules = function() {
|
||||||
token : "comment",
|
token : "comment",
|
||||||
regex : "\\/\\/.*$"
|
regex : "\\/\\/.*$"
|
||||||
},
|
},
|
||||||
new DocCommentHighlightRules().getStartRule("start"),
|
new DocCommentHighlightRules().getStartRule("doc-start"),
|
||||||
{
|
{
|
||||||
token : "comment", // multi line comment
|
token : "comment", // multi line comment
|
||||||
regex : "\\/\\*",
|
regex : "\\/\\*",
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ var DocCommentHighlightRules = function() {
|
||||||
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
||||||
}, {
|
}, {
|
||||||
token : "comment.doc",
|
token : "comment.doc",
|
||||||
regex : "\s+"
|
regex : "\\s+"
|
||||||
}, {
|
}, {
|
||||||
token : "comment.doc",
|
token : "comment.doc",
|
||||||
regex : "TODO"
|
regex : "TODO"
|
||||||
|
|
@ -80,7 +80,7 @@ oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
||||||
regex : "\\*\\/",
|
regex : "\\*\\/",
|
||||||
next : start
|
next : start
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
}).call(DocCommentHighlightRules.prototype);
|
}).call(DocCommentHighlightRules.prototype);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue