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.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