commit | a044d9fee0a968467d9b216cfb0174c7b0102ef3 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Oct 30 10:53:45 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Oct 30 10:53:45 2016 -0700 |
tree | 6d069e373fc85dcf0b79c0e188bdf4f87d2b18cf | |
parent | b7fa2b64f1c32df585717ec60febe42c368ecb28 [diff] [blame] |
More than two asterisks means that it isn't a doc comment
diff --git a/src/space.rs b/src/space.rs index 0e5cd89..e860d77 100644 --- a/src/space.rs +++ b/src/space.rs
@@ -18,7 +18,7 @@ continue; } break; - } else if s.starts_with("/*") && !s.starts_with("/**") && !s.starts_with("/*!") { + } else if s.starts_with("/*") && (!s.starts_with("/**") || s.starts_with("/***")) && !s.starts_with("/*!") { match block_comment(s) { IResult::Done(_, com) => { i += com.len();