summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* use generics in random (#16283)flywind2020-12-071-33/+15
| | | | | * use generics in random * fix
* OSX: support for M1 [backport:1.0] (#16279)Andreas Rumpf2020-12-071-1/+1
|
* use funcs and fix links in strutils (#16277)flywind2020-12-071-14/+8
| | | | | * use funcs and inline in strutils * use funcs
* fix parseChar see #16240 (#16245)Pietro Peterlongo2020-12-061-3/+14
| | | | | * fix parseChar * do not introduce new double backticks
* nimdoc: Initialize theme switch and pragma dots on DOMContentLoaded (#16247)Sebastian Reinhard2020-12-067-7/+21
| | | | | | | | | The default HTML template for nimdoc currently initializes the dark mode switch and pragma dots when the onload event is fired. But since the onload event does not fire until all external resources (images, stylesheets, fonts, etc.) have been loaded, the light theme is shown for a brief moment before the document is fully loaded, and it switches to the dark theme. This is quite jarring, especially on slower internet connections. So let's instead initialize these things on the DOMContentLoaded event, which is fired right after the document has been parsed and the initial DOM structure is ready. This means that we now display the dark mode immediately, without having to wait for external resources to load first. For reference, see: - https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event - https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event I have updated the snapshot tests in `nimdoc/`, and done some manual testing of both the theme switch and the pragma dots, to confirm that this does not break anything. Please let me know if I've missed anything.
* [docs minor]space for code-block (#16266)flywind2020-12-064-13/+9
| | | | | | | | | * [docs minor]space for code-block * correct more errors * to runnableExamples * add newline
* fix #16206 (#16207)flywind2020-12-062-18/+141
| | | | * better docs and tests * a bit better only clean trailing whitespace
* [docs minor] remove unicode in docs comments (#16267)flywind2020-12-062-3/+3
|
* ORC: make the adaptive strategy the default in order to fight memory ↵Andreas Rumpf2020-12-053-7/+52
| | | | | | | consumption (#16250) * ORC: make the adaptive strategy the default in order to fight memory consumption * added missing test case
* bring back argparse (#16242)flywind2020-12-051-1/+1
|
* Retry commands in testament again (#16262)Clyybber2020-12-051-5/+16
|
* fixes #16249 [backport:1.4] (#16251)Andreas Rumpf2020-12-051-1/+1
|
* fixes #16214 [backport] (#16252)Andreas Rumpf2020-12-042-8/+8
|
* RST tables: fix latex col number; allow less than three of `=` (#16040)Andrey Makarov2020-12-045-31/+263
|
* cleanup docs and tests (#16235)flywind2020-12-032-10/+10
| | | | | * js module also uses runnableExamples * cleanup docs and tests
* add collect with infered init, refs #16078 fixes #14332 (#16089)Antonis Geralis2020-12-033-37/+88
| | | | * changelog * add testcase, fixes #14332
* add support for parsing chars in `scanf` macro (#16240)Miran2020-12-034-1/+33
|
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-034-4/+7
|
* minor fix to Posix part of walkDir (#16234)Andrey Makarov2020-12-031-13/+19
| | | | | | | | | * change break->continue and rewrite one-yield-style * use case statement for clarity * Tiny nit Co-authored-by: Clyybber <darkmine956@gmail.com>
* fixes #15939, fixes #15464, fixes #16169, fixes #16226 VM now supports ↵Timothee Cour2020-12-035-5/+94
| | | | | | | | | `addr(mystring[ind])` (index + index assignment) (#15987) * fix #15939, fix #15464 VM now supports `addr(mystring[ind])` (index + index assignment), var char return etc * cleanups * cstring tests * add test for bug #15464 * improve test coverage
* better setops docs (#16236)flywind2020-12-031-70/+62
| | | | | | | | | | | | | | | | | * js module also uses runnableExamples * better setops docs * Update lib/system/setops.nim * better * Update lib/system/setops.nim * Update lib/system/setops.nim * better * better
* Fixes #16219, `hasArgOfName` ignoring argument sets. (#16233)Aditya Siram2020-12-032-4/+13
| | | | | | | | | | | | | | | * Fixes #16219, `hasArgOfName` ignoring argument sets. * Fix test and simplify ident traversal. * Moved test into a block and removed some boilerplate. * Fix some argument formatting. * use ..< * Change the preceding line too Co-authored-by: Clyybber <darkmine956@gmail.com>
* merge two parsecfg tests into one (#16237)flywind2020-12-032-76/+77
| | | | | | | | | | | | * try to fix #16206 * merge two parsecfg tests into one * Revert "fix" This reverts commit 668bdec2c499cf9967abfb7aad24975a04b092eb. * Revert "try to fix #16206" This reverts commit c399cc2153190299c9cbb0ad83f6ce85a7bbbb89.
* styleCheck: Fix error for `sugar` and `std/with` (#16176)ee72020-12-023-3/+3
| | | | | | | | | | | | | | | | With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: #16174
* move decode_helpers to std/private (#16209)flywind2020-12-023-7/+5
|
* Fix typo and improve grammar for clamps noteClyybber2020-12-021-1/+1
|
* small style changes and clarify clamp (#16228)flywind2020-12-021-6/+8
| | | | | | | | | | | | | | | * [docs minor]better comparisons docs * switch from PRNG to random module * apply suggestions * not compile * Revert "switch from PRNG to random module" This reverts commit 83b4d8946d7d677edac43b7675c41e230ba4e382. * small style changes and clarify clamp
* js module also uses runnableExamples (#16229)flywind2020-12-022-40/+32
|
* fix #16164, render doc comments (#16230)Miran2020-12-025-2/+19
| | | | | * fix #16164, render doc comments * add a test
* [docs minor] better comparisons docs (#16201)flywind2020-12-021-90/+89
|
* fixed article duplication typos (#16216)ihlec2020-12-029-9/+9
|
* add test for --eval; fix a minor bug (#16224)Timothee Cour2020-12-012-0/+7
|
* minor typo (#16225)flywind2020-12-021-1/+1
|
* Don't add content-length header on GET request when there is no body. (#16196)treeform2020-12-011-1/+1
| | | | | | | * Don't add content-length header on GET request when there is no body. * Add space between the not and the (. * Take Dom's suggestion.
* ORC: API extensions (#16126)Andreas Rumpf2020-12-011-14/+45
| | | | | * ORC: API extensions * ORC: exploit a common special case
* nimout now consistently uses nimoutCheck (#16189)Timothee Cour2020-12-014-20/+29
|
* minor improve the docs of parsecfg (#16208)flywind2020-12-011-25/+27
|
* error instead of echo when testament category is empty; fix realtimeGC (#16162)Timothee Cour2020-12-017-47/+32
|
* better addInt (#16160)flywind2020-12-012-15/+127
| | | | | | * better addint * Update lib/system/strmantle.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix broken => for typed procs with pragmas (#16190)hlaaftana2020-12-012-9/+19
| | | | | | | * fix broken => for typed procs with pragmas * add more sugar tests * add ending quote
* Revert "fix #16185 (#16195)" (#16197)Andreas Rumpf2020-11-303-125/+60
| | | This reverts commit bb4b27a2ca414f06fbb9d14ff76fa02a088ac141.
* fix #16185 (#16195)cooldome2020-11-303-60/+125
| | | | | | | | | | | * fix #16185 * fix test * fix comment * fix comment * better approach
* toXXAscii use xor op, saving 30%~50% time (#16193)Bung2020-11-301-2/+2
| | | | | | | | | | | | * toXXAscii use xor op, saving 30%~50% time * Update lib/pure/strutils.nim Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com> * Update lib/pure/strutils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
* small runnableExamples changes (#16181)flywind2020-11-301-30/+28
|
* disable testing of `argparse` package until it is fixednarimiran2020-11-301-1/+1
|
* cleanup old codes (#16173)flywind2020-11-301-9/+2
|
* testament spec: remove errmsg alias of errormsg (#16188)Timothee Cour2020-11-2914-14/+14
|
* testament: error instead of silently overwrite a spec (#16166)Timothee Cour2020-11-295-27/+51
|
* experimental/diff: move isMainModule block to tests/stdlib/tdiff.nim (#16172)Timothee Cour2020-11-282-80/+73
|
* fix #14242 `testament r tests/js/foo` now works; testament now honors ↵Timothee Cour2020-11-284-30/+34
| | | | | | | --targets (#16163) * fix #14242 `testament r tests/js/foo` now works; testament now honors --targets * fix shouldfail