aboutsummaryrefslogtreecommitdiffstats
path: root/src/content/string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/string.rs')
-rw-r--r--src/content/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/string.rs b/src/content/string.rs
index fda9b51..75cd56a 100644
--- a/src/content/string.rs
+++ b/src/content/string.rs
@@ -21,7 +21,7 @@ const MARKERS: [u8; 2] = [b'&', b'\\'];
pub fn start(tokenizer: &mut Tokenizer) -> State {
tokenizer.register_resolver("whitespace".to_string(), Box::new(resolve));
tokenizer.tokenize_state.stop = &MARKERS;
- before(tokenizer)
+ State::Retry(StateName::StringBefore)
}
/// Before string.
@@ -38,7 +38,7 @@ pub fn before(tokenizer: &mut Tokenizer) -> State {
State::Next(StateName::StringBefore),
State::Next(StateName::StringBeforeData),
),
- _ => before_data(tokenizer),
+ _ => State::Retry(StateName::StringBeforeData),
}
}