]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/ruby-mode.el
Do not tokenize a comment before continuation as ';'
[gnu-emacs] / lisp / progmodes / ruby-mode.el
index 35d0cc44ed8c252d2046c6bece1d7c02d8ee5878..edd89b30c9f901e24aa71a77050b971f94738acc 100644 (file)
@@ -443,7 +443,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
                   (member (save-excursion (ruby-smie--backward-token))
                           '("iuwu-mod" "and" "or")))
              (save-excursion
-               (forward-comment 1)
+               (forward-comment (point-max))
                (looking-at "&?\\."))))))
 
 (defun ruby-smie--redundant-do-p (&optional skip)