Andrey Makarov
a660c17d30
Markdown code blocks migration part 8 ( #22478 )
2023-08-15 06:27:36 +02:00
metagn
ba698d37c3
some Token refactors ( #21762 )
...
* test some Token refactors
* fix CI
* showcase for more reductions, will revert
* Revert "showcase for more reductions, will revert"
This reverts commit 5ba48591f4 .
* make line and column int32
* remove int32 change
2023-05-06 21:27:28 +02:00
ringabout
a15872ba9e
refactor strongSpaceB with an enum ( #20809 )
...
refactor strongSpaceB
2022-11-10 16:21:52 +01:00
ringabout
0b1d1b7886
fixes #15688 ; handle strongSpace overflow issues ( #20724 )
...
* fixes #15688 ; handle `strongSpace` overflow issues
* stop at 1
* change the type of strongSpaceA to bool
2022-11-03 09:18:09 +01:00
ringabout
6082b9ea5d
fixes #20553 ; don't format code for stropping identifier ( #20561 ) [backport]
...
* fixes #20553 ; don't format code for stropping identifier
* add tests
* Update nimpretty/tests/expected/simple.nim
2022-10-13 23:37:41 +02:00
Miran
4f0bac791a
fix #12155 , improve nimpretty's handling of pragmas ( #17353 )
2021-03-12 15:34:42 +01:00
flywind
d447c0fe3f
use typeof instead type ( #16962 )
2021-02-08 09:46:07 +01:00
Clyybber
f20e485827
Fix commentOffsetA for doc comments ( #15643 )
2020-10-20 01:19:49 +02:00
Miran
1edb9a6178
fix #14401 , trailing comma confuses nimpretty ( #14867 )
2020-07-01 11:40:13 +02:00
Juan Carlos
8e54bc5b0c
Deprecate and/or remove ospaths ( #14767 )
2020-06-23 10:51:33 +02:00
Jacek Sieka
7d6cbf290a
Error -> Defect for defects ( #13908 )
...
* Error -> Defect for defects
The distinction between Error and Defect is subjective,
context-dependent and somewhat arbitrary, so when looking at an
exception, it's hard to guess what it is - this happens often when
looking at a `raises` list _without_ opening the corresponding
definition and digging through layers of inheritance.
With the help of a little consistency in naming, it's at least possible
to start disentangling the two error types and the standard lib can set
a good example here.
2020-04-28 19:56:01 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
narimiran
ceb742351a
nimpretty: fix #11937 (wrong indentation)
2019-08-19 13:35:10 +02:00
Araq
6d8913ee14
nimpretty: fixes #11616
2019-07-18 12:13:22 +02:00
Araq
7deb49e992
nimpretty: fixes #11699
2019-07-18 11:28:25 +02:00
Miran
2f0a50fa51
nimpretty: fix #11700 , no extra newlines ( #11714 )
2019-07-12 09:14:21 +02:00
narimiran
96d49608c0
nimpretty: more comment indentation fixes
2019-07-09 13:15:35 +02:00
Araq
eefcea8892
nimpretty: more improvements
2019-07-09 11:38:01 +02:00
Araq
0193c8ad2e
nimpretty: yet another improvement
2019-07-09 11:38:01 +02:00
Miran
d0616ed115
nimpretty: don't introduce extra spaces after a colon or a comma ( #11672 )
2019-07-07 20:13:10 +02:00
Miran
34c09a98c7
nimpretty: improved detection of commas and semicolons ( #11661 )
...
* nimpretty: improved detection of commas and semicolons
* address the comments
2019-07-06 00:21:21 +02:00
Miran
176eaf5c90
nimpretty: don't touch formatted multiline comments ( #11663 )
2019-07-05 21:47:01 +02:00
Miran
96a19ea1b4
nimpretty: relax line length rules when dealing with (inline) comments ( #11657 )
2019-07-05 09:32:56 +02:00
Miran
0718d6c2cd
[bugfix] fix wrong nimpretty unidents, refs #11616 ( #11645 )
2019-07-03 18:55:15 +02:00
Miran
c522a455df
[bugfix] nimpretty indents multiline comments correctly ( #11607 )
2019-07-02 10:52:46 +02:00
Araq
284a8cb58a
nimpretty: bugfix [bugfix]
2019-06-28 11:45:21 +02:00
Miran
f288e1b11a
[bugfix] fix #11469 , new rules for a newline in nimpretty ( #11512 )
...
* [bugfix] fix #11469 , new rules for a newline in nimpretty
* concatenate two lines if they have the same indentation level
2019-06-26 15:36:44 +02:00
Araq
57a83df745
[bugfix] nimpretty: better alignment; fixes #11467
2019-06-14 11:16:39 +02:00
Araq
165ea46284
[bugfix] nimpretty: fixes #11470
2019-06-13 10:58:27 +02:00
Araq
af39f26a3a
[bugfix] nimpretty: fixes #11468
2019-06-13 10:42:37 +02:00
Andreas Rumpf
caf93f4355
nimpretty: smart tabs support, fixes #9399 [bugfix]
2019-06-10 10:50:15 +02:00
Andreas Rumpf
9f82e07b2d
nimpretty: fixes #10156 [bugfix]
2019-06-08 00:00:00 +02:00
Araq
12fc1dfb2c
nimpretty: closes #10159 [bugfix]
2019-06-07 13:03:04 +02:00
Araq
667af87e66
nimpretty: fixes #9505 [bugfix]
2019-06-07 12:59:31 +02:00
Araq
790bc5b07b
nimpretty: fixes #10177 [bugfix]
2019-06-07 11:50:56 +02:00
Araq
447cc1ff09
nimpretty: fixes #10295
2019-06-07 10:37:00 +02:00
tofu
a990afcedc
fixes #10200 ( #10950 )
...
* fixes #10200
* add rule for other comparison operators
* add rule for '!='
* add test
* fixed to pass the test
2019-04-04 14:58:54 +02:00
Andreas Rumpf
532647171e
nimpretty: fixes #9673 [backport]
2018-11-11 10:39:20 +01:00
Andreas Rumpf
03005fde99
nimpretty: fixes #9506
2018-10-26 01:53:10 +02:00
Araq
87d60b2a4b
nimpretty: fixes #9500
2018-10-25 11:48:06 +02:00
Araq
0afca3dd6b
nimpretty: fixes #9504
2018-10-25 11:18:03 +02:00
Araq
e7e75224a2
nimpretty: closes #9484
2018-10-24 15:22:28 +02:00
Araq
06a6433db7
nimpretty: test for idempotence; fixes #9483
2018-10-24 15:19:29 +02:00
Araq
3ee53a7c8e
nimpretty: fixes #8078
2018-10-24 00:59:57 +02:00
Araq
e3a0415650
nimpretty: fixes #9398
2018-10-24 00:53:41 +02:00
Araq
72370c8dfa
closes #9400
2018-10-23 17:52:18 +02:00
Araq
695074214b
nimpretty: minor bug fix
2018-10-23 17:52:18 +02:00
Andreas Rumpf
480d228603
nimpretty: added an new simple test
2018-10-16 17:25:12 +02:00
Andreas Rumpf
778e4d1775
nimpretty: fixes #9144
2018-10-16 17:21:41 +02:00
Andreas Rumpf
f3c0703b7d
nimpretty: add #!nimpretty on/off directives
2018-10-16 16:55:04 +02:00