Derive Debug and Clone for tokens and parser state
This commit is contained in:
parent
312901ddf6
commit
8d204503a8
12 changed files with 18 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue