Commit Graph

11210 Commits

Author SHA1 Message Date
Araq
928ac1e994 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2016-07-14 01:11:47 +02:00
Andreas Rumpf
491e8d04ec docgen improvement: hidden 'attachedType' span is generated for upcoming docgen improvements 2016-07-13 21:27:39 +02:00
Andreas Rumpf
b43d5148c5 --listCmd also needs to affect linking step 2016-07-13 21:26:58 +02:00
Andreas Rumpf
7df8b4bb43 nimsuggest: dependencies are recalculated properly 2016-07-13 21:26:37 +02:00
Andreas Rumpf
813828f690 the Nim compiler supports the jsondoc2 command 2016-07-13 01:06:33 +02:00
Andreas Rumpf
f47165af11 fixes #3706 2016-07-13 01:06:33 +02:00
Andreas Rumpf
8dd27a6699 fixes #2730 2016-07-13 01:06:33 +02:00
Hans Raaf
3cea6e8a96 Added iterator for utf8 strings 2016-07-13 00:25:31 +02:00
Andreas Rumpf
6111d2ec21 Merge pull request #4480 from apahl/devel
explain difference between Table and TableRef in tables.nim
2016-07-12 20:44:39 +02:00
Axel Pahl
6de1333a26 use table literal syntax 2016-07-12 10:45:54 +02:00
Andreas Rumpf
928222cc67 fixes #4429 2016-07-12 10:31:36 +02:00
Andreas Rumpf
4f7a2e9def fixes #4358 2016-07-12 10:26:43 +02:00
Axel Pahl
8d4614b5ab explain difference between Table and TableRef in tables.nim 2016-07-12 09:43:31 +02:00
Andreas Rumpf
84c3830c6b fixes #4301 2016-07-12 02:14:26 +02:00
Andreas Rumpf
56f99f56ac fixes edge cases in the lexer 2016-07-12 01:05:52 +02:00
Andreas Rumpf
7a018007a4 fixes #4471 2016-07-12 00:50:25 +02:00
Andreas Rumpf
bcb2365dec fixes a critical JS codegen bug which caused 'importcpp' statements not to be emitted 2016-07-11 23:19:24 +02:00
Andreas Rumpf
c9ce38e56d fixes a strange JS codegen bug 2016-07-11 23:19:24 +02:00
Andreas Rumpf
b668c5e2aa Merge pull request #4476 from yglukhov/gc-trace-fix
Fixed crash with leakDetector and threads enabled.
2016-07-11 20:46:02 +02:00
Andreas Rumpf
51c77e09fd Merge pull request #4477 from kierdavis/4475-segfault
Fix #4475
2016-07-11 20:45:28 +02:00
Kier Davis
023f1da40a Add regression test for fix for #4475 2016-07-11 15:16:23 +01:00
Andreas Rumpf
fba673ce15 Merge pull request #4474 from mbaulch/fix3516
Recursively check literals for tyEmpty.
2016-07-11 16:14:13 +02:00
Kier Davis
56015e52b9 Fix #4475
Existing implementation would append the default value for a varargs parameter (the empty array) to the end of the sons of the
nnkCall node, rather than storing it into the correct index. This left the location where it should have been stored set to
its default value of nil, causing later code that uses this node to segfault.
2016-07-11 14:53:39 +01:00
Yuriy Glukhov
59d17cb341 Fixed crash with leakDetector and threads enabled. 2016-07-11 16:23:15 +03:00
Andreas Rumpf
9620e66533 Merge pull request #4472 from mbaulch/fix4422
Fix #4422: Reset queue element on pop. Prevent NimVM confusion. Help GC.
2016-07-11 11:53:43 +02:00
Matthew Baulch
d05e146b30 Recursively check literals for tyEmpty. 2016-07-11 19:12:05 +10:00
Matthew Baulch
90a5edfa6d Fix #4422: Reset queue element on pop. Prevent NimVM confusion. Help GC. 2016-07-11 15:10:54 +10:00
Andreas Rumpf
d7e172a6bc make tests green again 2016-07-10 01:17:08 +02:00
Andreas Rumpf
58f4b4ce23 Merge pull request #4469 from FedericoCeratto/patch-11
Fix "string literal as key expected" error
2016-07-10 00:05:54 +02:00
Andreas Rumpf
2247ddd12d make hint/warning work properly after Nimscript execution 2016-07-09 22:45:55 +02:00
Kier Davis
8e843354e1 Disable failing tests for tables.clear()
The tests for tables.clear() in tests/collections/ttables.nim currently fail as a result of #4448, so I've wrapped them in a
'when false' to disable them until the bug is fixed.
2016-07-09 18:21:37 +01:00
Kier Davis
449960bf7e Add a fix for clear() on non-ref types by adding a missing 'var' annotation to the type signature
However, this fix won't take effect until a compiler bug (#4448) is fixed. Until then, the codebase functions identically to
how it did before this commit (calls to clear() fail to compile for Table/OrderedTable/CountTable as the argument is
immutable).
2016-07-09 17:34:01 +01:00
Federico Ceratto
a505fa631d Fix "string literal as key expected" error
Fix "Error: string literal as key expected expected"
2016-07-09 17:25:57 +01:00
Kier Davis
0390248419 Add tests for tables.clear()
This should reduce the chance of regressions.
2016-07-09 17:21:18 +01:00
Kier Davis
edb5a1a5c6 Fix clear() on CountTable
The record tuples used in CountData.data don't contain an 'hcode' member,
unlike Table and OrderedTable, causing the existing clearImpl() implementation
to break when attempting to assign to t.data[i].hcode.
2016-07-09 17:21:18 +01:00
Andreas Rumpf
5e82ffc8d5 Nimscript: added support for 'patchFile' 2016-07-09 14:26:00 +02:00
Andreas Rumpf
66f37971e9 undocumented feature: JS backend: unit and group separators generate hash and at symbols 2016-07-09 00:28:14 +02:00
Araq
c48102254a merged 2016-07-08 23:20:31 +02:00
Andreas Rumpf
ba273057e3 Fixes a critical JS codegen bug about @ in call pattern 2016-07-08 23:03:11 +02:00
Andreas Rumpf
e2267ef5c9 Nimscript supports hint() and warning() procs; refs #3688 2016-07-08 22:24:28 +02:00
Andreas Rumpf
089c31765f fixes #3055 2016-07-08 20:11:59 +02:00
Andreas Rumpf
1d186ee9c3 fixes #2377 2016-07-08 18:08:34 +02:00
Andreas Rumpf
d83eb70643 async: use -d:nimDumpAsync to see what the async macro generates 2016-07-08 18:05:36 +02:00
Andreas Rumpf
d9e44873ab gensym'ed symbols are rendered with their ID for much easier debugging 2016-07-08 18:04:41 +02:00
Andreas Rumpf
7f752db0e3 improve error message if C and Nim disagree on pointer size 2016-07-08 15:55:42 +02:00
Andreas Rumpf
abf1951ff0 docgen: hide pragmas 2016-07-08 15:08:55 +02:00
Andreas Rumpf
019ee2260c fixes #4399 2016-07-08 11:05:48 +02:00
Andreas Rumpf
857b0c8d4c fixes #4462 2016-07-08 10:52:04 +02:00
Felix Krause
9f8cdf2560 Use getOrDefault for tables.== 2016-07-08 10:41:37 +02:00
Andreas Rumpf
b47d9b7b91 fixes #4371 2016-07-08 10:34:12 +02:00