Show that trailing whitespace belongs to comments.

This commit is contained in:
Tom Alexander 2023-04-15 16:37:25 -04:00
parent 26e0ad5800
commit d1a7d0b835
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# Comment
# indented line
# At the top of the file
foo
# Another comment

View File

@ -8,3 +8,8 @@ pub fn comment<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str,
start_of_line(context, input)?;
todo!()
}
fn comment_line<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, &'s str> {
start_of_line(context, input)?;
todo!()
}