Derive Debug and Clone for tokens and parser state

This commit is contained in:
Juno Takano 2026-01-02 14:30:36 -03:00
commit 8d204503a8
12 changed files with 18 additions and 13 deletions

View file

@ -5,11 +5,13 @@ use crate::syntax::content::parser::{
pub mod anchor;
#[derive(Clone, Debug)]
pub struct Context {
pub block: Block,
pub inline: Inline,
}
#[derive(Clone, Debug)]
pub enum Block {
Paragraph,
Header(u8),
@ -17,6 +19,7 @@ pub enum Block {
None,
}
#[derive(Clone, Debug)]
pub enum Inline {
Anchor,
Code,