* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t

after the end of a percent literal.
This commit is contained in:
Dmitry Gutov 2013-12-09 06:19:16 +02:00
parent 8f48d13181
commit 8212d9c0da
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-12-09 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after the end of a percent literal.
2013-12-09 Cameron Desautels <camdez@gmail.com> (tiny change)
* progmodes/ruby-mode.el (ruby-forward-string): Document. Handle

View file

@ -362,8 +362,8 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
(and (memq (char-before)
'(?\; ?- ?+ ?* ?/ ?: ?. ?, ?\[ ?\( ?\{ ?\\ ?& ?> ?< ?%
?~ ?^))
;; Make sure it's not the end of a regexp.
(not (eq (car (syntax-after (1- (point)))) 7)))
;; Not the end of a regexp or a percent literal.
(not (memq (car (syntax-after (1- (point)))) '(7 15))))
(and (eq (char-before) ?\?)
(equal (save-excursion (ruby-smie--backward-token)) "?"))
(and (eq (char-before) ?=)

View file

@ -299,3 +299,6 @@ def qux
tee
end
end
%^abc^
ddd