Timothee Cour
b5f463c3f6
fix #8928
2018-09-11 11:36:15 -07:00
LemonBoy
8670f4911b
Fix semantic pass with borrowed magic procs ( #8945 )
...
Reported by pqflx3 on the forum.
2018-09-11 20:32:25 +02:00
Andreas Rumpf
de02f5fa0a
add tcollect test for the new for-loops as expressions feature
2018-09-11 19:14:31 +02:00
Andreas Rumpf
84d122b5c8
extended system.type/typeof to support an upcoming 'collect' macro that works much better than sugar.lc
2018-09-11 19:02:05 +02:00
Andreas Rumpf
f7d1902043
fixes merge conflicts
2018-09-11 17:27:47 +02:00
LemonBoy
e7d4043406
Always emit hti object types if needed ( #8940 )
...
The compiler is now smart enough to emit types only if needed without
all the importc tricks. This also fixes a codegen bug where, if all the
stars align correctly, typeinfo doesn't include any definition of
`TNimType` but uses it.
Found by @skilchen in #8938
2018-09-11 17:03:21 +02:00
Andreas Rumpf
af94946517
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-09-11 16:41:34 +02:00
LemonBoy
9ba80d2044
JS strings have no trailing zero anymore ( #8936 )
2018-09-11 11:45:02 +02:00
Araq
f14f554435
nim doc: fixes cross-link generation when --out is used
2018-09-10 23:27:45 +02:00
Araq
2d8adb8e03
build nimble in debug mode to enable stack traces
2018-09-10 15:12:07 +02:00
Araq
2fc63838c8
appveyor: attempt to make the build more robust
2018-09-10 14:13:18 +02:00
LemonBoy
7107ec05de
Narrowing casts are applied after every op if needed ( #8918 )
...
This way we make sure not to end up with weird values every now and
then.
Fixes #7300
Fixes #8909
2018-09-08 19:41:07 +02:00
Araq
769b562764
some protection against injected doc comments from templates
2018-09-08 10:45:51 +02:00
LemonBoy
3f16711254
Fix insert/delete for JS ( #8915 )
...
Fixes #8914
2018-09-08 10:38:18 +02:00
Araq
ca77f9388a
'nim doc': fixes index generation regression
2018-09-08 10:04:22 +02:00
LemonBoy
91b37311d9
Fix AST generation for case statements ( #8908 )
...
Fixes #7534
2018-09-07 21:07:06 +02:00
LemonBoy
eae3c305a7
Don't segfault if the line is empty ( #8906 )
2018-09-07 21:06:51 +02:00
LemonBoy
e69d8ec416
Fix type comparison in semConv ( #8907 )
...
Fixes #8905
2018-09-07 21:06:30 +02:00
Araq
c7ba7a97c0
fixes merge conflict
2018-09-07 19:25:05 +02:00
Araq
f078f272e5
make tests green again
2018-09-07 19:21:17 +02:00
Araq
e06a89e112
fixes bootstrapping problems
2018-09-07 19:21:17 +02:00
Andreas Rumpf
b017138c32
added a test for 'nim doc'
2018-09-07 19:21:16 +02:00
Andreas Rumpf
86556ebfdb
compiler refactoring; use typesafe path handing; docgen: render symbols between modules
2018-09-07 19:21:16 +02:00
Andreas Rumpf
b5730ec01f
system.nim: fix doc comment for 'once'
2018-09-07 19:21:15 +02:00
Andreas Rumpf
7f55bfc7d5
fixes #3655
2018-09-07 19:21:15 +02:00
awr
e3d7056902
fixed stmtPragmas stuff
2018-09-07 11:28:01 -05:00
LemonBoy
90025e242d
Minor fixes for asyncjs ( #8894 )
...
* Minor fixes for asyncjs
Mark internal procedures as used
Allow .async. for more node kinds
Make .async. work for nkStmtList
* Fix logic error in both the async macros
2018-09-07 16:42:38 +02:00
Yuriy Glukhov
1e6eca973d
Fixes #8243 ( #8904 )
2018-09-07 16:30:50 +02:00
Araq
7a8c575924
fixes bootstrapping problems
2018-09-07 14:07:42 +02:00
Andreas Rumpf
eb8b36c84d
added a test for 'nim doc'
2018-09-07 13:13:35 +02:00
awr
5ee924c711
whoops, forgot to remove old pragma section
2018-09-07 00:00:20 -05:00
awr
32deb70bae
changed to {.experimental: codeReordering.}, postpoing declared() stuff
2018-09-06 23:49:38 -05:00
LemonBoy
e81fe6d32f
Allow wCodegenDecl on lambdas ( #8892 )
2018-09-07 01:58:49 +02:00
LemonBoy
84eab97fed
Sync line generation between C and JS backends ( #8888 )
...
Fixes #7224
2018-09-07 01:56:36 +02:00
LemonBoy
af1e84f54d
Automatic deref for everything but pointers in asm/emit ( #8891 )
...
Fixes #7249
2018-09-07 01:54:59 +02:00
Andreas Rumpf
ad9db5cb1a
compiler refactoring; use typesafe path handing; docgen: render symbols between modules
2018-09-07 01:53:09 +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
Timothee Cour
67aa8eab0b
add data.sysCommand when startProcessAuxSpawn raises
2018-09-06 03:12:10 -07:00
LemonBoy
36e6ca16d1
Fix too broad generic match for toHex ( #8889 )
...
Fixes #8865
2018-09-05 20:57:50 +02:00
Andreas Rumpf
92863c0e75
system.nim: fix doc comment for 'once'
2018-09-05 18:05:55 +02:00
awr
2b8c4096a4
brought back pragmaNoForward, deprecated
2018-09-05 09:03:44 -05:00
Vindaar
d34233b501
[DOC] fix typos in strscans documentation ( #8885 )
2018-09-05 14:57:36 +02:00
Andreas Rumpf
49708d9c25
fixes #3655
2018-09-05 08:47:39 +02:00
awr
02306020b2
fix test
2018-09-04 18:25:54 -05:00
awr
c2b09a499c
Fix merge
2018-09-04 16:46:43 -05:00
awr
cd3d4faa79
Deny THIS experimental pragma specifically for non-toplevel
2018-09-04 16:42:37 -05:00
awr1
eb668003bf
Merge branch 'devel' into experimentalize-reorder
2018-09-04 16:33:52 -05:00
awr
89ad1cc9b1
tabling declared() stuff
2018-09-04 16:21:47 -05:00
awr
e6a4213fae
transformed {.reorder: on.} into {.experimental: codeReordering.}, added tests
2018-09-04 15:31:38 -05:00
awr
47726ecb9e
updated manual for declared()
2018-09-04 15:25:46 -05:00