From 7d6aa06c1a9f571df99680ebf21e12f80c5e8720 Mon Sep 17 00:00:00 2001 From: Andreas Neiser Date: Mon, 12 Jan 2015 17:45:33 +0100 Subject: [PATCH] Base: create_project: allow whitespace in prj statements at end of line... --- base/create_project.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; } -- 2.43.0