Commit graph

19 commits

Author SHA1 Message Date
Joshua Warner
48c207bb06 Remove trailing whitespace from the output of the formatter 2021-12-18 17:14:14 -08:00
Joshua Warner
86c8764012 Detangle lifetime annotations for Formattable 2021-12-14 19:52:53 -08:00
Joshua Warner
e3f2f8d9a4 keep indent state in fmt Buf 2021-12-04 18:26:32 -08:00
Joshua Warner
c6116ba3ca Fix fmt_spaces indenting in the context of 3 or more newlines 2021-12-01 16:14:27 -08:00
Joshua Warner
f25323e8a7 Implement platform header formatting 2021-11-25 08:19:31 -08:00
Joshua Warner
24f7692a73 Implement [more] app header formatting
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
Folkert
754521c4c3 all the clippy fixes 2021-01-01 00:40:41 +01:00
Sébastien Besnier
805b54409a appease clippy 2020-11-15 12:45:20 +01:00
Sébastien Besnier
1d44f7fef8 force comments to start with a space 2020-11-15 10:45:51 +01:00
Sébastien Besnier
c4bc98a81f remove fmt_condition_spaces in favor of fmt_comments_only 2020-11-15 10:36:50 +01:00
Sébastien Besnier
25192fca10 make fmt_comments_only more general 2020-11-15 10:26:14 +01:00
Sébastien Besnier
bc203371be refactor fmt_final_comments to be more generic 2020-11-15 09:57:29 +01:00
Sébastien Besnier
74dde77003 refactor use of fmt_comment 2020-11-15 09:17:31 +01:00
Sébastien Besnier
93b7ac5b0c remove duplicated is_comment function 2020-11-15 09:01:24 +01:00
Sébastien Besnier
ccabc41489 thank you clippy 2020-11-14 21:09:02 +01:00
Sébastien Besnier
6be94c5f29 add some tests.... and fix some bugs! 2020-11-14 18:51:43 +01:00
Sébastien Besnier
2000948765 format the final comments in records 2020-11-14 18:39:46 +01:00
Richard Feldman
3dac73d8d0 Parse doc comments 2020-05-23 22:03:21 -04:00
Richard Feldman
5a129a506a Move fmt 2020-03-06 18:24:37 -05:00
Renamed from compiler/src/fmt/spaces.rs (Browse further)