Count line breaks inside strings
This commit is contained in:
		
							parent
							
								
									2e6cafb1cb
								
							
						
					
					
						commit
						a02ba712b8
					
				@ -107,6 +107,8 @@ loop:
 | 
			
		||||
				l.emit(itemString)
 | 
			
		||||
				break loop
 | 
			
		||||
			}
 | 
			
		||||
		case '\n':
 | 
			
		||||
			l.lineNum++
 | 
			
		||||
		case EOF:
 | 
			
		||||
			return l.errorf("String hits EOF")
 | 
			
		||||
		default:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user