[PATCH] ruby-mode.el indentation fix

From: George Ogata <g_ogata@...>
Date: 2004-04-28 15:04:05 UTC
List: ruby-core #2825
This hopefully solves an indentation bug in cases like:

if not_contrived?(x)
  oops
end

The 'oops' line was wrongly indented.

Cheers.



diff -Naur ruby/misc/ruby-mode.el ruby.mod/misc/ruby-mode.el
--- ruby/misc/ruby-mode.el      2004-04-02 09:13:39.000000000 +1000
+++ ruby.mod/misc/ruby-mode.el  2004-04-29 00:43:47.000000000 +1000
@@ -325,7 +325,7 @@
                       (looking-at ruby-block-op-re)
                       (looking-at ruby-block-mid-re))
                   (goto-char (match-end 0))
-                  (looking-at "\\>"))
+                  (not (looking-at "\\s_")))
                  ((eq option 'expr-qstr)
                   (looking-at "[a-zA-Z][a-zA-z0-9_]* +%[^ \t]"))
                  ((eq option 'expr-re)


In This Thread

Prev Next