Skip C comments from scan target; close #5072

The original PR was skipping Ruby comments as well, but caused some
issues in test suites.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-09-05 13:18:00 +09:00
parent a4c5824e59
commit 932b93fd12
+1
View File
@@ -163,6 +163,7 @@ op_table = {
file presym_file => cfiles+rbfiles+psfiles+[__FILE__] do
csymbols = cfiles.map do |f|
src = File.read(f)
src.gsub!(/\/\/.+(\n|$)/, "\n")
[src.scan(/intern_lit\([^\n"]*"([^\n "]*)"/),
src.scan(/mrb_define_method\([^\n"]*"([^\n"]*)"/),
src.scan(/mrb_define_class_method\([^\n"]*"([^\n"]*)"/),