[ruby-core:81013] [Ruby trunk Feature#13518] Indented multiline comments

From: tscheingeld32@...
Date: 2017-05-06 22:13:30 UTC
List: ruby-core #81013
Issue #13518 has been updated by tscheingeld (Terry Scheingeld).


duerst (Martin D端rst) wrote:
> `=begin`/`=end` are rare, and it's better to make them stick out.

I would make the case that `=begin`/`=end` is rare because it can't be indented. Multiline comments are very handy. It makes syntax highlighting much cleaner for embedded content (in my case, documentation) if every line doesn't have to start with a comment from the outer language.

----------------------------------------
Feature #13518: Indented multiline comments
https://bugs.ruby-lang.org/issues/13518#change-64677

* Author: tscheingeld (Terry Scheingeld)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
I'd like to submit the idea that multiline comments could be indented. That is, `=begin` and `=end` do not have to start at column zero. That would allow for more flexibility in documenting and commenting code.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next