mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
- tweaked regex for searching includes (thanks mjaygo!)
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@170 bf332499-1b4d-0410-844d-d2d48d5cc64c
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
|
||||
|
||||
+1
-1
@@ -45,7 +45,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