From dabe9e190081f1b62f196783fc43813fa86d7714 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 26 Jul 2002 09:33:39 +0000 Subject: * misc/ruby-mode.el (ruby-expr-beg): wrong indent at modifiers after ?. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ misc/ruby-mode.el | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21b946d81..6a6dce584 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 26 18:32:37 2002 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-expr-beg): wrong indent at modifiers + after ?. + Fri Jul 26 16:01:16 2002 WATANABE Hirofumi * ext/extmk.rb.in (create_makefile): use Regexp in gsub. diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 556f72387..2faec5930 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -270,10 +270,12 @@ The variable ruby-indent-level controls the amount of indentation. (forward-char -1) (or (looking-at ruby-operator-re) (looking-at "[\\[({,;]") - (and (or (eq option 'modifier) - (not (eq option 'heredoc)) + (and (or (not (eq option 'heredoc)) (< space 0)) - (looking-at "[!?]")) + (looking-at "[!?]") + (or (not (eq option 'modifier)) + (bolp) + (save-excursion (forward-char -1) (looking-at "\\Sw")))) (and (looking-at ruby-symbol-re) (skip-chars-backward ruby-symbol-chars) (cond -- cgit