inline: mv symbol from span to event field

This commit is contained in:
Noah Hellman 2023-04-24 19:55:49 +02:00
parent 9676d9e5d6
commit 6abe9e44c7
2 changed files with 7 additions and 6 deletions

View file

@ -837,7 +837,7 @@ impl<'s> Parser<'s> {
}
inline::EventKind::Atom(a) => match a {
inline::Atom::FootnoteReference { label } => Event::FootnoteReference(label),
inline::Atom::Symbol => Event::Symbol(inline.span.of(self.src).into()),
inline::Atom::Symbol(sym) => Event::Symbol(sym.into()),
inline::Atom::Quote { ty, left } => match (ty, left) {
(inline::QuoteType::Single, true) => Event::LeftSingleQuote,
(inline::QuoteType::Single, false) => Event::RightSingleQuote,