diff options
Diffstat (limited to 'sample/ruby-mode.el')
-rw-r--r-- | sample/ruby-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/ruby-mode.el b/sample/ruby-mode.el index 33e9d2ce4d..f7e2fddbfa 100644 --- a/sample/ruby-mode.el +++ b/sample/ruby-mode.el @@ -646,7 +646,7 @@ An end of a defun is found by moving forward from the beginning of one." "\\)[ \n\t()]") 2) ;; variables - '("\\(^\\|[^_]\\)\\b\\(nil\\|self\\|true\\|false\\)\\b[^_]" + '("\\(^\\|[^_]\\)\\b\\(nil\\|self\\|true\\|false\\)\\b\\([^_]\\|$\\)" 2 font-lock-variable-name-face) ;; variables '("\\[$@].\\([a-zA-Z0-9_]\\)" |