Adding Ruby block comment syntax.
Working towards GH-22.
This commit is contained in:
parent
ba93d23634
commit
7609e1a624
14
lib/rocco.rb
14
lib/rocco.rb
@ -202,14 +202,14 @@ class Rocco
|
|||||||
language = @options[:language]
|
language = @options[:language]
|
||||||
comment_styles = {
|
comment_styles = {
|
||||||
"bash" => { :single => "#", :multi => nil },
|
"bash" => { :single => "#", :multi => nil },
|
||||||
"c" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
"c" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
||||||
"coffee-script" => { :single => "#", :multi => { :start => "###", :middle => nil, :end => "###" } },
|
"coffee-script" => { :single => "#", :multi => { :start => "###", :middle => nil, :end => "###" } },
|
||||||
"cpp" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
"cpp" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
||||||
"java" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
"java" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
||||||
"js" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
"js" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
||||||
"lua" => { :single => "--", :multi => nil },
|
"lua" => { :single => "--", :multi => nil },
|
||||||
"python" => { :single => "#", :multi => { :start => '"""', :middle => nil, :end => '"""' } },
|
"python" => { :single => "#", :multi => { :start => '"""', :middle => nil, :end => '"""' } },
|
||||||
"rb" => { :single => "#", :multi => nil },
|
"rb" => { :single => "#", :multi => { :start => '=begin', :middle => nil, :end => '=end' } },
|
||||||
"scheme" => { :single => ";;", :multi => nil },
|
"scheme" => { :single => ";;", :multi => nil },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user