From dbfbedd3d0f3afcfb811eae0e1a7b1c33fb27735 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 15 Mar 2016 03:15:18 +0200 Subject: Do not tokenize a comment before continuation as ';' * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Account for a comment right after point. --- lisp/progmodes/ruby-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/progmodes/ruby-mode.el') diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 35d0cc44ed8..edd89b30c9f 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -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) -- cgit v1.2.1