From: Andreas Neiser Date: Mon, 12 Jan 2015 16:45:33 +0000 (+0100) Subject: Base: create_project: allow whitespace in prj statements at end of line... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=7d6aa06c1a9f571df99680ebf21e12f80c5e8720;p=trb3.git Base: create_project: allow whitespace in prj statements at end of line... --- diff --git a/base/create_project.pl b/base/create_project.pl index 9a20899..93fed0a 100755 --- a/base/create_project.pl +++ b/base/create_project.pl @@ -20,11 +20,11 @@ sub parsePRJ { open FH, "<" , $input; while (my $line = ) { chomp $line; - if ($line =~ m/^\s*set_option -([^\s]+)\s+"?([^"]+)"?$/) { + if ($line =~ m/^\s*set_option -([^\s]+)\s+"?([^"]+)"?\s*$/) { $options->{$1} = $2; } - if ($line =~ m/^\s*add_file -(vhdl|verilog|fpga_constraint)( -lib "?([^"\s]+)"?|)? "?([^"]+)"?$/g) { + if ($line =~ m/^\s*add_file -(vhdl|verilog|fpga_constraint)( -lib "?([^"\s]+)"?|)? "?([^"]+)"?\s*$/g) { push @files, [$3, $4]; }