diff options
Diffstat (limited to '')
-rw-r--r-- | src/content/text.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/text.rs b/src/content/text.rs index 77c5963..570759d 100644 --- a/src/content/text.rs +++ b/src/content/text.rs @@ -21,6 +21,7 @@ //! > [whitespace][crate::construct::partial_whitespace]. use crate::construct::partial_whitespace::resolve_whitespace; +use crate::resolve::Name as ResolveName; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; @@ -38,7 +39,7 @@ const MARKERS: [u8; 9] = [ /// Start of text. pub fn start(tokenizer: &mut Tokenizer) -> State { - tokenizer.register_resolver("whitespace".to_string(), Box::new(resolve)); + tokenizer.register_resolver(ResolveName::Text); tokenizer.tokenize_state.markers = &MARKERS; State::Retry(StateName::TextBefore) } |