Use direct matching in mixed quoted text hook
This commit is contained in:
@@ -1221,14 +1221,11 @@ impl Parser<'_> {
|
||||
return Err(self.error("Expected a double-quoted string."));
|
||||
}
|
||||
#[cfg(test)]
|
||||
if self.mixed.is_some() {
|
||||
let span = self.current().span;
|
||||
let span = self.current().span;
|
||||
#[cfg(test)]
|
||||
if let Some(mixed) = &mut self.mixed {
|
||||
let raw = &self.source[span.start..span.end];
|
||||
let value = self
|
||||
.mixed
|
||||
.as_mut()
|
||||
.expect("mixed quoted consumer")
|
||||
.quoted_text(raw, span)?;
|
||||
let value = mixed.quoted_text(raw, span)?;
|
||||
self.cursor += 1;
|
||||
return Ok(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user