mruby-compiler/mrbgem.rake: fix regexp pattern; close #5591

parent 9935cf1a
......@@ -32,7 +32,7 @@ if MRuby::Build.current.name == "host"
def replace_line_directive(path)
content = File.read(path).gsub(%r{
^\#line\s+\d+\s+"\K.*$ | # #line directive
^\#line\s+\d+\s+"\K.*(?="$) | # #line directive
^/\*\s+Command-line:.*\s\K\S+(?=\s+\*/$) # header comment in lex.def
}x, &:relative_path)
File.write(path, content)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment