fix function ptr arg names
This commit is contained in:
@@ -12,7 +12,7 @@ static class FileMatcher
|
||||
Runtime.Assert(Directory.Exists(directory), scope $"No such directory {directory}");
|
||||
void Dir(StringView dir)
|
||||
{
|
||||
for (let element in Directory.Enumerate(dir))
|
||||
dir: for (let element in Directory.Enumerate(dir))
|
||||
{
|
||||
let path = element.GetFilePath(..scope .());
|
||||
path.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
|
||||
@@ -23,11 +23,18 @@ static class FileMatcher
|
||||
}
|
||||
let relpath = Path.GetRelativePath(path, directory, ..scope .());
|
||||
for (let pattern in patterns)
|
||||
if (IsMatch(pattern, relpath))
|
||||
{
|
||||
callback(relpath);
|
||||
break;
|
||||
}
|
||||
{
|
||||
if (!pattern.StartsWith('^') && !pattern.StartsWith('!')) continue;
|
||||
if (IsMatch(pattern[1...], relpath))
|
||||
continue dir;
|
||||
}
|
||||
for (let pattern in patterns)
|
||||
{
|
||||
if (pattern.StartsWith('^') || pattern.StartsWith('!')) continue;
|
||||
if (!IsMatch(pattern, relpath)) continue;
|
||||
callback(relpath);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Dir(directory);
|
||||
|
||||
Reference in New Issue
Block a user