mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	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
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue