Bastiaan Veelo
18c642e091
Use general indent and line braking logic.
...
- Let a single `pushWrapIndex` take care of indexing.
- Remove chunk length calculation entirely.
- Comment spacing is funny, fix by special casing. Bonus: comments that appear on a separate line are kept on a separate line.
2018-10-18 14:16:33 +02:00
Laurent Tréguier
6ad2fbb6fc
Fix #287 - Extra space after import in delegate
2018-10-15 10:14:23 +02:00
Laurent Tréguier
049f86ebfd
Fix #349 - Wrong indentation of access modifier after break of long line
2018-10-11 05:43:37 +02:00
Laurent Tréguier
2578dbf2a7
Fix #267 - Indentation with debug inconsistent
2018-10-11 05:43:18 +02:00
Laurent Tréguier
908f32e433
Properly recognize debug as block header
2018-10-11 05:43:18 +02:00
Laurent Tréguier
b928eb6d84
Fix #345 - Case of trailing white space
2018-10-10 13:37:06 +02:00
Laurent Tréguier
6ff47e106a
Fix else indentation after debug conditions
2018-10-09 13:19:07 +02:00
Laurent Tréguier
c84db53c7c
Fix #372 - Improper indentation after single-line catch ( #395 )
...
Fix #372 - Improper indentation after single-line catch
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-10-08 13:32:15 +02:00
Laurent Tréguier
f3463cdd34
Fix #326 - Spaces missing after attributes in function literals ( #394 )
...
Fix #326 - Spaces missing after attributes in function literals
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-10-07 20:47:28 +02:00
Laurent Tréguier
16c3811261
Fix #286 - Weird indentation in else branch after wrapping expression ( #393 )
...
Fix #286 - Weird indentation in else branch after wrapping expression
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-10-07 19:56:08 +02:00
Laurent Tréguier
886903f8ea
Fix #246 - Questionable indentation for multiple `with` statements
2018-10-07 12:36:17 +02:00
Basile Burg
dca9e15483
fix #244 - Wrong indentation for bool enums
2018-10-03 12:07:54 +02:00
Laurent Tréguier
5e6dd58502
Properly format enum member attributes and parameter attributes
2018-09-29 22:52:49 +02:00
Laurent Tréguier
647bb6daa9
Support for DIP1009 (new contracts syntax), #375 ( #376 )
...
Support for DIP1009 (new contracts syntax), #375
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-09-10 14:15:14 +02:00
BBasile
46788e53ba
Handle do as contract header and handle body as identifier ( #360 )
...
Handle `do` as contract header and handle `body` as identifier
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2018-06-14 23:29:47 +02:00
Hackerpilot
c4b9178e81
Better formatting for UFCS chains
2018-05-09 16:06:12 +02:00
Stefan Koch
eb576e21fd
Add empty test files
2018-03-08 11:57:07 +01:00
Stefan Koch
0cc3543c2b
Add tests
2018-03-07 21:18:25 +01:00
BBasile
b01c624ef0
fix #236 - Allow constraints to be indented by a single tab ( #337 )
...
fix #236 - Allow constraints to be indented by a single tab
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-02 16:26:54 +01:00
Brian Schott
5ce4df17a2
Merge pull request #324 from dlang-community/issue-313
...
Fix #313 , and implement a better fix for #314
2018-02-04 16:58:22 -08:00
Hackerpilot
a8ac400830
Fix #313 , and implement a better fix for #314
2018-02-02 04:48:57 -08:00
Hackerpilot
5aedb2b84b
Fix #321
2018-02-02 00:52:30 -08:00
Hackerpilot
1ca3bd9255
Fix #314
2018-01-29 14:18:59 -08:00
Kotet
8cd9265384
Fix test
2017-11-27 07:37:09 +09:00
Kotet
a163eb105f
Add support for `static foreach`
...
Fix #303
2017-11-25 13:20:49 +09:00
Hackerpilot
00fda4f5eb
Fix #248
2017-10-25 13:26:35 -07:00
Hackerpilot
019d42a4dc
Fix #273
2017-03-07 16:12:27 -08:00
Hackerpilot
821f9439e4
Fix #251
2016-06-30 17:41:13 -07:00
Hackerpilot
c353f484a6
Update dparse
2016-04-28 15:27:57 -07:00
Hackerpilot
d6861cc5a2
Fix #241
2016-04-28 15:23:00 -07:00
Hackerpilot
2031dbdc71
Fix parse error
2016-03-27 22:47:30 -07:00
Hackerpilot
65ac0871fd
Fix #229
2016-02-25 14:02:12 -08:00
Hackerpilot
fd214032a4
Fix bug with multi-line string literals
2016-02-01 00:35:26 -08:00
Hackerpilot
0ea6b340a4
Fix #226
2016-01-26 12:56:19 -08:00
Hackerpilot
e6fe5df515
Improve line wrapping heuristics
2016-01-25 05:24:09 -08:00
Hackerpilot
0eea53a628
Fix #225
2016-01-22 19:06:09 -08:00
Hackerpilot
e2d23726b9
Fix #224
2016-01-22 18:48:36 -08:00
Hackerpilot
268657831b
Fix #219
2016-01-22 04:53:20 -08:00
Hackerpilot
98f443d3f1
Fix #220
2016-01-22 04:48:29 -08:00
Hackerpilot
ee8fcd41f4
Fix #223
2016-01-22 01:51:44 -08:00
Hackerpilot
08c2d0c5e8
Fix #222
2016-01-21 22:11:32 -08:00
Hackerpilot
db2ad1354b
Fix #221
2016-01-20 17:00:46 -08:00
Hackerpilot
3c6ea77a12
Fix an incredibly annoying bug where line break info was being ignored when wrapping at commas
2016-01-20 03:28:31 -08:00
Hackerpilot
cac45e3607
Fix formatting issue
2016-01-20 02:58:42 -08:00
Hackerpilot
e8a6b40432
Fix issue where constraints would not be detected correctly while formatting.
2016-01-20 02:43:10 -08:00
Hackerpilot
24be6ddc2e
Run dfmt on itself and debug some wrapping calculations
2016-01-19 05:20:31 -08:00
Hackerpilot
7ec932a1e3
Indentation rework
2016-01-19 03:58:19 -08:00
Hackerpilot
7fa11c8505
Initial work on #215
2016-01-18 17:59:26 -08:00
Hackerpilot
ca49180a95
Fix #213
2016-01-18 15:32:49 -08:00
Hackerpilot
7a9a895f64
Fix #210 and run dfmt on itself
2016-01-18 15:10:39 -08:00