Bastiaan Veelo
5c28af1ac7
Simplify, don't special-case comments.
...
Not much is gained by using `tokenLength` anyway, use the slice length for everything.
`len` is now unsigned so the assert is obsolete.
2018-10-18 10:59:25 +02:00
Bastiaan Veelo
f3fe504ed5
Allow comments in selective imports.
...
tokenLength() does not consider comments as valid tokens, so get their length explicitly.
Fixes issue 384, allowing comments inbetween the symbols of selective imports.
2018-10-16 21:02:54 +02:00
Laurent Tréguier
6ad2fbb6fc
Fix #287 - Extra space after import in delegate
2018-10-15 10:14:23 +02:00
The Dlang Bot
3917c32925
Merge pull request #402 from some-bot/merge-libdparse-v0.9.10
...
Update dlibparse to v0.9.10
merged-on-behalf-of: Dlang Community Bot <some-bot@users.noreply.github.com>
2018-10-13 16:02:16 +02:00
some-bot
a1cb44eb80
Updated libdparse to v0.9.10.
2018-10-13 12:59:49 +00: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
The Dlang Bot
18eea577f8
Merge pull request #398 from LaurentTreguier/issue-345
...
Fix #345 - Case of trailing white space
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-10-10 13:43:57 +02:00
Laurent Tréguier
b928eb6d84
Fix #345 - Case of trailing white space
2018-10-10 13:37:06 +02:00
The Dlang Bot
810e4b464f
Merge pull request #396 from LaurentTreguier/debug-with-param
...
Debug with param
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-10-09 15:50:10 +02:00
Laurent Tréguier
6ff47e106a
Fix else indentation after debug conditions
2018-10-09 13:19:07 +02:00
Laurent Tréguier
72dd6e83b3
Stop directly accessing top indent token
...
Accessing the top indent token without using the topIs* () methods is
unsafe and can lead to range violations.
2018-10-09 12:04:44 +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
some-bot
494f70b429
Updated libdparse to v0.9.9.
2018-10-03 15:14: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
some-bot
0fc4149907
Updated libdparse to v0.9.8.
2018-09-29 14:24:12 +02:00
BBasile
7fb46c9aa5
Use automatic versioning ( #379 )
...
Use automatic versioning
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-09-19 15:16:41 +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
1fd19a1375
deactivate testing with DMD nightly ( #383 )
...
deactivate testing with DMD nightly
merged-on-behalf-of: Laurent Tréguier <LaurentTreguier@users.noreply.github.com>
2018-09-08 13:40:50 +02:00
Brian Schott
ae76778801
Add index validity checks to the left paren/bracket code. Fixes #367 . ( #368 )
...
Add index validity checks to the left paren/bracket code. Fixes #367 .
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-09-06 01:01:27 +02:00
BBasile
56097fd106
Deprecate enforce ex ( #377 )
...
Deprecate enforce ex
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-09-06 01:01:08 +02:00
Stefan Koch
4256f988bf
Merge tag v0.8.2 into v0.x.x
2018-06-19 16:48:23 +02:00
Stefan Koch
cff6eb908e
Merge tag v0.7.2 into v0.8.x
2018-06-19 16:48:23 +02:00
BBasile
c58e54fe71
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>
* libdparse 687c0ca(687c0ca)...086cf06(086cf06) (28 commits)
> Merge pull request #242 from BBasile/issue-241
> Merge pull request #239 from kubo39/add-isIntegerLiteral
> Merge pull request #237 from BBasile/parse-virt-helpers
> Merge pull request #236 from JinShil/patch-2
> Merge pull request #235 from BBasile/upd-stdx-alloc
(...)
2018-06-19 16:46:39 +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
Leandro Lucarella
c66fea0fe5
v0.7.1
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAABCAAGBQJbGrPQAAoJEOPQILQNRairRBoP+wQp3KG8pBYRjYWCUYBCcNrO
5YgjtI7aEZfjo7mp56a7aYlXHmJpd8zPwR7xC9dwkA7/WzH6Pd6Lz5rz1cZq0KS7
b+xwv834FRcGP17t7wKh1YqC8cvaL5UxgIIWvsk8L8W8wvt5ZwWXWkWGvUHfCgsp
yZAjODJHBqUpkVSyCoOPgK8H02iY2wLAhQz1wZDRVyst9oFmNw0bgKprzyYaJrSd
TkZL+1NZB9emCXBhW54Rh31hBnil5X7BJYvm9gNoEy9NO30uO+M1Z+HtRqY2z/kY
VeCbk6oIvqQbqX/gbaNDWXhnnYcNJS6T7f6kob0Iu6m0FiCeW7e0PoYit4X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rNm/WwlLVWdXNX4PxcK77B7FAXFDxCKBc+fUq3L0jzrKFHAW
rUWBbzWvK4RHkJO83l67
=wbJ6
-----END PGP SIGNATURE-----
Merge tag v0.7.1 into v0.8.x
v0.7.1
# gpg: Signature made Fri 08 Jun 2018 18:50:24 CEST
# gpg: using RSA key E3D020B40D45A8AB
# gpg: Good signature from "Leandro Lucarella <leandro.lucarella@sociomantic.com>"
* tag 'v0.7.1':
Update Windows Travis Deploy Regex (#354 )
Deploy binaries to GitHub releases (Linux/MacOS) (#348 )
2018-06-08 18:50:25 +02:00
Leandro Lucarella
4fd89f1f41
v0.8.1
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAABCAAGBQJbGrPRAAoJEOPQILQNRairbNQQAKDzxypJ5XjWhgBl9mALP4ia
jPAZhaUXrPNNXmTVc6X09BwMPEqldC51AbMM2x7b81g6IjxEi4mk38yOy+ZAVaaX
GMEHHXrSX6PspCxBgjICOkYEy2ADZkZ1PfpZrv93fNVLQb1rRdGnOV8sxLqCMdiJ
IpYasQoFSiJFgjhaZPvY9/mTcV701OXrRQrLjpEhjJM3hWsXjs9x2VukcImebaOE
OidjUqGDlqVNTBnNRNihJ6n47sZBredUeTyRG5eCdaoXUGQe4kToo96kX2LefObr
JSXAkAdVuNFq4Ffk9F/wXL6NyR197c1Y5x5MDMFv+bF7COQt7K0PsAIX7whw5y9S
LHfuopY/2hyHad5qW6T1itIFVESIRXNGk6DkLeZ2MnozbyByjEVam3gOkRCKYdIw
R205SVyB9CVLOZ/jw/gEROc9dBqDkh0lsIAYhQuWHV3tqr3vxqj2L/X1w8IsJu64
2ldMvz4ZkgcaE0h2SWm1ZAeyag5nTXJG/rJ2F7lY/lBd3NNDHNtygyKtLtO+cMdd
i33zwif22tDAm1IF6A8JFIWZvCwONleffX5B3FKnozKWPln60GFdcEP6BUeoPTp+
DGHpKcHFZpfbWvlqhdpDf4dkCHjehlUuTCSqnG+LWp13GgDxuX+v/iQOmIpMQlSJ
dJnlL9Or+QrNhqzyqyFE
=5WQY
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAABCAAGBQJbGrPRAAoJEOPQILQNRairJW0P/2+P9IGiHdJtrOrU7OBiT4Ml
xYawWos4FILLHgoj/W3zPUqSkMCq1w4WcvOKG4A3eHaC6+xnyDQwN6uCysfd2tIO
Pk8Afam5g+EpFf9ZnjnxChpBKIb3UHplkdKcL0tWCvzBjRbXycR3pxW/UVx8WQ+V
UY3S9lcgbZW7PBBRZbCPRhviFZnNL48apN+pVGmV7gWc0BNpA8muFTL/I7bA+gpP
MEZ6xYC+xV+1qKoJ9oyxAC/LUwt0nsw2uWc/y+C55hhKUdOchQDboc8V7ythBdCT
c83hpvrnElvbxKpaKsWJs6+rL8Cvp3ongKh/4sdGKLK44HKmU/usNk70dbDI7oTa
dHxjq1Cyl6cPJ4Xmmhpxke2UEvS6vPKdcRXJDVtopKVssWZqGlnfDrPmdGICnFqc
g0yxKMxu7LN6dHczCaVPmLc77TbBhJyAF4taMnFY539P/ME0cnOXPQNdBSK4uO+C
44zydEPVLPrf/y1hYQS1u+So/klUNxFR/9JCNBcSat9QqneUL6vS+kx97MSXGq8p
oNvndoI3uzoju6UmEgKLm3+1iTBLAieZPDRCOgFXvfksgr3HjZEdJU+QyqtKARuV
hjWMM/QIFO3vutOSn5Asqc/wgQBpyUrHoMmm0dGptGOW3S8XauFkW5D7z78+Slbm
xD+cPH9UHku04aaY0/Eb
=6HPM
-----END PGP SIGNATURE-----
Merge tag v0.8.1 into v0.x.x
v0.8.1
# gpg: Signature made Fri 08 Jun 2018 18:50:25 CEST
# gpg: using RSA key E3D020B40D45A8AB
# gpg: Good signature from "Leandro Lucarella <leandro.lucarella@sociomantic.com>"
* tag 'v0.8.1':
Update Windows Travis Deploy Regex (#354 )
Deploy binaries to GitHub releases (Linux/MacOS) (#348 )
2018-06-08 18:50:25 +02:00
Stefan Koch
8f76cce8db
Clear release notes after release
2018-05-29 16:17:05 +02:00
Stefan Koch
b416d72221
Add ufcs formatting relnotes
2018-05-29 16:05:25 +02:00
BBasile
2284d98ef7
Update stdx alloc for future removal of std.c ( #357 )
2018-05-26 20:04:38 +02:00
Hackerpilot
1753127e74
Update dub file to bring in newer libdparse
2018-05-09 16:06:12 +02:00
Hackerpilot
c4b9178e81
Better formatting for UFCS chains
2018-05-09 16:06:12 +02:00
Sebastian Wilzbach
c2aea82395
Update Windows Travis Deploy Regex ( #354 )
2018-05-08 23:43:41 +02:00
Brian Schott
6eb7b95173
Fix #351 ( #352 )
...
Fix #351
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-05-07 07:04:19 +02:00
Sebastian Wilzbach
c4e7335850
Deploy binaries to GitHub releases (Linux/MacOS) ( #348 )
2018-04-23 23:17:01 +02:00
notna123
08f73d216b
Update main.d ( #347 )
...
GIT repo change from "Hackerpilot" to "dlang-community"
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-27 08:59:46 +02:00
Stefan Koch
8c95061c1a
Clear release notes after release
2018-03-14 16:40:37 +01:00
Stefan Koch
4168c232ab
Add relnotes
2018-03-14 16:39:28 +01:00
Stefan Koch
25cdc1f885
Merge branch 'v0.6.x' into v0.x.x
2018-03-14 16:29:35 +01:00
Stefan Koch
b3411a3303
Fix Imports to point to the actual symbols rather then wrongly imported ones.
2018-03-08 11:57:07 +01:00
Stefan Koch
0167863b33
Ignore empty files while formatting
2018-03-08 11:57:07 +01: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
Stefan Koch
e535f0b2b0
Fix the issue #237
...
In formatLeftBrace remember if we indented because of a StructInitialzer;
If we did we revert the intdent in formatRightBrace
2018-03-07 21:18:25 +01:00
Stefan Koch
dca63110f7
Optionally return position in canFindIndex
2018-03-07 21:18:25 +01:00