Hackerpilot
700aaff7da
Fix #35
2015-04-20 00:56:24 -07:00
Hackerpilot
bcc4adb7cc
Fix #127
2015-04-20 00:30:13 -07:00
Hackerpilot
87866f8fcd
Fix #31
2015-04-20 00:07:33 -07:00
Hackerpilot
d0e255e62d
Editorconfig support
2015-04-19 21:51:37 -07:00
Hackerpilot
854569fded
Add .editorconfig reading support. #122
2015-04-16 18:18:44 -07:00
Hackerpilot
e2390521b5
Fix #128
2015-04-16 12:14:39 -07:00
Hackerpilot
aec084e23e
Fix #126
2015-04-08 18:16:50 -07:00
Hackerpilot
e233912a34
Fix #114
2015-03-31 15:08:44 -07:00
Hackerpilot
469da17c36
Do not call bsf with 0
2015-03-30 17:34:24 -07:00
Hackerpilot
e3893d46ec
Fix #123
2015-03-24 14:48:04 -07:00
Hackerpilot
f83504193f
Read command line args from a file
2015-03-23 16:36:40 -07:00
Hackerpilot
076b4bc8c4
Rearrange wrapping code to work around code generation bug in DMD
2015-03-23 16:07:43 -07:00
Hackerpilot
fa27b6c680
Compatibility with 2.066.1
2015-03-23 00:39:45 -07:00
Hackerpilot
48bc7ba0c2
More line wrapping tuning
2015-03-23 00:33:59 -07:00
Hackerpilot
3e4a131069
Merge branch 'master' of https://github.com/Hackerpilot/dfmt
2015-03-22 23:40:34 -07:00
Hackerpilot
340ef4c0cf
Improve line wrapping algorithm
2015-03-22 23:40:23 -07:00
Hackerpilot
e815a8e1d2
Fix #104
2015-03-20 14:06:16 -07:00
Hackerpilot
78c8b14ee8
My local 2.066.1 compiles this, but the CI server does not.
2015-03-20 02:29:53 -07:00
Hackerpilot
9d37e90e7d
Remove formatting from main module
2015-03-20 02:26:53 -07:00
Hackerpilot
75da67c296
2.066.1 compatability
2015-03-20 02:13:04 -07:00
Hackerpilot
34103ac999
Update command-line parsing and add some configuration options.
2015-03-20 01:53:36 -07:00
Hackerpilot
a563865149
ddoc
2015-03-20 01:04:38 -07:00
Hackerpilot
3ce5b5e7c6
Refactoring
2015-03-20 00:53:57 -07:00
Hackerpilot
5cab59298d
Add license file
2015-03-20 00:50:23 -07:00
Hackerpilot
8cb320c544
Simplify license header
2015-03-19 23:36:51 -07:00
Hackerpilot
7a4392dda9
Fix #119
2015-03-18 18:20:05 -07:00
Hackerpilot
76c37dd8f6
Fix #118
2015-03-18 16:31:56 -07:00
Hackerpilot
c291340e90
Fix #116
2015-03-18 16:26:27 -07:00
Hackerpilot
c8c595bf16
Fix failing test case
2015-03-18 16:23:44 -07:00
Hackerpilot
cf32df2acb
Fix #117
2015-03-18 16:22:04 -07:00
Hackerpilot
5b68b60877
Fix #120
2015-03-18 16:15:51 -07:00
Hackerpilot
374e155237
Fix #111
2015-03-17 16:53:49 -07:00
Hackerpilot
51b991f50f
Fix #16
2015-03-17 10:35:06 -07:00
Hackerpilot
1bfaa7ad7a
Fix #109
2015-03-16 16:28:47 -07:00
Hackerpilot
83072689d1
Fix #108
2015-03-16 15:59:35 -07:00
Hackerpilot
efc9d72c95
Fix #107
2015-03-16 15:45:22 -07:00
Hackerpilot
a82eb7aa57
Allow line breaking on ':' token
2015-03-16 14:14:04 -07:00
Hackerpilot
3cdfeead48
Open output files in binary mode. Hopefully this will help with #16
2015-03-16 12:39:18 -07:00
Hackerpilot
0702a50c2b
Run dfmt on itself
2015-03-16 12:22:00 -07:00
Hackerpilot
df6e218ff6
Fix forced newlines on paren tokens, fix paren depth weighting for line wrapping. #47
2015-03-16 12:18:26 -07:00
Hackerpilot
3c7f23a640
Refactoring
2015-03-16 00:51:35 -07:00
Hackerpilot
9f545cf6ff
Fix #27
2015-03-15 18:13:28 -07:00
Hackerpilot
a6dda6d94c
Fix #23
2015-03-15 05:08:06 -07:00
Hackerpilot
578ded512e
Fix #106
2015-03-15 04:30:55 -07:00
Hackerpilot
752674f233
Fix #103
2015-03-15 03:12:09 -07:00
Hackerpilot
ed2bf996b3
Fix #27
2015-03-15 02:57:06 -07:00
Hackerpilot
dc7c529716
Fix #47
2015-03-15 00:29:43 -07:00
Hackerpilot
8a416f9849
Fix #48
2015-03-14 18:39:48 -07:00
Hackerpilot
ce128d8c62
Run dfmt on itself
2015-03-14 18:26:42 -07:00
Hackerpilot
12060fb92c
Fix #63
2015-03-14 18:18:39 -07:00
Hackerpilot
381640614b
Add tests for --braceStyle=otbs. Fix #101
2015-03-14 15:51:50 -07:00
Hackerpilot
0081bee61a
Re-enable pure nothrow attributes
2015-03-14 04:00:19 -07:00
Hackerpilot
ce1c20e847
Fix #100
2015-03-14 03:58:23 -07:00
Hackerpilot
0b7bc366f2
Fix #99
2015-03-14 03:27:25 -07:00
Hackerpilot
65ae9dd4a0
Fix #98
2015-03-13 14:51:44 -07:00
Hackerpilot
2410311022
Fix #42
2015-03-13 02:59:21 -07:00
Hackerpilot
80b853113f
Fix #96
2015-03-13 02:33:38 -07:00
Hackerpilot
7669e06de6
Merge branch 'master' of https://github.com/Hackerpilot/dfmt
2015-03-13 02:01:34 -07:00
Hackerpilot
1748516044
Fix #95
2015-03-13 02:01:18 -07:00
Hackerpilot
98d397cd22
Fix #93
2015-03-12 12:46:21 -07:00
Hackerpilot
5bca694cca
Fix #94
2015-03-12 12:24:47 -07:00
Hackerpilot
783410390e
Fix #92
2015-03-12 11:48:53 -07:00
Hackerpilot
1ef17c5d78
Rework indentation system. Fix #91 . Fix #86 . Fix #54 .
2015-03-11 05:13:13 -07:00
Hackerpilot
52eabd4f47
Fix #88
2015-03-10 14:38:39 -07:00
Hackerpilot
66342a99ee
Fix #89
2015-03-10 14:33:27 -07:00
Hackerpilot
b07ecacb91
Fix #90
2015-03-10 14:26:22 -07:00
Hackerpilot
0ae8eccc2f
Fix #79
2015-03-10 03:08:06 -07:00
Hackerpilot
cade56450c
Massive switch statement rework. Fixes #80
2015-03-10 03:03:08 -07:00
Hackerpilot
cb5ca659b1
Fix #81
2015-03-10 00:45:30 -07:00
Hackerpilot
62d0378740
Fix #82
2015-03-09 23:32:25 -07:00
Hackerpilot
b256213b8e
Fix #85
2015-03-09 23:26:46 -07:00
Hackerpilot
ff6a8281fe
Fix #83
2015-03-09 22:08:12 -07:00
Hackerpilot
eac7579e7c
Fix formatting for 'final switch'
2015-03-08 19:37:17 -07:00
Hackerpilot
4590dd44b7
Fix #64
2015-03-08 19:02:15 -07:00
Hackerpilot
401631b79d
Fix #67
2015-03-08 18:38:52 -07:00
Hackerpilot
745ffd6a5b
Fix #66
2015-03-08 18:37:05 -07:00
Hackerpilot
41dc8ef9e9
Fix #69
2015-03-08 18:33:59 -07:00
Hackerpilot
9b6fbfda20
Fix #68
2015-03-08 18:30:46 -07:00
Hackerpilot
d5eed6a9b0
Fix #70
2015-03-08 18:23:01 -07:00
Hackerpilot
4b7e37c1da
Fix #73
2015-03-08 18:07:26 -07:00
Hackerpilot
8ab3b5c9f7
Fix #74
2015-03-08 18:01:04 -07:00
Hackerpilot
95cfcc5b0a
Fix #65
2015-03-08 17:28:03 -07:00
Hackerpilot
7952562efc
Fix #62
2015-03-08 00:29:36 -08:00
Hackerpilot
e73280791a
Fix #44
2015-03-07 23:45:50 -08:00
Hackerpilot
9374214fdf
Fix #51
2015-03-07 23:37:30 -08:00
Hackerpilot
3df6515755
Fix #58
2015-03-07 23:15:37 -08:00
Hackerpilot
0d496129be
Fix #59
2015-03-07 23:00:14 -08:00
Hackerpilot
3d919d191d
Fix #61
2015-03-07 22:57:09 -08:00
Hackerpilot
e737d56d0d
Fix #60
2015-03-07 22:54:04 -08:00
Hackerpilot
7f0b3baecb
Fix #50
2015-03-07 22:42:51 -08:00
Hackerpilot
5eef96e797
Fix #53
2015-03-07 19:28:12 -08:00
Hackerpilot
85247f77f7
Fix #43
2015-03-07 18:30:19 -08:00
Hackerpilot
3743e80505
Fix #56
2015-03-07 17:13:48 -08:00
Hackerpilot
39bf1dafb9
Fix #46
2015-03-07 15:41:33 -08:00
Hackerpilot
0a71960d98
Fix #45
2015-03-07 14:50:46 -08:00
Hackerpilot
b989388e7c
Fix #49
2015-03-07 14:47:02 -08:00
Hackerpilot
49633c8901
Fix #52
2015-03-07 14:37:30 -08:00
Hackerpilot
2fa90ff3ba
Fix #57
2015-03-07 14:00:36 -08:00
Hackerpilot
21515ef614
Fix #34 for realz
2015-03-05 19:51:44 -08:00
Hackerpilot
6f153bd8a1
Fix #41
2015-03-05 19:40:55 -08:00
Hackerpilot
514ec6d32f
fix #37
2015-03-05 19:33:19 -08:00
Hackerpilot
42ba457439
Fix #38 .
2015-03-05 19:08:38 -08:00
Hackerpilot
8f11f3291f
Fix #40 . Fix #39
2015-03-05 19:01:52 -08:00
Hackerpilot
cd5f5f644b
Fix #34
2015-03-05 18:48:17 -08:00
Hackerpilot
2a803bbde0
Fix #28
2015-03-05 17:49:48 -08:00
Hackerpilot
fbdb908832
Fix #30 .
2015-03-05 17:18:05 -08:00
Hackerpilot
05c575f1e8
Fix #32
2015-03-05 17:09:50 -08:00
Hackerpilot
ac26e44a90
Fix #33 .
2015-03-05 16:54:58 -08:00
Hackerpilot
700ad601c1
Fix #29
2015-03-04 17:49:02 -08:00
Hackerpilot
146f892f37
Fix #25 .
2015-03-04 17:31:36 -08:00
Hackerpilot
a37f4a967e
Fix #24
2015-03-04 17:16:39 -08:00
Hackerpilot
c2b22b9e2b
Fix #26 . Fix #19 .
2015-03-04 17:07:40 -08:00
Hackerpilot
47bf248e95
#17
2015-03-04 14:34:56 -08:00
Hackerpilot
b98a1abea5
Fix #18
2015-03-04 13:42:08 -08:00
Hackerpilot
26e7212e0a
Fix #21
2015-03-04 13:32:36 -08:00
Hackerpilot
71fed69664
Fix #22
2015-03-04 13:26:40 -08:00
Hackerpilot
454019bf3c
Undo accidental assert change
2015-02-23 16:27:30 -08:00
Hackerpilot
445bbf0956
Fix crash on import expressions
2015-02-23 16:24:02 -08:00
Hackerpilot
24d78d8869
Fix label formatting
2015-02-22 01:04:00 -08:00
Hackerpilot
6d23aaaef5
Line wrapping improvements
2015-02-22 00:45:34 -08:00
Hackerpilot
4206c1f8d1
Four-space tabs
2015-02-20 18:52:23 -08:00
Hackerpilot
4bcb152c25
Improve comment spacing
2015-02-19 18:04:50 -08:00
Hackerpilot
5baf5e3559
Fix interaction between newlines and semicolons
2015-02-19 17:57:49 -08:00
Hackerpilot
f0d033eb74
Stop messing up case statements
2015-02-19 17:50:45 -08:00
Hackerpilot
df676b9fad
Better line wrapping
2015-02-19 17:10:01 -08:00
Hackerpilot
ebe56f3e56
GC hax
2015-02-19 16:24:21 -08:00
Hackerpilot
30c8134b93
Now no longer goes completely out of control with long expressions
2015-02-19 16:15:02 -08:00
Hackerpilot
96501f7418
More changes
2015-02-19 12:43:21 -08:00
Hackerpilot
32759fafae
More fixes to the A* line splitting
2015-02-18 23:21:12 -08:00
Hackerpilot
7dea7ea962
moar better A*
2015-02-18 18:31:41 -08:00
Hackerpilot
a886dc5cd0
Silly experiment
2015-02-18 17:56:39 -08:00
Hackerpilot
52d088d934
Fix more stupid bugs
2015-02-18 00:47:32 -08:00
Hackerpilot
a124e2dfc9
Improve line breaking
2015-02-17 21:49:24 -08:00
Hackerpilot
e39f2916b1
More formatting fixes
2015-02-17 15:31:22 -08:00
Hackerpilot
506e150eea
Merge branch 'master' of https://github.com/Hackerpilot/dfmt
...
Conflicts:
src/dfmt.d
2015-02-17 12:43:42 -08:00
Hackerpilot
eb2f783333
Code cleanup
2015-02-17 12:35:39 -08:00
Hackerpilot
e90b84dcde
Line wrapping improvements
2015-02-01 02:22:27 -08:00
Hackerpilot
41854aaeb6
Fix #12
2015-01-25 11:02:03 -08:00
Hackerpilot
e4ed938515
Fix #11
2015-01-25 10:57:31 -08:00
Brian Schott
102dbe4db0
Merge pull request #10 from jcd/master
...
Allow for outputting to anything supporting the write() method. Make it ...
2015-01-18 08:22:22 +00:00
Jonas Drewsen
c1334ab3ec
Use output range instead of file for output
2015-01-18 09:04:04 +01:00
Jonas Drewsen
81b17c8f31
Allow for outputting to anything supporting the write() method. Make it possible to exclude main.
2015-01-17 21:29:28 +01:00
Andreas Zwinkau
e1587e3e29
class after ; requires an additional newline
2015-01-17 16:40:14 +01:00
Andreas Zwinkau
91f804496a
preserve double newline between comments
2015-01-17 16:26:27 +01:00
Andreas Zwinkau
ebb11b0695
Colon always needs space around
...
Reverts 9284f1a which adds space around colons only in the case of
ternary expressions. However, import bindings and class inheritance
needs space as well. The overhead of the ast-list techniques seems
unnecessary.
2015-01-17 15:38:24 +01:00
Andreas Zwinkau
b8ca18ab24
foo()@safe needs a space
2015-01-17 00:29:28 +01:00
Andreas Zwinkau
de1f052b73
return without argument must have no space
2015-01-17 00:21:17 +01:00
Andreas Zwinkau
cb9a4015e7
Import with comment behind must not output newlines
2015-01-17 00:19:51 +01:00
Andreas Zwinkau
91983ebfea
More clever length estimating for import statements
...
Comma separated imports can get so long, they line breaks. Previously,
line breaks were inserted, if the identifier after "," made the line
longer than the soft limit. Now the whole expression length after ","
is calculated for the decision. For example, no line breaks within
"std.stdio" anymore.
2015-01-16 22:12:40 +01:00
Andreas Zwinkau
2d218f234b
refactor: extract function 'tokenLength'
...
Seems to fix a bug where the length was incorrectly calculated,
since tests/guessnumber.d output changed to something saner.
2015-01-16 22:12:40 +01:00
Andreas Zwinkau
0f337b0a15
Put some space before @
2015-01-16 22:12:40 +01:00
Andreas Zwinkau
feb75b4d3b
No trailing space after for,foreach,etc
2015-01-16 22:12:40 +01:00
Hackerpilot
9284f1afb6
Better formatting for ternary expressions
2015-01-16 11:34:38 -08:00
Andreas Zwinkau
6538abd177
No spaces-only lines after imports
...
Fixes tests/higherorder.d
2015-01-15 22:55:56 +01:00
Andreas Zwinkau
2278a4c16b
add --help option and usage string
2015-01-15 22:34:03 +01:00
Andreas Zwinkau
d59e186ed9
handle multiple arguments and directories
2015-01-15 22:34:03 +01:00
Andreas Zwinkau
1e543822fc
refactor: extract function 'format'
2015-01-15 19:49:55 +01:00
Andreas Zwinkau
8983dc8b15
tuning whitespace around comments
2015-01-15 09:30:55 +01:00
Andreas Zwinkau
158c679349
no doubleNewline at end of file
2015-01-14 21:43:29 +01:00
Andreas Zwinkau
8dfce773d1
always a space after 'return'
2015-01-14 21:11:58 +01:00
Hackerpilot
cf9876f565
No spaces after 'this' if followed by '.'
2015-01-13 23:47:40 -08:00
Hackerpilot
43d84337d4
Fix problem with identifiers and keywords being combined intobigidentifiers
2015-01-13 15:01:17 -08:00
Brian Schott
39fadba85c
Merge pull request #1 from BBasile/master
...
fix, array length has to be of type size_t
2015-01-13 22:03:19 +00:00
Andreas Zwinkau
6e9448bdbb
add --inplace option
2015-01-13 22:16:27 +01:00
Basile Burg
65415a15d5
fix, array length has to be of type size_t
...
...otherwise build fails on a 32 bit OS
2015-01-13 14:03:05 +01:00
Hackerpilot
9c8abe55fa
Better enum formatting and whitespace cleanup
2015-01-13 01:47:06 -08:00
Hackerpilot
b82ef4ad60
Formatting is much better now
2015-01-12 23:31:38 -08:00
Hackerpilot
5d324e81be
Initial commit
2015-01-11 17:50:30 +00:00