summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-18 05:17:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-18 05:17:53 +0000
commite6d0bcdc994a2e91858d3d7402d09b9632b51a63 (patch)
tree1ad06225a1f843edbc7ab43778e9d7bbd3beeb9a
parentc297f6673cce687ccc089c28d70042c2e524a352 (diff)
downloadruby-e6d0bcdc994a2e91858d3d7402d09b9632b51a63.tar.gz
ruby-e6d0bcdc994a2e91858d3d7402d09b9632b51a63.tar.xz
ruby-e6d0bcdc994a2e91858d3d7402d09b9632b51a63.zip
* misc/ruby-mode.el (ruby-block-hanging-re): rescue block was too
indented. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--misc/ruby-mode.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 54e36477d..4054f88ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 956674e7d..ec70feedd 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")