verilog: Create non-existent nodes if on LHS of `assign`

Fixes #89

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2024-05-20 12:59:42 +02:00
parent bf4112db07
commit f2f082e627
1 changed files with 4 additions and 0 deletions

View File

@ -1797,6 +1797,10 @@ skip_endmodule:
}
else {
lhs = LookupObject(nexttok, CurrentCell);
if (lhs == NULL) {
Node(nexttok);
lhs = LookupObject(nexttok, CurrentCell);
}
strcpy(noderoot, nexttok);
}
SkipTokComments(VLOG_DELIMITERS);