mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
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.
This commit is contained in:
parent
040362001d
commit
dbfbedd3d0
@ -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)
|
||||
|
@ -222,7 +222,7 @@ def begin
|
||||
bar
|
||||
|
||||
# https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
|
||||
foo
|
||||
foo # comment intended to confuse the tokenizer
|
||||
.bar
|
||||
|
||||
z = {
|
||||
|
Loading…
Reference in New Issue
Block a user