Commit Graph

17607 Commits

Author SHA1 Message Date
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
LemonBoy
4aba2981dd Codegen fix for function pointers marked inline (#8866)
Fixes #5345
Fixes #5701
2018-09-04 15:28:14 +02:00
c-blake
cec89d8354 This has been unnecessary as long as rawNewObj has called zeroMem, (#8867)
and more recently indexing past the Nim-logical end has become
illegal making this line cause a crash.
2018-09-04 15:26:34 +02:00
Yuriy Glukhov
d2eea9e1c9 Fixes #8851 (#8859) 2018-09-04 08:18:11 +02:00
Dominik Picheta
e789acb59b Merge pull request #8840 from pigmej/fix_with_timeout
Handle fut.failed in asyncdispatch.WithTimeout
2018-09-03 21:34:52 +01:00
Andreas Rumpf
e4be1cb814 system.compileDate and compileTime are in UTC; fixes #7305; docgen supports SOURCE_DATE_EPOCH, fixes #3113 2018-09-03 22:23:10 +02:00
Araq
b53531ee31 make 'koch web' work again 2018-09-03 20:02:59 +02:00
Araq
320582a55c cleanup Nim's examples/ directory; closes #7725 2018-09-03 18:29:11 +02:00
LemonBoy
1a60ffcf1d Correctly mangle this in the JS backend (#8853)
As shown in pragmagic/karax#67 using `this` as parameter name made the
codegen output wrong code (and the user didn't notice the errors in the
browser console).
2018-09-03 17:51:30 +02:00
Araq
0694c9080f fixes #8043 2018-09-03 16:07:44 +02:00
cooldome
e63c66b810 Add sym owner to macros (#8253) 2018-09-03 13:25:59 +02:00