From 3f9f746072736ee9eff19829dfe3021ac03c568a Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 19 Mar 2005 14:48:35 +0000 Subject: * misc/ruby-mode.el (ruby-expr-beg): returned true always. fixed: [ruby-list:40683] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 12 +++++++++--- misc/ruby-mode.el | 3 +-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d346f5907f..7957857a3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,14 @@ +Sat Mar 19 23:48:10 2005 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-expr-beg): returned true always. + fixed: [ruby-list:40683] + Sat Mar 19 00:41:02 2005 Hidetoshi NAGAI * ext/tk/lib/tk/font.rb: add some TkFont class methods to get font - information without creating a TkFont object. + information without creating a TkFont object. - * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix and define some + * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix and define some classes for components of Tk::TreeCtrl Thu Mar 17 17:42:13 2005 Yukihiro Matsumoto @@ -551,7 +556,8 @@ Fri Feb 11 11:33:53 2005 Tanaka Akira Fri Feb 11 06:30:07 2005 George Ogata - * misc/ruby-mode.el: [ruby-core:04415] + * misc/ruby-mode.el: ignore parenthesis inside heredoc. + [ruby-core:04415] Fri Feb 11 04:54:13 2005 Tilman Sauerbeck diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 9866bb3fbf..0218fe55ce 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -312,8 +312,7 @@ The variable ruby-indent-level controls the amount of indentation. (or (eq (char-syntax (char-before (point))) ?w) (ruby-special-char-p)))) nil) - ((or (goto-char start) - (looking-at ruby-operator-re) + ((or (save-excursion (goto-char start) (looking-at ruby-operator-re)) (looking-at "[\\[({,;]") (and (or (not (eq option 'heredoc)) (< space 0)) -- cgit v1.2.3