From 7609e1a6246b8ce5796afe4796bd949a3188ce7f Mon Sep 17 00:00:00 2001 From: Mike West Date: Sun, 21 Nov 2010 16:36:14 +0100 Subject: [PATCH] Adding Ruby block comment syntax. Working towards GH-22. --- lib/rocco.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/rocco.rb b/lib/rocco.rb index 0b2cbb6..3c77ece 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -202,14 +202,14 @@ class Rocco 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 }, }