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_atx.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/construct/heading_atx.rs') diff --git a/src/construct/heading_atx.rs b/src/construct/heading_atx.rs index 6460235..ae16d3d 100644 --- a/src/construct/heading_atx.rs +++ b/src/construct/heading_atx.rs @@ -40,7 +40,7 @@ //! * [`HeadingAtx`][TokenType::HeadingAtx] //! * [`HeadingAtxSequence`][TokenType::HeadingAtxSequence] //! * [`HeadingAtxText`][TokenType::HeadingAtxText] -//! * [`HeadingAtxWhitespace`][TokenType::HeadingAtxWhitespace] +//! * [`HeadingAtxSpaceOrTab`][TokenType::HeadingAtxSpaceOrTab] //! //! ## References //! @@ -105,7 +105,7 @@ fn sequence_open(tokenizer: &mut Tokenizer, code: Code, rank: usize) -> StateFnR _ if rank > 0 => { tokenizer.exit(TokenType::HeadingAtxSequence); tokenizer.go( - space_or_tab(TokenType::HeadingAtxWhitespace, 1, usize::MAX), + space_or_tab(TokenType::HeadingAtxSpaceOrTab, 1, usize::MAX), at_break, )(tokenizer, code) } @@ -129,7 +129,7 @@ fn at_break(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { (State::Ok, Some(vec![code])) } Code::VirtualSpace | Code::Char('\t' | ' ') => tokenizer.go( - space_or_tab(TokenType::HeadingAtxWhitespace, 1, usize::MAX), + space_or_tab(TokenType::HeadingAtxSpaceOrTab, 1, usize::MAX), at_break, )(tokenizer, code), Code::Char('#') => { -- cgit