summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-08 14:10:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-08 14:10:19 +0000
commit6b0dc7fd81b25bc66681548b8b82f38258f7e08c (patch)
treec14b29ff4af7cd4c73c2ed4f4d5aadf1873011de /misc
parenta190741da4681820d38d977bf2f14f969f9ffca3 (diff)
* 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
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index c86c65c3e7..1b16c68366 100644
--- a/misc/ruby-mode.el
+++ b/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))