summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el2
1 files changed, 2 insertions, 0 deletions
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