LemonBoy
fd7fd1819c
Make sure addGotoOut always inserts its node ( #8843 )
...
Fixes #8773
2018-09-03 00:32:26 +02:00
Andreas Rumpf
1948eadc24
change runnableExamples implementation; fixes #8641 ; fixes #7135 ; runnableExamples works for templates and generics
2018-09-02 22:56:26 +02:00
Andreas Rumpf
4cf704bb3e
fixes #8694
2018-09-02 22:44:48 +02:00
Dominik Picheta
d06da9ccf0
Exports dom.Style ( #8444 )
2018-09-01 00:24:09 +02:00
Araq
06e6c38d99
strutils: don't deprecate escape/unescape, too much code uses it
2018-08-31 17:30:58 +02:00
Araq
e09eeb02bf
fixes #8052
2018-08-31 17:27:57 +02:00
LemonBoy
2c8361bd39
Constant folding for integer casts ( #8095 )
2018-08-31 13:45:42 +02:00
LemonBoy
b74faf354e
Do not materialize empty varargs[untyped] arrays ( #8715 )
...
When an empty nkArgList `varargs[untyped]` is passed around it is now
reused for efficiency sake and to prevent the introduction of a spurious
element: before this commit we'd pass the caller a
nkArgList[nkHiddenStdConv[nkBracket]] node instead of just an empty
nkArgList.
Fixes #8706
2018-08-31 12:16:46 +02:00
Nathan Cahill
aa33bcb974
Update html elements to current html spec ( #8791 )
2018-08-31 12:03:49 +02:00
alaviss
198e34ec1d
system/excpt: nil is no longer vaild for seqs ( #8825 )
2018-08-31 11:24:01 +02:00
Araq
bacf08e65d
merged #8624 manually; fixes #8442 ; closes #8575
2018-08-31 11:19:42 +02:00
Vindaar
47c7fd037e
Improve enumerate macro ( #8819 )
...
* fix case macro manual entry to produce code block
Previously line breaks were so weird that the code blocks were not created.
* improve `enumerate` for loop macro by wrapping in block
2018-08-31 01:16:44 +02:00
Araq
2f7b979e38
fixes #8066
2018-08-31 00:30:19 +02:00
Araq
fab4498727
times.nim: minor code cleanup
2018-08-31 00:30:19 +02:00
Araq
6fd0a33265
Tutorial 1: Simplifiy the discription of enums; it is a tutorial, not a manual
2018-08-31 00:30:19 +02:00
Andreas Rumpf
36473acf47
fixes a parseopt regression ( #8820 )
2018-08-30 23:50:09 +02:00
Andreas Rumpf
df4d5b77a1
introduce precise string '[]', '[]=' accessors; fixes #8049 ( #8817 )
2018-08-30 23:01:15 +02:00
Araq
dfdf8e58c7
fixes #8768 properly
2018-08-30 16:54:03 +02:00
Araq
e98e214422
fixes #7854
2018-08-30 15:49:51 +02:00
Araq
8e33667262
unidecode module: change the default to: embed resource file into the application; fixes #8767
2018-08-30 15:39:47 +02:00
Araq
a14ffd6119
fixes #8768
2018-08-30 15:33:34 +02:00
Timothee Cour
3e6b58323b
fix tests/coroutines/texceptions.nim ( #8810 )
2018-08-30 13:53:16 +02:00
Timothee Cour
ed0cb7b85d
make config.nims behave like nim.cfg in terms of where these scripts are searched / run ( #8682 )
...
* run project config.nims if exists, then inputfile.nims if exists
* ~/.config/nim/config.nims can now be used
* also check in getSystemConfigPath for config.nims
* refactor handleCmdLine for nim and nimsuggest
2018-08-30 13:52:32 +02:00
Timothee Cour
01211ced1d
add nim c -r nimsuggest/tester to travis ( #8805 )
2018-08-29 16:03:16 +02:00
Dominik Picheta
9ad17091cc
Allow Nimble to override the `task` template in nimscript. ( #8798 )
2018-08-28 23:05:46 +02:00
LemonBoy
5cd152bfda
Allow hint and warning to specify its loc info ( #8771 )
...
Let's bring those to feature-parity with `error`.
2018-08-28 22:59:28 +02:00
Dominik Picheta
6e83746caa
Net module fixes ( #8597 )
...
* net.accept no longer needs an initialised socket. Fixes #7848 .
* Assert error when using sendTo/recvFrom on TCP socket.
* net.sendTo now raises OSError.
2018-08-28 15:52:28 +02:00
Araq
a42150f9a8
make parseopt work with DLLs on Unix
2018-08-28 15:41:55 +02:00
Araq
e02e057a70
make parsopt compile under --taintMode:on
2018-08-28 15:41:55 +02:00
Araq
6f16166c60
parseopt: keep the seq of arguments as given; fixes various command line parsing edge cases; refs #6818
2018-08-28 15:41:55 +02:00
Araq
9c3cba1c22
fixes #4766
2018-08-28 15:41:55 +02:00
Araq
dc5851e873
added a test to ensure that for-loop-variables cannot be mutated
2018-08-28 12:16:14 +02:00
Oscar Nihlgård
96363ecaf3
Fix nkImportAs regression ( #8796 )
2018-08-28 11:35:52 +02:00
Araq
7bb93c730e
show all mismatching overloads again
2018-08-27 17:07:12 +02:00
Araq
a60cf221e8
improve the error message for mutability problems that arise from implicit converter calls
2018-08-27 17:07:12 +02:00
Araq
c1df195b15
manual: document the order of evaluation
2018-08-27 17:07:12 +02:00
hlaaf
a270899502
Add escapeJsonUnquoted for json escaped strings without quotes ( #8785 )
...
* Add escapeJsonUnquoted
* Add tests for escapeJsonUnquoted
2018-08-27 12:22:55 +02:00
Araq
3999e3be5f
fixes #8776
2018-08-27 11:47:57 +02:00
Araq
08c105c4e5
added missing file to make tests green
2018-08-27 11:26:31 +02:00
Araq
c0c8828d9f
allow .experimental in a .push/pop environment; refs #8676
2018-08-27 11:20:30 +02:00
Araq
57a291db33
optimize away genericReset for result assignment; refs #8745
2018-08-27 09:10:40 +02:00
Vindaar
52f03fabc1
fixes #8781 by appending "_U" instead of 'U' ( #8787 )
2018-08-27 08:35:07 +02:00
Nathan Cahill
238809f506
Update html attrs to current html spec
2018-08-26 21:48:37 +01:00
awr1
50aa376e80
Added to docs: warning string for {.deprecated.} pragma ( #8783 )
2018-08-26 17:42:57 +02:00
Timothee Cour
b4edfa613b
[ospaths] simplify getConfigDir and introduce normalizePathEnd to make ( #8680 )
...
sure path endings are normalized with 0 or 1 trailing sep, taking care
of edge cases
2018-08-26 17:36:11 +02:00
awr1
96d44fdd0a
Deprecate xlen() for strings and seqs ( #8782 )
...
* deprecates xlen() for strings and seqs
* added docs
2018-08-26 17:15:19 +02:00
Timothee Cour
e9b665f338
gitignore html output of nim doc foo ( #8742 )
2018-08-25 21:49:18 +02:00
Timothee Cour
3a626179ee
doAssert, assert now print full path of failing line on error ( #8555 )
2018-08-25 21:48:37 +02:00
Dominik Picheta
81f920a4ee
Process timers before and after select. Fixes flaky #7758 test. ( #8750 )
2018-08-25 09:44:02 +02:00
LemonBoy
6f13184e40
More checks for custom pragmas placement ( #8765 )
...
We're not interested in custom pragmas attached to certain node kinds so
the compiler silently ignored them.
2018-08-25 07:56:05 +02:00