Issue #4546 has been reported by Kenta Murata.

----------------------------------------
Bug #4546: ruby-indent-beg-re ???ゃ??紕???????????
http://redmine.ruby-lang.org/issues/4546

Author: Kenta Murata
Status: Open
Priority: Normal
Assignee: 
Category: lib
Target version: 1.9.x
ruby -v: trunk


vim-ruby ??? indent/ruby.vim ???篆罩???????????????? ruby-mode.el ???茯????с????????????
ruby-indent-beg-re ???ゃ??紕?????????????????????????????????у?怨???????障?????

r19205 ??? regexp-opt ???篏帥?c?罩hΘ???????????????????????劫??????????????障????????
??????????? \\| ???????????????障?c?????障?????

r19204 ??? ??翫??:
"\\(\\s *\\(class\\|module\\|def\\)\\)\\|if\\|unless\\|case\\|while\\|until\\|for\\|begin"

r19205 ???翫??:
"\\(\\s *\\(class\\|def\\|module\\)\\)\\(?:begin\\|case\\|for\\|if\\|un\\(?:less\\|til\\)\\|while\\)"

????????????? class, def, module ?????蚊????綣???翫????????c?? \\| ?????純?<?????障?????

????????с???????????????????ゃ?潟????潟????с?????????????茘違????c?????у???????????茯炊?祉?????帥?障????????
r19205 篁ラ????с???ruby-beginning-of-indent ??? classif ??? defbegin ????????????????????????ゃ?潟????潟??????紮????????
??ゆ?????????障????障?????????????????????????絖???????????翫??????????????<??????障?ф?祉?c?????障????????
??с???????????篁ヤ???????????????綵???????????????????篆罩????????????激???????<?ゃ???ゃ?潟????潟??荐?膊????
??ュ慌蕭??????????????????????????????障????????

diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index c799d8c..9023b77 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -72,7 +72,7 @@
   "Regexp to match")
 
 (defconst ruby-indent-beg-re
-  (concat "\\(\\s *" (regexp-opt '("class" "module" "def") t) "\\)"
+  (concat "\\(\\s *" (regexp-opt '("class" "module" "def") t) "\\)\\|"
           (regexp-opt '("if" "unless" "case" "while" "until" "for" "begin")))
   "Regexp to match where the indentation gets deeper.")
 


-- 
http://redmine.ruby-lang.org