commit | d7904e5840b464ee05eff7aaca9f22413df0946c | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Tue Jan 23 11:08:45 2018 -0800 |
committer | Alex Crichton <alex@alexcrichton.com> | Thu Jan 25 13:27:16 2018 -0800 |
tree | d266508ff86cf14eec9d8426429c1252ab2d7cb3 | |
parent | eca28d42767412e3f8ad670e271a09aed6e05a10 [diff] [blame] |
Allow doc comments to be terminated with EOF Closes #61
diff --git a/src/stable.rs b/src/stable.rs index ffa077a..41a7c4b 100644 --- a/src/stable.rs +++ b/src/stable.rs
@@ -1179,7 +1179,7 @@ named!(doc_comment -> (), alt!( do_parse!( punct!("//!") >> - take_until!("\n") >> + take_until_newline_or_eof!() >> (()) ) | @@ -1193,7 +1193,7 @@ do_parse!( punct!("///") >> not!(tag!("/")) >> - take_until!("\n") >> + take_until_newline_or_eof!() >> (()) ) |