Show that trailing whitespace belongs to comments.
This commit is contained in:
parent
26e0ad5800
commit
d1a7d0b835
@ -1,5 +1,8 @@
|
|||||||
# Comment
|
# Comment
|
||||||
# indented line
|
# indented line
|
||||||
# At the top of the file
|
# At the top of the file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foo
|
foo
|
||||||
# Another comment
|
# Another comment
|
||||||
|
@ -8,3 +8,8 @@ pub fn comment<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str,
|
|||||||
start_of_line(context, input)?;
|
start_of_line(context, input)?;
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn comment_line<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, &'s str> {
|
||||||
|
start_of_line(context, input)?;
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user