Add an example exploring indentation with comments.
This commit is contained in:
parent
1b10b197f2
commit
26e0ad5800
5
org_mode_samples/comment/indented.org
Normal file
5
org_mode_samples/comment/indented.org
Normal file
@ -0,0 +1,5 @@
|
||||
# Comment
|
||||
# indented line
|
||||
# At the top of the file
|
||||
foo
|
||||
# Another comment
|
@ -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!()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user