diff --git a/lib/ace/mode/ruby.js b/lib/ace/mode/ruby.js index ed68bb4c..89b7a04d 100644 --- a/lib/ace/mode/ruby.js +++ b/lib/ace/mode/ruby.js @@ -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;