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,10 +236,7 @@ LibertyAst *LibertyParser::parse()
|
||||||
|
|
||||||
if (tok == ':' && ast->value.empty()) {
|
if (tok == ':' && ast->value.empty()) {
|
||||||
tok = lexer(ast->value);
|
tok = lexer(ast->value);
|
||||||
if (tok != 'v') {
|
if (tok == 'v') {
|
||||||
//Synopsys-style unquoted identifiers issue#3498
|
|
||||||
} else {
|
|
||||||
//Liberty canonical identifier including double quotes
|
|
||||||
tok = lexer(str);
|
tok = lexer(str);
|
||||||
}
|
}
|
||||||
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
|
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
|
||||||
|
|
Loading…
Reference in New Issue