diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-18 05:17:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-18 05:17:53 +0000 |
commit | 3432cecf246414d63d55e70aeb5697e62198618f (patch) | |
tree | 1ad06225a1f843edbc7ab43778e9d7bbd3beeb9a /misc/ruby-mode.el | |
parent | 4dd348b2b49a668172fe9cd2e93a1e054682f773 (diff) |
* 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
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r-- | misc/ruby-mode.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 956674e7d9..ec70feedd5 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -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") |