From 932b93fd12a3da6748b21ce74caf998a6d97cdbd Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 5 Sep 2020 13:18:00 +0900 Subject: Skip C comments from scan target; close #5072 The original PR was skipping Ruby comments as well, but caused some issues in test suites. --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index ec6ed32bd..0088a2e2a 100644 --- a/Rakefile +++ b/Rakefile @@ -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"]*)"/), -- cgit v1.2.3