From c2c7fc8f246b5d5d245cd20d6a465205e4b20f12 Mon Sep 17 00:00:00 2001 From: Heigh Tech LLC Date: Wed, 2 Feb 2011 15:17:18 +0100 Subject: [PATCH] fixed up ruby.js --- lib/ace/mode/ruby.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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;