aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ruby-style.el
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 22:30:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 22:30:34 +0000
commit2d1c5d2c248938d0a957c2c811fcb40b7cf81e0b (patch)
tree697d7bd0071857fd1b9218855f9d4debe923ab89 /misc/ruby-style.el
parent0771b987a46a7533a0af1e4e936a4339944511c1 (diff)
downloadruby-2d1c5d2c248938d0a957c2c811fcb40b7cf81e0b.tar.gz
* misc/*.el: merged the following patches from Nathan Weizenbaum
<nex342 at gmail.com>. [ruby-core:18424] * misc/ruby-mode.el: improve here-doc performance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-style.el')
-rw-r--r--misc/ruby-style.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/misc/ruby-style.el b/misc/ruby-style.el
index 1915419056..b99e71b35c 100644
--- a/misc/ruby-style.el
+++ b/misc/ruby-style.el
@@ -21,7 +21,7 @@
(save-excursion
(back-to-indentation)
(unless (progn (backward-up-list) (back-to-indentation)
- (> (point) (cdr x)))
+ (> (point) (cdr x)))
(goto-char (cdr x))
(if (looking-at "\\<case\\|default\\>") '*))))
@@ -29,14 +29,14 @@
(save-excursion
(back-to-indentation)
(unless (progn (backward-up-list) (back-to-indentation)
- (>= (point) (cdr x)))
+ (>= (point) (cdr x)))
(goto-char (cdr x))
(condition-case ()
- (progn
- (backward-up-list)
- (backward-sexp 2)
- (if (looking-at "\\<switch\\>") '/))
- (error)))))
+ (progn
+ (backward-up-list)
+ (backward-sexp 2)
+ (if (looking-at "\\<switch\\>") '/))
+ (error)))))
(require 'cc-styles)
(c-add-style