From 6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 22 Jun 2022 14:46:51 +0200 Subject: Rename `Whitespace` token to `SpaceOrTab` --- src/construct/heading_setext.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/construct/heading_setext.rs') diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs index 924f840..0cb8687 100644 --- a/src/construct/heading_setext.rs +++ b/src/construct/heading_setext.rs @@ -202,7 +202,7 @@ fn text_line_start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { let index = tokenizer.events.len() - 2; // Link the whitespace, if it exists. - if tokenizer.events[index].token_type == TokenType::Whitespace { + if tokenizer.events[index].token_type == TokenType::SpaceOrTab { link(&mut tokenizer.events, index); } @@ -263,7 +263,7 @@ fn underline_sequence_start(tokenizer: &mut Tokenizer, code: Code) -> StateFnRes let mut prefix = 0; if let Some(event) = tail { - if event.token_type == TokenType::Whitespace { + if event.token_type == TokenType::SpaceOrTab { let span = from_exit_event(&tokenizer.events, tokenizer.events.len() - 1); prefix = span.end_index - span.start_index; } -- cgit