add dartdoc indentation handling to the dart mode
This commit is contained in:
parent
1ef6700be7
commit
393dc852dc
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ define(function(require, exports, module) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var oop = require("../lib/oop");
|
var oop = require("../lib/oop");
|
||||||
|
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
||||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||||
|
|
||||||
var DartHighlightRules = function() {
|
var DartHighlightRules = function() {
|
||||||
|
|
@ -41,6 +42,7 @@ var DartHighlightRules = function() {
|
||||||
token : "comment",
|
token : "comment",
|
||||||
regex : /\/\/.*$/
|
regex : /\/\/.*$/
|
||||||
},
|
},
|
||||||
|
DocCommentHighlightRules.getStartRule("doc-start"),
|
||||||
{
|
{
|
||||||
token : "comment", // multi line comment
|
token : "comment", // multi line comment
|
||||||
regex : /\/\*/,
|
regex : /\/\*/,
|
||||||
|
|
@ -174,6 +176,8 @@ var DartHighlightRules = function() {
|
||||||
}, stringfill]
|
}, stringfill]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.embedRules(DocCommentHighlightRules, "doc-",
|
||||||
|
[ DocCommentHighlightRules.getEndRule("start") ]);
|
||||||
};
|
};
|
||||||
|
|
||||||
oop.inherits(DartHighlightRules, TextHighlightRules);
|
oop.inherits(DartHighlightRules, TextHighlightRules);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue