Start the plain list module.

This commit is contained in:
Tom Alexander 2022-12-18 03:29:01 -05:00
parent f39319702c
commit 76b2325486
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,7 @@ mod list;
mod paragraph;
mod parser_context;
mod parser_with_context;
mod plain_list;
mod text;
mod token;
mod util;

8
src/parser/plain_list.rs Normal file
View File

@ -0,0 +1,8 @@
use super::error::Res;
use super::token::PlainList;
use super::Context;
pub fn plain_list<'r, 's>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, PlainList<'s>> {
// todo
todo!()
}

View File

@ -95,3 +95,14 @@ impl<'a> Source<'a> for Paragraph<'a> {
self.source
}
}
#[derive(Debug)]
pub struct PlainList<'a> {
pub source: &'a str,
}
impl<'a> Source<'a> for PlainList<'a> {
fn get_source(&'a self) -> &'a str {
self.source
}
}