Removed unnecessary code for comment indentation
This commit is contained in:
parent
0a58b58d1f
commit
adb1b2ce21
4 changed files with 4 additions and 26 deletions
|
|
@ -18863,17 +18863,6 @@ oop.inherits(Mode, TextMode);
|
||||||
if (match) {
|
if (match) {
|
||||||
indent += tab;
|
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;
|
return indent;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -65,17 +65,6 @@ oop.inherits(Mode, TextMode);
|
||||||
if (match) {
|
if (match) {
|
||||||
indent += tab;
|
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;
|
return indent;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue