aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-19 03:25:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-19 03:25:29 +0000
commit671b498070c0fa33fa6afaf4f4672441ae61661a (patch)
tree07e887952acaa6df812940779b9a1ad907fc727f /misc/ruby-mode.el
parent12cbb588193ac5148b6421fc8953c817acb0ae9f (diff)
downloadruby-671b498070c0fa33fa6afaf4f4672441ae61661a.tar.gz
Commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 9a21c485a9..0072f1e0d5 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -451,12 +451,8 @@ The variable ruby-indent-level controls the amount of indentation.
(or (eq (char-syntax (char-before (point))) ?w)
(ruby-special-char-p))))
nil)
- ((and (progn (goto-char start) (eq option 'heredoc))
- (progn (forward-word -1)
- (not (and (or (bolp) (not (eq (char-before (point)) ?_)))
- (looking-at "class<<")))))
- t)
- ((or (progn (goto-char start) (looking-at ruby-operator-re))
+ ((and (eq option 'heredoc) (< space 0)) t)
+ ((or (looking-at ruby-operator-re)
(looking-at "[\\[({,;]")
(and (looking-at "[!?]")
(or (not (eq option 'modifier))