summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix rope index (#16100)flywind2020-11-231-1/+1
| | | | | * fix rope index * add testcase
* fix #9695 asyncmacro: tfuturevar fails when activated [backport: 1.0] (#16090)flywind2020-11-221-1/+2
| | | | | | | * fix asyncmacro * Apply suggestions from code review * Update lib/pure/asyncmacro.nim
* sets minor improvement (#16087)flywind2020-11-211-269/+1
|
* deques minor improvement (#16084)flywind2020-11-211-129/+18
|
* xmltree minor improvement (#16085)flywind2020-11-211-87/+3
|
* complex minor improvement (#16086)flywind2020-11-211-129/+21
|
* heapqueue minor improvement (#16088)flywind2020-11-211-62/+10
|
* colors: Reuse the HexDigits constant in strutils (#16065)satoru2020-11-201-1/+1
| | | Co-authored-by: Xuecong Liao <xliao@flexport.com>
* alternative way to fix #16022 (#16064) [backport:1.4]flywind2020-11-201-2/+2
| | | | | | * alternative way to fix #16022 * add testcase for #16022 [backport:1.4]
* packedsets fix regression introduced in #15564 (#16060)Timothee Cour2020-11-201-8/+9
| | | | | * packedsets fix regression introduced in #15564 * add tests
* Improve enumerate (#16053)Antonis Geralis2020-11-201-10/+43
| | | | | | | * Improve enumerate * updates * add tests
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-193-2/+7
|
* makes parsesql .gcsafe [backport:1.0] (#16039)Andreas Rumpf2020-11-191-3/+3
|
* fixes db_mysql broken quoting; refs ↵Andreas Rumpf2020-11-181-1/+0
| | | | https://github.com/nim-lang/Nim/commit/c16ee37a7106c645a0d17cc6bd8d399e20f61d96#r44209990 [backport:1.4] (#16035)
* ORC: prepare for another patent-pending optimization (#15996)Andreas Rumpf2020-11-183-25/+51
| | | | | | | | | | | | | | | | | * ORC: prepare for another patent-pending optimization * bugfix * '=copy' for refs can take a cyclic parameter for more ORC optimizations * ORC: exploit the common 'it = it.next' pattern * can't hurt to check for nil * use an algorithm that is not obviously broken * restore the test case * final cleanups for --gc:orc
* Do not read the whole file to compute SHA1 hash (fixes 15997) (#16006)Igor Ribeiro de Assis2020-11-181-1/+16
| | | | | | | | | | | | | | | | | * Do not read the whole file to compute SHA1 hash (fixes 15997) * Update lib/std/sha1.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/std/sha1.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Directly break from loop Co-authored-by: Andreas Rumpf <rumpf_a@web.de> [backport:1.2] [backport:1.4]
* fix https://github.com/nim-lang/RFCs/issues/286: add FileInfo.blockSize (#16023)Timothee Cour2020-11-181-34/+37
|
* Revert "fix #15623 (#16009)"Andrey R (cooldome)2020-11-171-1/+1
| | | | This reverts commit 0f7f159a35bc10a43ff15bcb6c20eefdc574138e.
* fix #15623 (#16009)flywind2020-11-171-1/+1
| | | | | | | | | * fix #15623 * add testcase for #15623 * fix * add testcase
* htmlgen: Add lazy loading (#15986)Juan Carlos2020-11-161-2/+2
|
* fix #15934 and #15620 (#15938) [backport:1.4]Andreas Rumpf2020-11-151-1/+4
|\ | | | | | | * make workaround for #15934 and #15620 * add testcase for #9754
| * nilflywind2020-11-131-0/+2
| |
| * make workaround for #15934 and #15620flywind2020-11-121-1/+2
| |
* | asynchttpserver cleanups [backport:1.0] (#15966)Andreas Rumpf2020-11-151-11/+9
| | | | | | | | * asynchttpserver cleanups [backport:1.0]
* | attempt to make asynchttpserver better; fixes #15925; [backport:1.0] (#15957)Andreas Rumpf2020-11-136-34/+116
|\ \ | | | | | | | | | | | | | | | | | | | | | * attempt to make asynchttpserver better; fixes #15925; [backport:1.0] * better documentation * fixes 'nim doc' * makes test green again * ported to FreeRTOS * fixes the doc rendering
| * | fixes the doc renderingAraq2020-11-131-38/+35
| | |
| * | ported to FreeRTOSAraq2020-11-132-11/+22
| | |
| * | fixes 'nim doc'Araq2020-11-131-1/+1
| | |
| * | better documentationAraq2020-11-131-4/+11
| | |
| * | attempt to make asynchttpserver better; fixes #15925; [backport:1.0]Araq2020-11-136-50/+117
| | |
* | | Make IntSet a generic ordinal set OrdSet[A] (#15564)landerlo2020-11-132-687/+614
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make IntSet an ordinal set OrdSet[A: Ordinal] Backward compatibility with IntSet is maintained. IntSet is an alias for OrdSet[int] * move ordsets to new file, intsets exports it * ordset, move to lib/std folder * Fix `$` for ordsets and test cleanup * Fix ordsets compilation in doc example * Rename ordsets to packedsets
* | | Alternate to https://github.com/nim-lang/Nim/pull/15915 (#15937)c-blake2020-11-131-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | * Alternate PR to https://github.com/nim-lang/Nim/pull/15915 to resolve the problem mentioned there (`hash() == 0`) as well as to close https://github.com/nim-lang/Nim/issues/15624 * Address https://github.com/nim-lang/Nim/pull/15937#discussion_r522759669 { though this was only a move from 2 copies to 3 copies. ;-) }
* | | refactoring: modernize rst.nim (#15953)Miran2020-11-131-509/+449
|/ /
* | Don't use os for Standalone (#15944)wilypomegranate2020-11-131-2/+2
| |
* | Add documentElement to Document. (#15943)treeform2020-11-131-0/+1
| |
* | fix #15941 (#15948)flywind2020-11-131-4/+7
| | | | | | | | | | | | | | * fix #15941 * add testcase * update
* | js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, ↵Timothee Cour2020-11-121-215/+251
| | | | | | | | | | | | | | | | | | | | | | `existsEnv` (v2) (#15826) * js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv` * refactor to osenv * fix for js (without -d:nodejs) + VM Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | add parent property to window in dom.nim (#15922)Bung2020-11-121-0/+1
| |
* | make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-122-3/+4
| | | | | | | | | | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* | change some code-blocks to runnableExamples and correct some errors in docs ↵flywind2020-11-124-57/+51
| | | | | | | | | | | | | | | | | | (#15900) * original docs are wrong * fix pathnorm * Update lib/pure/pathnorm.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* | Fix a problem for long symlinks in conda (#15908) [backport]Christopher Dunn2020-11-121-9/+10
| | | | | | * https://github.com/conda-forge/nim-feedstock/commit/d8c80ea69dca30d99073d33845ddd79f9892755b#diff-e1d8e552330911f9f779f85b6f2c00a15e790dcc3fbb3b28f5da1d660a30c5b8
* | doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-122-10/+12
| | | | | | | | | | | | | | * doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch * nimscript now handles `Exception as e` * remove catch-all doAssertRaises overload from this PR Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)Bung2020-11-121-7/+8
| | | | | | | | | | * fix #12726 Cannot take the compile-time sizeof Atomic types * fix for arch 32
* | Docs(strutils): Fix broken links (#15912)ee72020-11-111-9/+10
| | | | | | | | The `dedent` and `unindent` links were introduced by commit d67c5cb75171 (#15264).
* | Correct all eggs (#15906)Miran2020-11-105-6/+6
| | | | | | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* | fix #12471 (#15901)flywind2020-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | * fix #12471 * add testcase * fix * test nimdoc is tricky * Delete t12471.nim
* | rst: add support for markdown tables (#15854)Miran2020-11-103-2/+75
| | | | | | | | | | | | | | * rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
* | Add a macro returning enum items count (#15824)Ivan Bobev2020-11-091-0/+13
| | | | | | | | | | | | | | Add a macro `enumLen` which is used to determine the number of items in an enumeration type to the `typetraits.nim` module. Also, add unit tests for it in the `ttypetraits.nim` module. Related to nimlang/Nim#15824
* | Console apps in Windows can raise OSError (#15874)Luca Guzzon2020-11-081-1/+4
| | | | | | | | | | | | | | | | Console apps in Windows implementation can raise OSError so I've fixed it, see below some examples for reference: - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L170 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L178 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L191-L192 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L196-L197 - ...
* | follow #11707(add pragmas examples for =>) (#15863)flywind2020-11-061-0/+10
| |