mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Added support for empty lines to here documents
This commit is contained in:
		
							parent
							
								
									37aa2e02db
								
							
						
					
					
						commit
						269e37e969
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -333,8 +333,8 @@ void Frontend::extra_args(std::istream *&f, std::string &filename, std::vector<s | |||
| 					if (buffer.size() > 0 && (buffer[buffer.size() - 1] == '\n' || buffer[buffer.size() - 1] == '\r')) | ||||
| 						break; | ||||
| 				} | ||||
| 				int indent = buffer.find_first_not_of(" \t\r\n"); | ||||
| 				if (buffer.substr(indent, eot_marker.size()) == eot_marker) | ||||
| 				size_t indent = buffer.find_first_not_of(" \t\r\n"); | ||||
| 				if (indent != std::string::npos && buffer.substr(indent, eot_marker.size()) == eot_marker) | ||||
| 					break; | ||||
| 				last_here_document += buffer; | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue