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:
parent
708f1e74b7
commit
508fb9fba1
@ -162,7 +162,7 @@ Emacs to Ruby."
|
|||||||
"Insert indented here document code block"
|
"Insert indented here document code block"
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(let ((c (if arg "~" "-")))
|
(let ((c (if arg "~" "-")))
|
||||||
(insert "\"#{<<" c "\"begin\;\"}\\n#{<<" c "\"end;\"}\""))
|
(insert "\"#{<<" c "\"begin\;\"}\\n#{<<" c "'end;'}\""))
|
||||||
(end-of-line)
|
(end-of-line)
|
||||||
(if (eobp) (insert "\n") (forward-char))
|
(if (eobp) (insert "\n") (forward-char))
|
||||||
(indent-region (point)
|
(indent-region (point)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user