inline: mv symbol from span to event field
This commit is contained in:
parent
9676d9e5d6
commit
6abe9e44c7
2 changed files with 7 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue