Skip to content

Commit

Permalink
* misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 8, 2011
1 parent a190741 commit 6b0dc7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion misc/ruby-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6b0dc7f

Please sign in to comment.