зеркало из https://github.com/github/ruby.git
ruby-additional.el: unquoted code block
* misc/ruby-additional.el (ruby-insert-heredoc-code-block): make code between "begin;" and "end;" unquoted. still quotable before "begin;". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
708f1e74b7
Коммит
508fb9fba1
|
@ -162,7 +162,7 @@ Emacs to Ruby."
|
|||
"Insert indented here document code block"
|
||||
(interactive "P")
|
||||
(let ((c (if arg "~" "-")))
|
||||
(insert "\"#{<<" c "\"begin\;\"}\\n#{<<" c "\"end;\"}\""))
|
||||
(insert "\"#{<<" c "\"begin\;\"}\\n#{<<" c "'end;'}\""))
|
||||
(end-of-line)
|
||||
(if (eobp) (insert "\n") (forward-char))
|
||||
(indent-region (point)
|
||||
|
|
Загрузка…
Ссылка в новой задаче