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/definition.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/construct/definition.rs') diff --git a/src/construct/definition.rs b/src/construct/definition.rs index 3dd1fbb..7f32858 100644 --- a/src/construct/definition.rs +++ b/src/construct/definition.rs @@ -57,7 +57,7 @@ //! * [`DefinitionTitleMarker`][TokenType::DefinitionTitleMarker] //! * [`DefinitionTitleString`][TokenType::DefinitionTitleString] //! * [`LineEnding`][TokenType::LineEnding] -//! * [`Whitespace`][TokenType::Whitespace] +//! * [`SpaceOrTab`][TokenType::SpaceOrTab] //! //! ## References //! @@ -179,7 +179,7 @@ fn destination_before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { let event = tokenizer.events.last().unwrap(); // Whitespace. - if (event.token_type == TokenType::LineEnding || event.token_type == TokenType::Whitespace) + if (event.token_type == TokenType::LineEnding || event.token_type == TokenType::SpaceOrTab) // Blank line not ok. && !matches!( code, @@ -291,7 +291,7 @@ fn title_before_after_optional_whitespace(tokenizer: &mut Tokenizer, code: Code) fn title_before_marker(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { let event = tokenizer.events.last().unwrap(); - if event.token_type == TokenType::LineEnding || event.token_type == TokenType::Whitespace { + if event.token_type == TokenType::LineEnding || event.token_type == TokenType::SpaceOrTab { tokenizer.go( |t, c| { title( -- cgit