mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
Support relative includes in tests
Since we inline the test file, rather than include it, relative includes from this inlined code would not work.
This commit is contained in:
@@ -13,7 +13,7 @@ ARGV.each do |file|
|
||||
p.each_line do |line|
|
||||
if line =~ /^\s*#(include|import)\b/
|
||||
includes << "#line #{lineno} \"#{p.realpath}\"\n"
|
||||
includes << line
|
||||
includes << line.sub(/"(.*?)"/) { '"' + File.expand_path($1, p.parent) + '"' }
|
||||
else
|
||||
body << "#line #{lineno} \"#{p.realpath}\"\n"
|
||||
body << line
|
||||
|
||||
Reference in New Issue
Block a user