]> git.lizzy.rs Git - rust.git/commit
Add custom comments (#1179)
authorFlorian Gilcher <florian.gilcher@asquera.de>
Thu, 29 Sep 2016 19:34:46 +0000 (21:34 +0200)
committerNick Cameron <nrc@ncameron.org>
Thu, 29 Sep 2016 19:34:46 +0000 (08:34 +1300)
commitb8f7ec3dcc8a08c835eba577b64efa92913ad429
treee682a0c12d2a46bb146322d6953ad43089aa60c6
parent3e14af0eeb9cd90b299aacc87bdd52c8fd797203
Add custom comments (#1179)

* Add custom comments

This allows users to use custom comments such as

```
//@ this is a custom comment
//@ with multiple lines
```

without having them destroyed by rustfmt.

* Fix issues with empty lines

* Check non-whitespace right after custom comments
src/comment.rs
tests/source/comment5.rs [new file with mode: 0644]
tests/target/comment5.rs [new file with mode: 0644]