mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	fix r57089
* parse.y (parser_heredoc_identifier): fix multiline here document identifier condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									681c22eb09
								
							
						
					
					
						commit
						9c89812664
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								parse.y
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								parse.y
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -6433,7 +6433,7 @@ parser_heredoc_identifier(struct parser_params *parser)
 | 
			
		|||
	term = c;
 | 
			
		||||
	while ((c = nextc()) != -1 && c != term) {
 | 
			
		||||
	    if (tokadd_mbchar(c) == -1) return 0;
 | 
			
		||||
	    if (c == '\n') newline = 1;
 | 
			
		||||
	    if (!newline && c == '\n') newline = 1;
 | 
			
		||||
	    else if (newline) newline = 2;
 | 
			
		||||
	}
 | 
			
		||||
	if (c == -1) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue