Permalink
Browse files

Adding Ruby block comment syntax.

Working towards GH-22.
  • Loading branch information...
1 parent ba93d23 commit 7609e1a6246b8ce5796afe4796bd949a3188ce7f @mikewest mikewest committed Nov 21, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/rocco.rb
View
@@ -202,14 +202,14 @@ def generate_comment_chars
language = @options[:language]
comment_styles = {
"bash" => { :single => "#", :multi => nil },
- "c" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
- "coffee-script" => { :single => "#", :multi => { :start => "###", :middle => nil, :end => "###" } },
- "cpp" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
- "java" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
- "js" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
+ "c" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
+ "coffee-script" => { :single => "#", :multi => { :start => "###", :middle => nil, :end => "###" } },
+ "cpp" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
+ "java" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
+ "js" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
"lua" => { :single => "--", :multi => nil },
- "python" => { :single => "#", :multi => { :start => '"""', :middle => nil, :end => '"""' } },
- "rb" => { :single => "#", :multi => nil },
+ "python" => { :single => "#", :multi => { :start => '"""', :middle => nil, :end => '"""' } },
+ "rb" => { :single => "#", :multi => { :start => '=begin', :middle => nil, :end => '=end' } },
"scheme" => { :single => ";;", :multi => nil },
}

0 comments on commit 7609e1a

Please sign in to comment.