diff --git a/org_mode_samples/comment/indented.org b/org_mode_samples/comment/indented.org new file mode 100644 index 00000000..4360a358 --- /dev/null +++ b/org_mode_samples/comment/indented.org @@ -0,0 +1,5 @@ +# Comment + # indented line +# At the top of the file +foo +# Another comment diff --git a/src/parser/comment.rs b/src/parser/comment.rs index 8b137891..81522598 100644 --- a/src/parser/comment.rs +++ b/src/parser/comment.rs @@ -1 +1,10 @@ +use super::Context; +use crate::parser::error::Res; +use crate::parser::util::start_of_line; +use crate::parser::Comment; +#[tracing::instrument(ret, level = "debug")] +pub fn comment<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Comment<'s>> { + start_of_line(context, input)?; + todo!() +}