fix c# and go highlight rules

This commit is contained in:
nightwing 2012-05-10 13:40:02 +04:00
commit b3ffdeda6e
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,7 @@ var CSharpHighlightRules = function() {
token : "comment", token : "comment",
regex : "\\/\\/.*$" regex : "\\/\\/.*$"
}, },
new DocCommentHighlightRules().getStartRule("doc-start"), DocCommentHighlightRules.getStartRule("doc-start"),
{ {
token : "comment", // multi line comment token : "comment", // multi line comment
regex : "\\/\\*", regex : "\\/\\*",
@ -95,7 +95,7 @@ var CSharpHighlightRules = function() {
}; };
this.embedRules(DocCommentHighlightRules, "doc-", this.embedRules(DocCommentHighlightRules, "doc-",
[ new DocCommentHighlightRules().getEndRule("start") ]); [ DocCommentHighlightRules.getEndRule("start") ]);
}; };
oop.inherits(CSharpHighlightRules, TextHighlightRules); oop.inherits(CSharpHighlightRules, TextHighlightRules);

View file

@ -119,6 +119,9 @@ define(function(require, exports, module) {
} }
] ]
}; };
this.embedRules(DocCommentHighlightRules, "doc-",
[ DocCommentHighlightRules.getEndRule("start") ]);
} }
oop.inherits(GolangHighlightRules, TextHighlightRules); oop.inherits(GolangHighlightRules, TextHighlightRules);