rocco-obb 0.75 → 0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rocco.rb +2 -1
- data/rocco.gemspec +1 -1
- metadata +3 -3
data/lib/rocco.rb
CHANGED
|
@@ -110,6 +110,7 @@ class Rocco
|
|
|
110
110
|
end
|
|
111
111
|
if @options[:comment_chars][:multi].kind_of?(String)
|
|
112
112
|
@comment_pattern = Regexp.new("#{@options[:comment_chars][:single]}|#{@options[:comment_chars][:multi]}", Regexp::MULTILINE)
|
|
113
|
+
puts @comment_pattern.source
|
|
113
114
|
else
|
|
114
115
|
@comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars][:single]}\s?")
|
|
115
116
|
end
|
|
@@ -177,7 +178,7 @@ class Rocco
|
|
|
177
178
|
"cpp" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
|
178
179
|
"java" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
|
179
180
|
"js" => { :single => "//", :multi => { :start => "/**", :middle => "*", :end => "*/" } },
|
|
180
|
-
"php" => { :single => "\\s//([^\\n]*)", :multi => "\/\\*\\*(.*?)\\*{1,2}
|
|
181
|
+
"php" => { :single => "\\s//([^\\n]*)", :multi => "\/\\*\\*(.*?)\\*{1,2}\\/" },
|
|
181
182
|
"lua" => { :single => "--", :multi => nil },
|
|
182
183
|
"python" => { :single => "#", :multi => { :start => '"""', :middle => nil, :end => '"""' } },
|
|
183
184
|
"ruby" => { :single => "#", :multi => nil },
|
data/rocco.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rocco-obb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 147
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: "0.
|
|
8
|
+
- 76
|
|
9
|
+
version: "0.76"
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Ryan Tomayko
|