mirror of https://github.com/YosysHQ/yosys.git
Update passes/techmap/libparse.cc
Allow Liberty canonical identifier including double quotes in if-body and pass-through for Synopsys-style unquoted identifiers issue#3498 Co-authored-by: Aki <201479+lethalbit@users.noreply.github.com>
This commit is contained in:
parent
17cfc969dd
commit
c855502bd5
|
@ -236,12 +236,9 @@ LibertyAst *LibertyParser::parse()
|
|||
|
||||
if (tok == ':' && ast->value.empty()) {
|
||||
tok = lexer(ast->value);
|
||||
if (tok != 'v') {
|
||||
//Synopsys-style unquoted identifiers issue#3498
|
||||
} else {
|
||||
//Liberty canonical identifier including double quotes
|
||||
tok = lexer(str);
|
||||
}
|
||||
if (tok == 'v') {
|
||||
tok = lexer(str);
|
||||
}
|
||||
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
|
||||
ast->value += tok;
|
||||
tok = lexer(str);
|
||||
|
|
Loading…
Reference in New Issue