зеркало из https://github.com/github/ruby.git
* misc/ruby-mode.el (ruby-block-hanging-re): rescue block was too
indented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4dd348b2b4
Коммит
3432cecf24
|
@ -1,3 +1,8 @@
|
|||
Mon Feb 18 14:06:28 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* misc/ruby-mode.el (ruby-block-hanging-re): rescue block was too
|
||||
indented.
|
||||
|
||||
Sun Feb 17 23:41:37 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* mkconfig.rb (Config::expand): expand ${} too.
|
||||
|
|
|
@ -25,8 +25,12 @@
|
|||
"\\(\\s *\\(class\\|module\\|def\\)\\)\\|if\\|unless\\|case\\|while\\|until\\|for\\|begin"
|
||||
)
|
||||
|
||||
(defconst ruby-modifier-beg-re
|
||||
"if\\|unless\\|while\\|until"
|
||||
)
|
||||
|
||||
(defconst ruby-modifier-re
|
||||
"if\\|unless\\|while\\|until\\|rescue"
|
||||
(concat ruby-modifier-beg-re "\\|rescue")
|
||||
)
|
||||
|
||||
(defconst ruby-block-mid-re
|
||||
|
@ -38,7 +42,7 @@
|
|||
)
|
||||
|
||||
(defconst ruby-block-hanging-re
|
||||
(concat ruby-modifier-re "\\|" ruby-block-op-re)
|
||||
(concat ruby-modifier-beg-re "\\|" ruby-block-op-re)
|
||||
)
|
||||
|
||||
(defconst ruby-block-end-re "end")
|
||||
|
|
Загрузка…
Ссылка в новой задаче