From d0527b05d87cb62b50dc9757266caf1a3a830486 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 20 Dec 2002 22:27:30 +0000 Subject: [PATCH] * misc/ruby-mode.el (ruby-parse-partial): keywords must not be preceded by @ or $. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ misc/ruby-mode.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index d42301d8f8..6182517d69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Dec 21 07:27:24 2002 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-parse-partial): keywords must not be + preceded by @ or $. + Fri Dec 20 20:29:04 2002 Nobuyoshi Nakada * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c, diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 304c481a83..b416951b84 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -315,6 +315,8 @@ The variable ruby-indent-level controls the amount of indentation. (let ((pnt (point)) w re expand) (goto-char (match-beginning 0)) (cond + ((and (memq (char-before) '(?@ ?$)) (looking-at "\\sw")) + (goto-char pnt)) ((or (looking-at "\"") ;skip string (looking-at "`")) (cond