summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-26 09:33:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-26 09:33:39 +0000
commitdabe9e190081f1b62f196783fc43813fa86d7714 (patch)
tree8b846a8f234303aeb1682091241f09949fe79d6e /misc
parent63be5c38161df4d16de1e3fb3a42a923ab67d7da (diff)
downloadruby-dabe9e190081f1b62f196783fc43813fa86d7714.tar.gz
ruby-dabe9e190081f1b62f196783fc43813fa86d7714.tar.xz
ruby-dabe9e190081f1b62f196783fc43813fa86d7714.zip
* 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
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el8
1 files changed, 5 insertions, 3 deletions
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