cooldome
d8c3df2683
fixes #10805 ( #10806 )
2019-03-13 10:23:06 +01:00
Alexander Ivanov
3294ce3831
Render a colon for command if last arg list ( #10803 )
2019-03-08 13:31:24 +01:00
Andreas Rumpf
dcc3ac74f4
don't crash when rendering wrong nkInfix nodes
2018-10-12 19:22:39 +02:00
Andreas Rumpf
86556ebfdb
compiler refactoring; use typesafe path handing; docgen: render symbols between modules
2018-09-07 19:21:16 +02:00
cooldome
c033ff990a
Renderer bug fixes ( #8804 )
...
Fixes #8763 : render bug: pure enums not handled correctly
Fixes #8762 : render bug: binary operators called with quotes rendered incorrectly
FIxes #8761 : render bug: inversion of operator priorities
2018-09-07 01:52:42 +02:00
Araq
1abef2dc59
improve the error message for 'addQuitProc' etc; fixes #5794
2018-09-03 12:27:23 +02:00
Araq
64517445ea
even more strict isNil handling for strings/seqs in order to detect bugs
2018-08-22 12:35:46 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
cooldome
ec02940185
Render bug: if expression with statement list expression as condition ( #8375 )
...
* Fixes #8348
2018-07-21 13:01:47 +02:00
cooldome
a651809411
Fixes #8343 , Fixes #8344 ( #8347 )
2018-07-18 14:54:44 +02:00
cooldome
231a83a6b1
Fixes #8287 ( #8288 )
2018-07-12 11:03:08 +02:00
Dmitry Atamanov
854aa3958f
Fixes maxLineLength's bug in the renderer ( #8240 )
2018-07-09 20:04:57 +02:00
Zahary Karadjov
5bcf8bcb59
fixes #7222 ; fixes #5595 ; fixes #3747
...
* late instantiation for the generic procs' default param values
* automatic mixin behaviour in concepts
Other fixes:
* don't render the automatically inserted default params in calls
* better rendering of tyFromExpr
2018-06-16 16:46:32 +03:00
Andreas Rumpf
a1bd4a6cbd
nimpretty: first version that seems useful for others to test it
2018-06-16 01:46:39 +02:00
Araq
8e9551b1c7
fixex merge conflicts
2018-06-08 19:50:36 +02:00
Andreas Rumpf
3cbc07ac78
Merge pull request #7770 from yglukhov/yield-in-try
...
Yield in try
2018-06-05 19:58:00 +02:00
Andreas Rumpf
18a3833d60
more refactoring
2018-05-27 15:22:17 +02:00
Andreas Rumpf
669a564492
remove more global variables in the Nim compiler
2018-05-27 11:10:56 +02:00
Andreas Rumpf
e55a1051ea
fixes yet another index out of bounds issue in renderer.nim
2018-05-21 19:53:52 +02:00
Araq
dc809bd485
fixes yet another indexing bug caused by the strict strings
2018-05-21 14:22:02 +02:00
Yuriy Glukhov
cfe40a3e6e
Merge branch 'devel' into yield-in-try
2018-05-15 19:54:52 +03:00
Andreas Rumpf
328e7a1005
options.nim: no global variables anymore
2018-05-13 17:52:21 +02:00
Andreas Rumpf
0d56dd4677
big refactoring: magicsys compiles again
2018-05-10 13:12:42 +02:00
Yuriy Glukhov
d71f69ab50
Closure iter transformation
2018-05-09 22:25:27 +03:00
Andreas Rumpf
1aa359febb
warn about inconsistent spacing around binary operators; fixes #7582
2018-05-05 14:58:33 +02:00
Dmitry Atamanov
82275e3779
Fix renderer's errors ( #7742 )
...
* Fix renderer's errors
* Same for filter_tmpl
* var -> let
2018-05-01 19:45:38 +02:00
Andreas Rumpf
e3e18b277c
renderer.nim: bugfix
2018-04-29 01:03:24 +02:00
Oscar Nihlgård
8caf257607
Don't escape multibyte characters ( #7570 )
2018-04-23 11:09:48 +02:00
Araq
9bc963508f
nimpretty: next steps
2018-04-18 21:30:38 +02:00
Andreas Rumpf
47335aab41
introduce nkTupleConstr AST node for unary tuple construction; breaking change
2018-04-13 17:45:58 +02:00
Arne Döring
abfcbaa74c
fewer temporary string allocations for the compiler's renderer ( #7484 )
2018-04-04 08:46:35 +02:00
Andreas Rumpf
437caf4358
Merge branch 'devel' into nimv2
2018-01-08 20:04:25 +01:00
Andreas Rumpf
c924fac5c8
fixes #7019
2018-01-08 18:22:18 +01:00
Andreas Rumpf
e4081a7201
preparations for language extensions: 'sink' and 'lent' types
2018-01-07 23:09:26 +01:00
Araq
cf259fbd1c
fixes #6972
2017-12-29 20:01:49 +01:00
Araq
218679fc95
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2017-12-21 10:03:56 +01:00
Araq
ee67a67ac4
first steps in adding template/macro calls to stack traces
2017-12-21 10:03:33 +01:00
Mathias Stearn
07fe1aa655
Use escape sequences rather than hex in string/char literals ( #6941 )
...
This should makes documentation easier to read for people who haven't
committed the ascii table to memory.
2017-12-18 17:49:49 +01:00
Araq
e06d76669a
renderer.nim: fixes a long standing bug that kept triple string literals from being rendered properly
2017-12-17 13:15:19 +01:00
Araq
34f07d10f2
renderer.nim: support for outputting symbol magics for debugging
2017-11-30 12:09:19 +01:00
Andreas Rumpf
70ea45cdba
deprecated unary '<'
2017-10-29 08:37:13 +01:00
Andreas Rumpf
186e7d49d3
fixes c2nim regression; do not produce more newlines
2017-10-19 13:29:11 +02:00
Araq
604a15c0aa
some progress on the nimpretty tool; still not ready
2017-10-16 00:59:51 +02:00
Andreas Rumpf
ac3e3cf2b0
fixes a renderer regression that affects c2nim
2017-10-10 11:15:18 +02:00
Andreas Rumpf
125ccd303e
nimpretty bugfix
2017-10-06 08:20:56 +02:00
Andreas Rumpf
eddf9abd13
beginnings of the new nimpretty tool; still unusable
2017-10-05 08:43:22 +02:00
Araq
3ccc9c467d
'with' and 'without' are not keywords anymore
2017-09-30 18:32:44 +02:00
Andreas Rumpf
61720e0df9
breaking change: getAst strips away pointless nnkStmtList nodes; node rendering of nnkStmtList without wrong indentation
2017-09-26 10:24:14 +02:00
Andreas Rumpf
1a61c4d46d
first implementation of the 'func' keyword
2017-09-23 23:22:53 +02:00
BigEpsilon
6f6e6fe4eb
Fix #6295 ( #6296 )
2017-08-30 14:44:11 +02:00