Subject: | Quoted cell names absorb terminating whitespace |
A cell declaration like this:
modname \UU_cellname (...
gets stored in the parser as "\UU_cellname " (note trailing space).
This isn't a problem if the cell name is simply read in and then written
back out later, but if you want to use, for example, $mod->find_cell, it
will fail without the embedded space.
The solution is simple and a patch is attached.
Regards,
Jeff Trull
Subject: | cellname_space.diff |
--- Verilog-Perl-2.361/Parser.pm 2006-10-02 06:22:50.000000000 -0700
+++ Verilog-Perl-2.361-mrhack/Parser.pm 2007-01-05 15:06:32.924728000 -0800
@@ -406,7 +406,7 @@
$self->{inquote} = 1;
}
elsif (($text =~ s/^([a-zA-Z_\`\$][a-zA-Z0-9_\`\$]*)//)
- || ($text =~ s/^(\\\S+\s+)//)) { #cseddon - escaped identifiers
+ || ($text =~ s/^(\\\S+)\s+//)) { #cseddon - escaped identifiers
my $token = $1;
if (!$self->{inquote}) {
if (Verilog::Language::is_keyword($token)) {