fix c# and go highlight rules
This commit is contained in:
parent
6e1215a45e
commit
b3ffdeda6e
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@ define(function(require, exports, module) {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.embedRules(DocCommentHighlightRules, "doc-",
|
||||||
|
[ DocCommentHighlightRules.getEndRule("start") ]);
|
||||||
}
|
}
|
||||||
oop.inherits(GolangHighlightRules, TextHighlightRules);
|
oop.inherits(GolangHighlightRules, TextHighlightRules);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue