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/compiler.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/compiler.rs')
-rw-r--r-- | src/compiler.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index e6275f1..cfe749a 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -242,7 +242,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &Options) -> String { | TokenType::HardBreakTrailingSpace | TokenType::HeadingAtx | TokenType::HeadingAtxSequence - | TokenType::HeadingAtxWhitespace + | TokenType::HeadingAtxSpaceOrTab | TokenType::HeadingSetext | TokenType::HeadingSetextUnderline | TokenType::HtmlFlowData @@ -250,7 +250,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &Options) -> String { | TokenType::LineEnding | TokenType::ThematicBreak | TokenType::ThematicBreakSequence - | TokenType::Whitespace => { + | TokenType::SpaceOrTab => { // Ignore. } TokenType::CodeFencedFenceInfo @@ -321,7 +321,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &Options) -> String { | TokenType::HardBreakTrailingSpace | TokenType::HeadingSetext | TokenType::ThematicBreakSequence - | TokenType::Whitespace => { + | TokenType::SpaceOrTab => { // Ignore. } // Just output it. @@ -482,13 +482,13 @@ pub fn compile(events: &[Event], codes: &[Code], options: &Options) -> String { atx_opening_sequence_size = None; atx_heading_buffer = None; } - // `HeadingAtxWhitespace` is ignored after the opening sequence, + // `HeadingAtxSpaceOrTab` is ignored after the opening sequence, // before the closing sequence, and after the closing sequence. // But it is used around intermediate sequences. // `atx_heading_buffer` is set to `Some` by the first `HeadingAtxText`. // `HeadingAtxSequence` is ignored as the opening and closing sequence, // but not when intermediate. - TokenType::HeadingAtxSequence | TokenType::HeadingAtxWhitespace => { + TokenType::HeadingAtxSequence | TokenType::HeadingAtxSpaceOrTab => { if let Some(buf) = atx_heading_buffer { atx_heading_buffer = Some( buf.to_string() |