* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after the end of a percent literal.
This commit is contained in:
parent
8f48d13181
commit
8212d9c0da
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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) ?=)
|
||||
|
|
|
@ -299,3 +299,6 @@ def qux
|
|||
tee
|
||||
end
|
||||
end
|
||||
|
||||
%^abc^
|
||||
ddd
|
||||
|
|
Loading…
Add table
Reference in a new issue