mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	verilog: fix string literal regular expression.
A backslash was improperly quoted, causing string literal matching to fail when the final token before a closing quote was an escaped backslash.
This commit is contained in:
		
							parent
							
								
									cd71f190cd
								
							
						
					
					
						commit
						40aa7eaf93
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -336,7 +336,7 @@ TIME_SCALE_SUFFIX [munpf]?s
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
\"		{ BEGIN(STRING); }
 | 
			
		||||
<STRING>([^\"]|\\.)+	{ yymore(); real_location = old_location; }
 | 
			
		||||
<STRING>([^\\"]|\\.)+	{ yymore(); real_location = old_location; }
 | 
			
		||||
<STRING>\"	{
 | 
			
		||||
	BEGIN(0);
 | 
			
		||||
	char *yystr = strdup(yytext);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue