Nick Cameron
|
b7ba6f70b1
|
Merge pull request #2576 from topecongiro/merge-imports
Use normalized form to format use items
|
2018-04-05 17:39:22 +12:00 |
|
Seiichi Uchida
|
89070a2244
|
Implement LineClasses
|
2018-04-05 12:52:43 +09:00 |
|
Seiichi Uchida
|
f6c0a0f4ed
|
Cargo fmt
|
2018-03-31 14:23:40 +09:00 |
|
Shotaro Yamada
|
4757321277
|
Don't index a string with chars().count()
|
2018-03-22 08:33:18 +09:00 |
|
Nick Cameron
|
bcaeab7a5e
|
Merge pull request #2527 from topecongiro/issue-2526
Check whether '\\'' is char literal or lifetime
|
2018-03-12 11:25:40 +13:00 |
|
Seiichi Uchida
|
86a427fe32
|
Check whether '\\'' is char literal or lifetime
|
2018-03-10 01:19:38 +09:00 |
|
Seiichi Uchida
|
484469899b
|
Keep code block without correct backticks enclosing
|
2018-03-09 09:46:43 +09:00 |
|
topecongiro
|
93d454aed7
|
Only format code blocks in comments with rust syntax notation
|
2018-03-05 19:30:08 +09:00 |
|
Nick Cameron
|
39301ae5f2
|
Go back to a non-workspace structure
Kinda reverts https://github.com/rust-lang-nursery/rustfmt/pull/2419
|
2018-03-02 14:58:23 +13:00 |
|
topecongiro
|
4af2aa3a9e
|
Create rustfmt_core crate
|
2018-02-07 22:48:05 +09:00 |
|
Nick Cameron
|
b7f01769f9
|
Merge branch 'master' into init-shorthand
|
2018-02-01 15:20:01 +13:00 |
|
Nick Cameron
|
4633786848
|
Merge pull request #2396 from topecongiro/issue-2389
Put attributes and enum variants on different lines
|
2018-01-29 10:36:26 +11:00 |
|
Seiichi Uchida
|
c60d865b98
|
Put attributes and enum variants on different lines
|
2018-01-26 16:20:00 +09:00 |
|
Seiichi Uchida
|
dfc67a5df7
|
Cargo clippy
|
2018-01-26 14:53:28 +09:00 |
|
Seiichi Uchida
|
154bf8e1af
|
Cargo fmt
|
2018-01-22 13:05:18 +09:00 |
|
Seiichi Uchida
|
27167cbbaa
|
Format code block in comment
Closes #554.
Closes #1695.
|
2017-12-24 23:56:51 +09:00 |
|
Seiichi Uchida
|
ccc487ade7
|
Do not put comment's line start and closer on the same line
|
2017-12-17 15:25:24 +09:00 |
|
Seiichi Uchida
|
81eb88c4c0
|
Respect leading whitespace in original comment when wrapping comment
|
2017-12-17 15:24:49 +09:00 |
|
Seiichi Uchida
|
516f15aba1
|
Cargo clippy
|
2017-12-12 13:48:12 +09:00 |
|
Nick Cameron
|
644b60ad85
|
Merge pull request #2257 from topecongiro/error-on-line-overflow-strings
Add error_on_line_overflow_strings config option
|
2017-12-11 16:41:15 +13:00 |
|
Seiichi Uchida
|
6c3de706ae
|
Make RichChar public
|
2017-12-11 11:48:17 +09:00 |
|
Seiichi Uchida
|
d1e5d7866b
|
Make CharClasses and FullCodeCharKind public
|
2017-12-11 11:47:19 +09:00 |
|
Seiichi Uchida
|
5faf31bb32
|
Trim a trailing whitespace on empty line inside code block comment
|
2017-12-11 11:37:13 +09:00 |
|
Seiichi Uchida
|
3ebe054362
|
Replace into() on &str with to_owned()
|
2017-12-08 13:07:42 +09:00 |
|
Seiichi Uchida
|
7c4a84751f
|
Convert '&str' into 'String' whenever necessary
|
2017-12-07 13:57:52 +09:00 |
|
Nick Cameron
|
b07e4339f0
|
Merge pull request #2221 from topecongiro/rfc/blank-lines
Keep vertical spaces between items or statements within range
|
2017-12-06 15:52:19 +13:00 |
|
Seiichi Uchida
|
228578b9c7
|
Add count_newlines() utility function
|
2017-12-05 15:17:40 +09:00 |
|
topecongiro
|
16184d3e16
|
Cargo fmt and update a test
|
2017-12-03 11:34:18 +09:00 |
|
Seiichi Uchida
|
b9126fac82
|
Do not format fenced code blocks in comment
|
2017-12-02 23:01:50 +09:00 |
|
Seiichi Uchida
|
89f27764ed
|
Cargo fmt and update tests
|
2017-12-02 17:45:39 +09:00 |
|
topecongiro
|
8b53d7806c
|
Cargo fmt
|
2017-11-29 17:37:51 +09:00 |
|
topecongiro
|
34c2499029
|
Cargo fmt
|
2017-11-16 17:43:06 +09:00 |
|
topecongiro
|
4e1a75a429
|
Collapse if-else
|
2017-11-06 13:52:25 +09:00 |
|
topecongiro
|
b17de6228f
|
Cargo fmt
|
2017-11-02 21:45:00 +09:00 |
|
Nick Cameron
|
809e06ee32
|
Merge pull request #2102 from topecongiro/soft-wrapping-comments
Soft wrapping for comments
|
2017-11-02 15:15:38 +13:00 |
|
Martin Lindhe
|
f930a16b8d
|
fix some typos
|
2017-11-01 07:33:55 +01:00 |
|
topecongiro
|
471e9110f5
|
Add ftp and file protocols
|
2017-11-01 12:35:32 +09:00 |
|
topecongiro
|
dae76d21ff
|
Implement soft wrapping for comments
|
2017-10-31 15:07:58 +09:00 |
|
topecongiro
|
38399875b8
|
Add has_url()
|
2017-10-31 15:07:19 +09:00 |
|
Nick Cameron
|
802df67c2f
|
Merge pull request #2035 from topecongiro/deprecate-try_opt!
Replace `try_opt!` macro with a `?` operator
|
2017-10-05 20:45:52 +08:00 |
|
topecongiro
|
fe69dde96b
|
Replace 'try_opt!' macro with a '?' operator
|
2017-10-05 20:50:19 +09:00 |
|
topecongiro
|
106625bc5c
|
Remove trailing whitespaces in macro def
|
2017-10-05 16:17:59 +09:00 |
|
topecongiro
|
9e963b87fc
|
Add InString field to FullCodeCharKind
|
2017-10-05 16:17:04 +09:00 |
|
Seiichi Uchida
|
df7d2be562
|
Move Indent and Shape to shape.rs from lib.rs
|
2017-09-19 10:04:35 +09:00 |
|
Seiichi Uchida
|
18cd19673d
|
Remove wrap_str() from recover_comment_removed()
since we will be using the original snippet no matter what.
|
2017-09-18 23:30:59 +09:00 |
|
Seiichi Uchida
|
20aecb3d98
|
Run recover_comment_removed() only if the text changed after format
|
2017-09-18 22:56:29 +09:00 |
|
topecongiro
|
f51261e93e
|
Cargo fmt
|
2017-09-15 12:10:58 +09:00 |
|
Seiichi Uchida
|
4b79055a15
|
Apply refactoring from cargo clippy
|
2017-08-31 12:49:12 +09:00 |
|
topecongiro
|
6bbc6b54de
|
Refactor - remove duplicates
replacing some functions with recover_missing_comments() and
rewrite_missing_comments().
|
2017-08-28 00:13:42 +09:00 |
|
topecongiro
|
66b1642624
|
Add recover_missing_comment_in_span() and rewrite_missing_comment()
|
2017-08-28 00:11:25 +09:00 |
|