summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-29 12:12:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-29 12:12:54 +0000
commitf4c909b96551cad967140448db96a02362d6d710 (patch)
tree461dac2b46423e5a3ac31724e2b6720155d52cd1 /misc/ruby-mode.el
parent05a0c30adcf0a8e0d918b8ed32804e9f8c163003 (diff)
* misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash
key labels. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 2f685f8b8d..2a6f36f20c 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -973,6 +973,7 @@ An end of a defun is found by moving forward from the beginning of one."
(condition-case nil
(while (> i 0)
(skip-syntax-forward " ")
+ (if (looking-at ",\\s *") (goto-char (match-end 0)))
(cond ((looking-at "\\?\\(\\\\[CM]-\\)*\\\\?\\S ")
(goto-char (match-end 0)))
((progn