diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:25:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:25:29 +0000 |
commit | 671b498070c0fa33fa6afaf4f4672441ae61661a (patch) | |
tree | 07e887952acaa6df812940779b9a1ad907fc727f /misc | |
parent | 12cbb588193ac5148b6421fc8953c817acb0ae9f (diff) | |
download | ruby-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')
-rw-r--r-- | misc/ruby-mode.el | 8 |
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)) |