summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-19 03:22:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-19 03:22:03 +0000
commit12cbb588193ac5148b6421fc8953c817acb0ae9f (patch)
treea8a501830a01ce87cb652e9feb39797921ef43bc /misc/ruby-mode.el
parentc511d26f6ae87f16956fe40fe5a5cfb6b66811b2 (diff)
* test/ruby/test_sprintf.rb: fix ML ref. [ruby-core:32848]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 0072f1e0d5..9a21c485a9 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -451,8 +451,12 @@ The variable ruby-indent-level controls the amount of indentation.
(or (eq (char-syntax (char-before (point))) ?w)
(ruby-special-char-p))))
nil)
- ((and (eq option 'heredoc) (< space 0)) t)
- ((or (looking-at ruby-operator-re)
+ ((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))
(looking-at "[\\[({,;]")
(and (looking-at "[!?]")
(or (not (eq option 'modifier))