* misc/ruby-mode.el (ruby-expr-beg): wrong indent at modifiers
after ?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52ecaae5b6
commit
5384316f5b
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 26 18:32:37 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* misc/ruby-mode.el (ruby-expr-beg): wrong indent at modifiers
|
||||||
|
after ?.
|
||||||
|
|
||||||
Fri Jul 26 16:01:16 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
Fri Jul 26 16:01:16 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* ext/extmk.rb.in (create_makefile): use Regexp in gsub.
|
* ext/extmk.rb.in (create_makefile): use Regexp in gsub.
|
||||||
|
@ -270,10 +270,12 @@ The variable ruby-indent-level controls the amount of indentation.
|
|||||||
(forward-char -1)
|
(forward-char -1)
|
||||||
(or (looking-at ruby-operator-re)
|
(or (looking-at ruby-operator-re)
|
||||||
(looking-at "[\\[({,;]")
|
(looking-at "[\\[({,;]")
|
||||||
(and (or (eq option 'modifier)
|
(and (or (not (eq option 'heredoc))
|
||||||
(not (eq option 'heredoc))
|
|
||||||
(< space 0))
|
(< 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)
|
(and (looking-at ruby-symbol-re)
|
||||||
(skip-chars-backward ruby-symbol-chars)
|
(skip-chars-backward ruby-symbol-chars)
|
||||||
(cond
|
(cond
|
||||||
|
Loading…
x
Reference in New Issue
Block a user