зеркало из https://github.com/github/ruby.git
* misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a190741da4
Коммит
6b0dc7fd81
|
@ -1,3 +1,7 @@
|
|||
Tue Mar 8 23:10:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
|
||||
|
||||
Tue Mar 8 21:44:49 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_rand.c: parenthesize macro arguments.
|
||||
|
|
|
@ -601,7 +601,8 @@ The variable ruby-indent-level controls the amount of indentation.
|
|||
(goto-char pnt)
|
||||
)
|
||||
((looking-at "[])}]")
|
||||
(if (ruby-deep-indent-paren-p (matching-paren (char-after)))
|
||||
(if (ruby-deep-indent-paren-p (matching-paren (char-after))
|
||||
(save-excursion (ruby-backward-sexp) (point)))
|
||||
(setq depth (cdr (car pcol)) pcol (cdr pcol))
|
||||
(setq depth (1- depth)))
|
||||
(setq nest (cdr nest))
|
||||
|
|
Загрузка…
Ссылка в новой задаче