WIP: allow using nff as a diagnostics source #1
					 1 changed files with 4 additions and 0 deletions
				
			
		parser: skip newline tokens during expression parsing
				commit
				
					
					
						3e1003ba94
					
				
			
		|  | @ -466,6 +466,10 @@ impl Parser { | ||||||
| 
 | 
 | ||||||
|         // Check for operators
 |         // Check for operators
 | ||||||
|         while let Some(token) = self.peek() { |         while let Some(token) = self.peek() { | ||||||
|  |             if matches!(token.kind, TokenKind::Newline) { | ||||||
|  |                 self.advance(); | ||||||
|  |                 continue; | ||||||
|  |             } | ||||||
|             // Check for comparison operators
 |             // Check for comparison operators
 | ||||||
|             let operator = match &token.kind { |             let operator = match &token.kind { | ||||||
|                 TokenKind::Eq => BinaryOperator::Eq, |                 TokenKind::Eq => BinaryOperator::Eq, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue