summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* use hexchar in stdlib (#16290)flywind2020-12-175-67/+39
|
* make the docs of strutils a bit better (#16368)flywind2020-12-171-153/+150
|
* fixes #16359 [backport] (#16377)Andreas Rumpf2020-12-171-1/+1
|
* refactorings to prepare the compiler for IC (#15935)Andreas Rumpf2020-12-171-1/+1
| | | | | | | | | | | | | | * added ic specific Nim code; WIP * make the symbol import mechanism lazy; WIP * ensure that modules can be imported multiple times * ambiguity checking * handle converters and TR macros properly * make 'enum' test category green again * special logic for semi-pure enums * makes nimsuggest tests green again * fixes nimdata * makes nimpy green again * makes more important packages work
* Adds toSet to create sets from iterables (#16276)Jason Beetham2020-12-141-0/+32
|
* sequtils.nim: Change some `func` back to `proc` (#16309)ee72020-12-141-28/+28
| | | | | | | | | | | This commit changes the funcs that take a `proc` parameter back to procs. This reverts some of commit 6f57ebae349f: sequtils.nim: Use `func` (#16293) See also: - https://github.com/nim-lang/Nim/issues/16303 - https://github.com/nim-lang/Nim/pull/16304
* disabled sink openArray[T] for adding to seqs (#16352) [backport:1.4]lqdev2020-12-141-1/+1
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-1418-115/+121
| | | | | * Fix broken links in docs * Fix rand HSlice links
* doc/rst2html: some few fixes for enumerated and bullet lists (#16295)Andrey Makarov2020-12-143-30/+161
| | | | | | | | | | | | * fix bullet/enumarated lists with many blank lines * fix enumerated list parsing * fix parse failure when next line after list empty * implement arbitrary start of enumerator * check that enumerators are in order * remove redundant start=x if x=1 or a * add some doc on implemented features * update start in rst_examples.rst * allow upper-case letters + more docs
* clean the docs of sequtils (#16332)flywind2020-12-141-97/+89
|
* Added strscans.scanTuple (#16300)Jason Beetham2020-12-121-1/+50
| | | | * Added since and changelog
* Fix #14259 #15621 (#16322) [backport:1.4]rockcavera2020-12-121-4/+11
| | | | | | | | | | | | | | | | | * IPv6 text representation according to RFC 5952 * Revert IPv6 text representation according to RFC 5952 * fix #14259 #15621 fix #14259 #15621 * Update lib/system/io.nim * reverted IoHandle removal * adaptation of types for WinAPI Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* improve tests for collections (#16328)Timothee Cour2020-12-121-63/+45
| | | | | | | * improve tests for collections * remove remaining code blocks in deques.nim * improve runnableExamples
* add math.isNaN (#16179)Timothee Cour2020-12-112-0/+22
| | | | | | | * add math.isNaN * isNaN now works with --passc:-ffast-math; tests * Update lib/pure/math.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix partially #13115 (now works for cpp; but still fails for js on openbsd) ↵Timothee Cour2020-12-111-10/+22
| | | | | | (#16167) * fix partially #13115 properly (works for c,js,cpp,vm; still fails for js on openbsd) * address comment: also test with -d:danger, -d:debug
* unittest: use defines instead of env vars (#16165)Timothee Cour2020-12-101-35/+55
| | | | | | | | | * unittest: use defines instead of env vars * use defines in testament * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* rationals.nim: Use `func` everywhere (#16302)ee72020-12-091-41/+41
|
* clean up old codes (#16284)flywind2020-12-091-144/+101
| | | | | | | * clean up old codes * fix docs and links * clean
* sequtils.nim: Use `func` (#16293)ee72020-12-092-47/+47
| | | | | | | | | * sequtils.nim: proc -> func * sequtils.nim: proc -> func in links * sequtils.nim: proc -> func in non-link doc comments * test: add `sequtils` to strictFuncs test
* complex.nim: Use `func` everywhere (#16294)ee72020-12-091-60/+60
|
* Revert "use generics in random (#16283)" (#16291)flywind2020-12-091-15/+33
| | | This reverts commit 71e2a9e569ab3380fd057e4fc16e6d4ccd66f1f4.
* Added Python to highlite module. (#16286)Xabier Bello2020-12-081-14/+30
| | | | | | | | | | | * Added Python to highlite module. * Added the keywords for Python * Refactored the 'pythonLikeNextToken' into 'nimNextToken': - `lang` property added to GeneralTokenizer object, is set in `getNextToken`. - `nimNextToken` accepts `keywords` parameter, used for languages different from Nim. - Multiline comment available only for `langNim`.
* math.nim: Use `func` everywhere (#16285)ee72020-12-071-270/+268
| | | | | | | | | | | * math.nim: procs with {.noSideEffect} -> funcs * math.nim: procs without {.noSideEffect.} -> funcs * math.nim: proc -> func in links * math.nim: proc -> func in doc comments * test: add `math` to strictFuncs test
* strutils.nim: Use `func` everywhere (#16281)ee72020-12-071-325/+294
| | | | | | | | | | | | | * strutils.nim: procs with {.noSideEffect.} -> func * strutils.nim: procs without {.noSideEffect.} -> func * strutils.nim: proc -> func for links * strutils.nim: proc -> func in doc comments * test: add strutils to strictFuncs test * test: proc -> func in errmsg test
* use generics in random (#16283)flywind2020-12-071-33/+15
| | | | | * use generics in random * fix
* 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
* [docs minor]space for code-block (#16266)flywind2020-12-061-9/+3
| | | | | | | | | * [docs minor]space for code-block * correct more errors * to runnableExamples * add newline
* fix #16206 (#16207)flywind2020-12-061-1/+69
| | | | * 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-051-6/+13
| | | | | | | consumption (#16250) * ORC: make the adaptive strategy the default in order to fight memory consumption * added missing test case
* 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-042-23/+77
|
* cleanup docs and tests (#16235)flywind2020-12-031-1/+1
| | | | | * js module also uses runnableExamples * cleanup docs and tests
* add collect with infered init, refs #16078 fixes #14332 (#16089)Antonis Geralis2020-12-031-34/+66
| | | | * changelog * add testcase, fixes #14332
* add support for parsing chars in `scanf` macro (#16240)Miran2020-12-032-0/+11
|
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-032-2/+4
|
* 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>
* 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-031-4/+4
| | | | | | | | | | | | | | | * 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>
* styleCheck: Fix error for `sugar` and `std/with` (#16176)ee72020-12-021-1/+1
| | | | | | | | | | | | | | | | 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
|
* [docs minor] better comparisons docs (#16201)flywind2020-12-021-90/+89
|
* fixed article duplication typos (#16216)ihlec2020-12-024-4/+4
|
* 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