fn skip_to_sol(&mut self) {
		if self.cursor.pos() > 0 {
			// Skip to next eol token
			self.cursor.consume_until(|Token { kind, .. }| kind == &TokenKind::Eol);
			// Skip eol tokens
			self.cursor.consume_while(|Token { kind, .. }| kind == &TokenKind::Eol);
		}
	}
// Skips to the first token after a eol
Skips to the first token after a eol
Skips to the first token after a eol
fn skip_to_sol(&mut self) {
		if self.cursor.pos() > 0 {
			// Skip to next eol token
			self.cursor.consume_until(|Token { kind, .. }| kind == &TokenKind::Eol);
			// Skip eol tokens
			self.cursor.consume_while(|Token { kind, .. }| kind == &TokenKind::Eol);
		}
	}
fn skip_to_sol ( & mut self ) { if self . cursor . pos ( ) > 0 { // Skip to next eol token self . cursor . consume_until ( | Token { kind , .. } | kind == & TokenKind :: Eol ) ; // Skip eol tokens self . cursor . consume_while ( | Token { kind , .. } | kind == & TokenKind :: Eol ) ; } }
Skips to the first token after a eol
Skips to the first token after a eol
&mut self