summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-11-26 09:07:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-11-26 09:07:26 +0000
commit806ff7412735cc554d9fd79e550466e7ba9d0f2a (patch)
treec8afffebb66d490bb1fd6e031cec6edb2fa487b9 /misc
parent1ad0350eed7825686e32e1fd6d058c5c5f7ca213 (diff)
downloadruby-806ff7412735cc554d9fd79e550466e7ba9d0f2a.tar.gz
ruby-806ff7412735cc554d9fd79e550466e7ba9d0f2a.tar.xz
ruby-806ff7412735cc554d9fd79e550466e7ba9d0f2a.zip
mark_end_proc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 41fd1f66f..d5dd137af 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)