textmate / ruby.tmbundle

TextMate support for Ruby
178 stars 90 forks source link

Recognition of multi-line comments #2

Closed evanchaney closed 14 years ago

evanchaney commented 14 years ago

Issue

Ruby supports multi-line comments using the “=begin” and “=end” delimiters. Every physical line between the delimiters is ignored by the compiler. TextMate should recognize and display these delimiters and their contents as comments. (The Rails bundle should too.)

Source

Thomas, Dave, Chad Fowler and Andy Hunt. The Ruby Language. “Programming Ruby: The Pragmatic Programmer’s Guide.” Addison Wesley Longman, Inc., 2001. 30 December 2009 http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html.

evanchaney commented 14 years ago

Resolved. Multi-line comments are only recognized by both Ruby and TextMate when the delimiters are placed at the absolute beginning of the line (no indentation or whitespace). Oops!

textmate commented 14 years ago

Closing as “works correctly” then given that “absolute beginning of the line” is required by ruby.