Fix empty strings being parsed incorrectly
This commit is contained in:
		
							parent
							
								
									5c08a1b63e
								
							
						
					
					
						commit
						c071ca82aa
					
				| @ -6,7 +6,7 @@ let pr = lambda (str): | ||||
| 	@print(str) | ||||
| end | ||||
| 
 | ||||
| pr("eeee") | ||||
| pr("") | ||||
| 
 | ||||
| while i < 5: | ||||
| 	pr("hello, world") | ||||
|  | ||||
| @ -325,8 +325,6 @@ pub const Tokenizer = struct { | ||||
| 
 | ||||
| 					const begin = cursor; | ||||
| 
 | ||||
| 					cursor += 1; | ||||
| 
 | ||||
| 					while (cursor < self.source.len) switch (self.source[cursor]) { | ||||
| 						'"' => break, | ||||
| 						else => cursor += 1, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user