Skip to content
Browse files

* misc/ruby-mode.el (ruby-parse-partial): fix for array in block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent a190741 commit 6b0dc7fd81b25bc66681548b8b82f38258f7e08c @nobu nobu committed Mar 8, 2011
Showing with 6 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +2 −1 misc/ruby-mode.el
View
4 ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 8 23:10:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
+
Tue Mar 8 21:44:49 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_rand.c: parenthesize macro arguments.
View
3 misc/ruby-mode.el
@@ -601,7 +601,8 @@ The variable ruby-indent-level controls the amount of indentation.
(goto-char pnt)
)
((looking-at "[])}]")
- (if (ruby-deep-indent-paren-p (matching-paren (char-after)))
+ (if (ruby-deep-indent-paren-p (matching-paren (char-after))
+ (save-excursion (ruby-backward-sexp) (point)))
(setq depth (cdr (car pcol)) pcol (cdr pcol))
(setq depth (1- depth)))
(setq nest (cdr nest))

0 comments on commit 6b0dc7f

Please sign in to comment.
Something went wrong with that request. Please try again.