This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::iter::Peekable; | |
use std::num::NonZeroUsize; | |
/// A text token returned from the tokenizer | |
#[derive(Clone)] | |
enum TextToken<'a> { | |
/// The contained string represents a string of text characters | |
Text(&'a str), | |
/// The contained string represents a string of text characters | |
/// that aren't allowed to be broken on to the next line |