]> git.eshelyaron.com Git - emacs.git/commit
Fix quote escaping in ruby-toggle-string-quotes
authorSriram Thaiyar <sriram.thaiyar@gmail.com>
Wed, 22 Jun 2016 16:21:26 +0000 (09:21 -0700)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 27 Jun 2016 04:31:39 +0000 (07:31 +0300)
commit7f02dedfcae6ba0e3a646c1367c908af9b3dbe1d
tree1d2880f718e78d7170655a9eae65bdff08eea36c
parentdd98ee8992c3246861e44447ffcd02886a52878e
Fix quote escaping in ruby-toggle-string-quotes

* lisp/progmodes/ruby-mode.el (ruby-toggle-string-quotes):
Change logic to quote based on the current quote of the string.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-toggle-string-quotes-quotes-correctly): Add test.

Copyright-paperwork-exempt: yes
lisp/progmodes/ruby-mode.el
test/lisp/progmodes/ruby-mode-tests.el