add dartdoc indentation handling to the dart mode

This commit is contained in:
Devon Carew 2014-04-29 13:58:24 -07:00
commit 393dc852dc

View file

@ -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);