mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	A "#" does start a comment, not a label.
This commit is contained in:
		
							parent
							
								
									31755ed1cf
								
							
						
					
					
						commit
						cfdc9fc50e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -698,6 +698,9 @@ static void handle_label(std::string &command, bool &from_to_active, const std:: | ||||||
| 	while (pos < GetSize(command) && (command[pos] == ' ' || command[pos] == '\t')) | 	while (pos < GetSize(command) && (command[pos] == ' ' || command[pos] == '\t')) | ||||||
| 		pos++; | 		pos++; | ||||||
| 
 | 
 | ||||||
|  | 	if (pos < GetSize(command) && command[pos] == '#') | ||||||
|  | 		return; | ||||||
|  | 
 | ||||||
| 	while (pos < GetSize(command) && command[pos] != ' ' && command[pos] != '\t' && command[pos] != '\r' && command[pos] != '\n') | 	while (pos < GetSize(command) && command[pos] != ' ' && command[pos] != '\t' && command[pos] != '\r' && command[pos] != '\n') | ||||||
| 		label += command[pos++]; | 		label += command[pos++]; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue