fixed up ruby.js

This commit is contained in:
Heigh Tech LLC 2011-02-02 15:17:18 +01:00
commit c2c7fc8f24

View file

@ -95,21 +95,10 @@ oop.inherits(Mode, TextMode);
}
if (state == "start") {
var match = line.match(/^.*[\{\(\[\:]\s*$/);
var match = line.match(/^.*[\{\(\[]\s*$/);
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;