aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/heading_atx.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-22 14:46:51 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-22 14:46:51 +0200
commit6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da (patch)
tree39426778d5a150612059070196d50daadcebfb0e /src/construct/heading_atx.rs
parent33b69eb9189fb2fd0f731530285baf3ac20c5eb0 (diff)
downloadmarkdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.tar.gz
markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.tar.bz2
markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.zip
Rename `Whitespace` token to `SpaceOrTab`
Diffstat (limited to 'src/construct/heading_atx.rs')
-rw-r--r--src/construct/heading_atx.rs6
1 files changed, 3 insertions, 3 deletions
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('#') => {