summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-20 22:27:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-20 22:27:30 +0000
commitd0527b05d87cb62b50dc9757266caf1a3a830486 (patch)
tree319b6546ab78383c9104e7d296d674db31da66f3 /misc
parent85ce703fabc94df19aedf130baad81cb4870fa88 (diff)
* misc/ruby-mode.el (ruby-parse-partial): keywords must not be
preceded by @ or $. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc')
-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 304c481..b416951 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