about summary refs log tree commit diff
path: root/src/comment.rs
AgeCommit message (Collapse)AuthorLines
2015-11-23Reformatting due to changesNick Cameron-2/+8
2015-11-20Blockify multiline match armsMarcus Klaas-29/+39
2015-11-10Option to disable line breaking in commentsNick Cameron-2/+3
Set to false by default for now, since we are having a lot of problems with comments. We should set to true once we have a better algorithm.
2015-10-23Remove usage of many unstable featuresAlex Crichton-1/+1
This removes usage of: * PathExt * split_last * split_last_mut * catch_panic The catch_panic one was a little tricky as the ident interner needed to be cloned across threads (a little unsafely), but it should otherwise be good to go.
2015-10-20Fix doc comment regression and add tests.Tim Kuehn-2/+9
2015-10-19Fix large block commentsMarcus Klaas-33/+86
2015-10-19Remove overflow indentationMarcus Klaas-9/+16
2015-10-19Implement CommentCodeSlicesMarcus Klaas-9/+74
2015-10-06Increase default function call width limitMarcus Klaas-2/+1
2015-09-26Changes to rustfmt sourceNick Cameron-1/+4
2015-09-26Changes to source formattingNick Cameron-3/+7
2015-09-25Make rewrite_string return `Option<String>`Marcus Klaas-50/+54
2015-09-19Add Indent::none(), remove make_indent.Pavel Sountsov-3/+2
2015-09-19Initial implementation of hard tab indentation.Pavel Sountsov-9/+22
2015-09-18Refactor test codeMarcus Klaas-4/+6
No longer use callbacks or thread::catch_panic; reduce stdout spew; guard against rustfmt breaking the column limit.
2015-09-16Format macro invocationsMarcus Klaas-0/+1
2015-09-11General cleanup after rebaseMarcus Klaas-37/+38
2015-09-11Add some tests for match blocksMarcus Klaas-15/+8
2015-09-11Add tests for chain expressionsMarcus Klaas-27/+0
2015-09-11Break chains that don't start with path expressionsMarcus Klaas-1/+0
2015-09-11Update indentation heuristics for single arg functionsMarcus Klaas-8/+8
2015-09-11Implement basic chain formattingMarcus Klaas-10/+35
2015-09-07Fix https://github.com/nrc/rustfmt/issues/278Sinh Pham-1/+5
2015-09-04code improvements suggested by clippyAndre Bogus-2/+2
2015-09-01Remove faulty shortcut in `rewrite_string_lit`Marcus Klaas-1/+1
Rustfmt would leave the literal unchanged when it did not exceed the column limit in its original position, not considering its position after formatting.
2015-09-01Add a test module to commentsNick Cameron-66/+74
2015-08-28Add a generic tool for searching comments in codeGaëtan Cassiers-38/+185
This make a base for all functions searching for comments, or searching code excluding comments, etc. These functions where too simple and didn't handle complicated cases like nested comments or comment marks inside string litterals ("/*").
2015-08-25Format assignmentMarcus Klaas-3/+2
2015-08-20FormattingNick Cameron-3/+3
2015-07-25Merge pull request #147 from marcusklaas/even-more-exprNick Cameron-3/+5
Format if expressions & loops
2015-07-24Use new module code from libsyntaxMarcus Klaas-4/+4
2015-07-19Format if-else expressionsMarcus Klaas-3/+5
2015-07-16Reformat code to new struct lit styleNick Cameron-7/+9
2015-07-03Run rustfmt on the codeGaëtan Cassiers-11/+9
2015-06-26Update import list formattingMarcus Klaas-1/+11
Include comments and sort items alphabetically.
2015-06-23Format tuple-like structsMarcus Klaas-0/+202