From 12cbb588193ac5148b6421fc8953c817acb0ae9f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 19 Oct 2010 03:22:03 +0000 Subject: * 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 --- misc/ruby-mode.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'misc') 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)) -- cgit v1.2.3