fixed up ruby.js
This commit is contained in:
parent
67836cc281
commit
c2c7fc8f24
1 changed files with 1 additions and 12 deletions
|
|
@ -95,21 +95,10 @@ oop.inherits(Mode, TextMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == "start") {
|
if (state == "start") {
|
||||||
var match = line.match(/^.*[\{\(\[\:]\s*$/);
|
var match = line.match(/^.*[\{\(\[]\s*$/);
|
||||||
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