From 2b49047143d1e10d6dd5d2359dba2d302fa07c66 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 26 Nov 1999 09:07:26 +0000 Subject: mark_end_proc git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-mode.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'misc/ruby-mode.el') diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 41fd1f66f2..d5dd137af0 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -663,7 +663,6 @@ An end of a defun is found by moving forward from the beginning of one." "return" "then" "throw" - "self" "super" "unless" "undef" @@ -675,8 +674,8 @@ An end of a defun is found by moving forward from the beginning of one." "\\)\\>[^_]") 2) ;; variables - '("\\b\\(nil\\|self\\|true\\|false\\)\\b" - 1 font-lock-variable-name-face) + '("\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(nil\\|self\\|true\\|false\\)\\b[^_]" + 2 font-lock-variable-name-face) ;; variables '("[$@].\\(\\w\\|_\\)*" 0 font-lock-variable-name-face) -- cgit v1.2.3