mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	EOL is now accepted as ';' replacement on lines that look like: feature_xyz(option)
This commit is contained in:
		
							parent
							
								
									3b3b77291a
								
							
						
					
					
						commit
						9d9cc8a314
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -202,12 +202,11 @@ LibertyAst *LibertyParser::parse()
 | 
			
		|||
	{
 | 
			
		||||
		tok = lexer(str);
 | 
			
		||||
 | 
			
		||||
		if (tok == ';')
 | 
			
		||||
        // allow both ';' and new lines to 
 | 
			
		||||
        // terminate a statement.
 | 
			
		||||
		if ((tok == ';') || (tok == 'n'))
 | 
			
		||||
			break;
 | 
			
		||||
 | 
			
		||||
		if (tok == 'n')
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		if (tok == ':' && ast->value.empty()) {
 | 
			
		||||
			tok = lexer(ast->value);
 | 
			
		||||
			if (tok != 'v')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue