diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-22 14:46:51 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-22 14:46:51 +0200 |
commit | 6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da (patch) | |
tree | 39426778d5a150612059070196d50daadcebfb0e /src/construct/definition.rs | |
parent | 33b69eb9189fb2fd0f731530285baf3ac20c5eb0 (diff) | |
download | markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.tar.gz markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.tar.bz2 markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.zip |
Rename `Whitespace` token to `SpaceOrTab`
Diffstat (limited to 'src/construct/definition.rs')
-rw-r--r-- | src/construct/definition.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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( |