summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-05 13:18:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:19 +0900
commit932b93fd12a3da6748b21ce74caf998a6d97cdbd (patch)
tree39d00b00589986ab20911f7141d9a9ed4dbc60c6 /Rakefile
parenta4c5824e59c66a1132f38e1faf21926ddef58ca6 (diff)
downloadmruby-932b93fd12a3da6748b21ce74caf998a6d97cdbd.tar.gz
mruby-932b93fd12a3da6748b21ce74caf998a6d97cdbd.zip
Skip C comments from scan target; close #5072
The original PR was skipping Ruby comments as well, but caused some issues in test suites.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile1
1 files changed, 1 insertions, 0 deletions
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"]*)"/),