Removed unnecessary code for comment indentation

This commit is contained in:
Lee Gao 2011-08-18 18:55:25 -04:00
commit adb1b2ce21
4 changed files with 4 additions and 26 deletions

View file

@ -18863,18 +18863,7 @@ oop.inherits(Mode, TextMode);
if (match) {
indent += tab;
}
} else if (state == "doc-start") {
if (endState == "start") {
return "";
}
var match = line.match(/^\s*(\/?)\*/);
if (match) {
if (match[1]) {
indent += " ";
}
indent += "* ";
}
}
}
return indent;
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -65,18 +65,7 @@ oop.inherits(Mode, TextMode);
if (match) {
indent += tab;
}
} else if (state == "doc-start") {
if (endState == "start") {
return "";
}
var match = line.match(/^\s*(\/?)\*/);
if (match) {
if (match[1]) {
indent += " ";
}
indent += "* ";
}
}
}
return indent;
};