diff options
author | Heikki Linnakangas | 2014-12-17 19:55:26 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2014-12-17 19:55:26 +0000 |
commit | ce01548d4fdbc06dce59f90a3e4598162b1e8ea1 (patch) | |
tree | efc29197ca418c5a92a98b3071125953c47f247f /src/tools/msvc/MSBuildProject.pm | |
parent | c340494235111fb87e46b11ca6a87a7a43795f0f (diff) |
Clarify the regexp used to detect source files in MSVC builds.
The old pattern would match files with strange extensions like *.ry or
*.lpp. Refactor it to only include files with known extensions, and to make
it more readable.
Per Andrew Dunstan's suggestion.
Diffstat (limited to 'src/tools/msvc/MSBuildProject.pm')
-rw-r--r-- | src/tools/msvc/MSBuildProject.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm index e1c8d81549b..37958f95b55 100644 --- a/src/tools/msvc/MSBuildProject.pm +++ b/src/tools/msvc/MSBuildProject.pm @@ -127,7 +127,7 @@ EOF foreach my $fileNameWithPath (sort keys %{ $self->{files} }) { confess "Bad format filename '$fileNameWithPath'\n" - unless ($fileNameWithPath =~ /^(.*)\\([^\\]+)\.[r]?[cyl]$/); + unless ($fileNameWithPath =~ /^(.*)\\([^\\]+)\.(c|cpp|y|l|rc)$/); my $dir = $1; my $fileName = $2; if ($fileNameWithPath =~ /\.y$/ or $fileNameWithPath =~ /\.l$/) |