diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl index ef024fd05c..34763cc730 100644 --- a/template/prelude.c.tmpl +++ b/template/prelude.c.tmpl @@ -42,6 +42,7 @@ class Prelude result = [@preludes.size, @vpath.strip(filename), lines, sub] @vpath.foreach(filename) do |line| @preludes[filename] ||= result + next if /\A\s*\#.*\n\z/ =~ line line.sub!(/(?:^|\s+)\#(?:$|[#\s].*)/, '') line.sub!(/require(_relative)?\s*\(?\s*(["'])(.*?)(?:\.rb)?\2\)?/) do orig, rel, path = $&, $2, $3