rocco-obb 0.7 → 0.71
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rocco.rb +3 -3
- data/rocco.gemspec +1 -1
- metadata +3 -3
data/lib/rocco.rb
CHANGED
@@ -108,10 +108,10 @@ class Rocco
|
|
108
108
|
elsif @options[:language] != defaults[:language]
|
109
109
|
@options[:comment_chars] = generate_comment_chars()
|
110
110
|
end
|
111
|
-
if
|
112
|
-
@comment_pattern = Regexp.new("
|
111
|
+
if @options[:comment_chars][:multi].kind_of?(String)
|
112
|
+
@comment_pattern = Regexp.new("/#{@options[:comment_chars][:single]}|#{@options[:comment_chars][:multi]}/m")
|
113
113
|
else
|
114
|
-
|
114
|
+
@comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars][:single]}\s?")
|
115
115
|
end
|
116
116
|
|
117
117
|
@sections = highlight(split(parse(@data)))
|
data/rocco.gemspec
CHANGED
metadata
CHANGED