aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-09 14:06:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-09 14:06:15 +0000
commit862048e28d26112af1e67205cfd1c16564590bce (patch)
tree6de342236d0e592f0c7c2af18064df12088bc45c /misc
parent4df71924e47bc0da8bbc3a08f814c48350131585 (diff)
downloadruby-862048e28d26112af1e67205cfd1c16564590bce.tar.gz
* misc/ruby-mode.el (ruby-parse-partial): fix indent after aref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 1b16c68366..19b2518e42 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -602,7 +602,12 @@ The variable ruby-indent-level controls the amount of indentation.
)
((looking-at "[])}]")
(if (ruby-deep-indent-paren-p (matching-paren (char-after))
- (save-excursion (ruby-backward-sexp) (point)))
+ (if nest
+ (1- (cdr (nth 0 nest)))
+ (save-excursion
+ (forward-char)
+ (ruby-backward-sexp)
+ (point))))
(setq depth (cdr (car pcol)) pcol (cdr pcol))
(setq depth (1- depth)))
(setq nest (cdr nest))