summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/ruby-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 9116e73e7d..61c6d9378b 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -639,7 +639,7 @@ An end of a defun is found by moving forward from the beginning of one."
(defvar ruby-font-lock-keywords
(list
(cons (concat
- "\\(^\\|[^_:.]\\|\\.\\.\\)\\b\\("
+ "\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\("
(mapconcat
'identity
'("alias"
@@ -679,7 +679,7 @@ An end of a defun is found by moving forward from the beginning of one."
"while"
)
"\\|")
- "\\)\\b")
+ "\\)\\>[^_]")
2)
;; variables
'("\\b\\(nil\\|self\\|true\\|false\\)\\b"