mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-22 23:45:50 +08:00
- tweaked regex to better scan headers (thanks mjaygo!)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@76 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@ -39,7 +39,7 @@ module RakefileHelpers
|
||||
includes = []
|
||||
lines = File.readlines(filename)
|
||||
lines.each do |line|
|
||||
m = line.match(/#include \"(.*)\"/)
|
||||
m = line.match(/^\s*#include\s+\"\s*(.+\.[hH])\s*\"/)
|
||||
if not m.nil?
|
||||
includes << m[1]
|
||||
end
|
||||
|
Reference in New Issue
Block a user