Improve Syntax Error Messages and Fix Comments #29
| @ -1,5 +1,5 @@ | |||||||
| 
 | 
 | ||||||
| // Test comment. | # Test comment. | ||||||
| @log_info("game is loading") | @log_info("game is loading") | ||||||
| 
 | 
 | ||||||
| return { | return { | ||||||
|  | |||||||
| @ -119,7 +119,7 @@ pub const Tokenizer = struct { | |||||||
| 				'#' => { | 				'#' => { | ||||||
| 					cursor += 1; | 					cursor += 1; | ||||||
| 
 | 
 | ||||||
| 					while (cursor < self.source.len and self.source[cursor] == '\n') { | 					while (cursor < self.source.len and self.source[cursor] != '\n') { | ||||||
| 						cursor += 1; | 						cursor += 1; | ||||||
| 					} | 					} | ||||||
| 				}, | 				}, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user