summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* rst: fix bug 20 from #17340 (#18360)Andrey Makarov2021-06-261-1/+3
| | | and a leftover bug: priority of option list inside definition list
* even lighter version of #17938: fix most issues with UnusedImport, ↵Timothee Cour2021-06-261-29/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362) * {.used: symbol} * add tests * fix tests with --import * --import works without giving spurious unused warnings * new warning warnDuplicateModuleImport for `import foo; import foo` * fix test, add resolveModuleAlias, use proper line info for module aliases * fix spurious warnings * fix deprecation msg for deprecated modules even with `import foo as bar` * disable a test for i386 pending sorting XDeclaredButNotUsed errors * UnusedImport now works with re-exported symbols * fix typo [skip ci] * ic support * add genPNode to allow writing PNode-based compiler code similarly to `genAst` * fix DuplicateModuleImport warning * adjust test * fixup * fixup * fixup * fix after rebase * fix for IC * keep the proc inline, move the const out * [skip ci] fix changelog * experiment: remove calls to resolveModuleAlias * followup * fixup * fix tests/modules/tselfimport.nim * workaround tests/deprecated/tmodule1.nim * fix properly * simplify
* Add sink annotation to option some() (#18358)tomc19982021-06-251-2/+2
|
* docs now show nimExperimentalX APIs (#18345)Timothee Cour2021-06-252-7/+7
| | | | | * docs now show nimExperimentalX APIs * fix for windows
* couple tiny typo fixes (#18344)Smooth Operator2021-06-241-2/+2
|
* enable VM tracing in user code via `{.define(nimVmTrace).}` (#18244)Timothee Cour2021-06-241-0/+11
| | | | | | | * enable VM tracing in user code via `{.define(nimVmTrace).}` * add vmutils.vmTrace * add vmTrace
* rst: allow comment to continue on second line (#18338)Andrey Makarov2021-06-241-18/+10
|
* [std/times]getTime now uses high resolution API on windows (#17901)flywind2021-06-232-2/+6
|
* OS.nim: style changes (#18331)Andreas Rumpf2021-06-231-30/+28
|
* Markdown: allow to end URL with balanced parenthesis (#18321)Andrey Makarov2021-06-231-2/+34
| | | | | | | | | | | | | * Markdown: allow to end URL with balanced parenthesis * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * apply suggestion * remove unnecessary if Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* followup #18318: simplify `dollarImpl` and add a test (#18330)Timothee Cour2021-06-221-7/+0
|
* merge similar procs regarding digits (#18318)flywind2021-06-225-135/+107
|
* readAsText supports both Blob and File (fixes #18187) (#18189)mantielero2021-06-211-2/+2
|
* convert code-blocks to runnableExamples in io (#18315)xioren2021-06-211-16/+15
| | | Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* fixes #17768 [backport:1.4] (#18317)flywind2021-06-211-6/+4
| | | | | * fixes #17768 [backport:1.4] * tiny
* validate rst field for :number-lines:, :status: (#18304)Andrey Makarov2021-06-202-8/+23
|
* Raise IndexDefect when deleting element at out of bounds index (#17821)Heiko Nickerl2021-06-201-24/+34
| | | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Heiko Nickerl <mail@hnicke.de> Co-authored-by: Heiko Nickerl <heiko.nickerl@flipapp.de>
* [std/terminal] improve docs a bit (#18296)flywind2021-06-201-70/+45
| | | | | | | | | | | | | | | | | | | | | | | * Revert "add missing import to asynchttpserver's example" This reverts commit 7ef364a402d3d827f10c893280f8dc7b9ef056f5. * alternative to #18185 * add std/mutexes * cvlose #17696 * Revert "add std/mutexes" This reverts commit 69abc8b64954206da6ffe5fc40a1142b39777762. * tiny * test * improve terminal docs * follow advice
* move {.injectStmt.} to experimental; add a test (#18300)Timothee Cour2021-06-202-2/+1
| | | | | * move {.injectStmt.} to experimental; add a test * undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
* docgen: move to shared RST state (fix #16990) (#18256)Andrey Makarov2021-06-201-97/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docgen: move to shared RST state (fix #16990) * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename `cmdDoc2` to `cmdDoc` * fix (P)RstSharedState convention * new style of initialization * misc suggestions * 1 more rename * fix a regression Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add `typetraits.pointerBase` to return `T` in `ref T|ptr T` (#18293)Timothee Cour2021-06-201-0/+10
| | | | | | | | | * add typetraits.deref to return T in ref T|ptr T * deref => refBase * refBase=>pointerBase * [skip ci] address comment
* make privateAccess work with generic types and generic instantiations; fix a ↵Timothee Cour2021-06-191-11/+21
| | | | | SIGSEGV (#18260) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* strformat.fmt now supports non-literal const strings (#18274)Timothee Cour2021-06-182-26/+40
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix for #18284 int32 should be int (#18285)Adrian Veith2021-06-171-1/+1
| | | the var exp was typed as int32 - it should be int since frep expects an int
* Revert "system/excpt: check if the exception is not nil before pop (#18247)" ↵Andreas Rumpf2021-06-171-3/+2
| | | | | (#18265) This reverts commit 0adb47aa15e242983c8251d85367c0fe45fc5f12.
* PCRE, nimgrep: add limit for buffer size (#18280)Andrey Makarov2021-06-171-3/+10
|
* fixes #17696 (#18276)flywind2021-06-161-2/+5
|
* httpclient.nim Fixes #14794 and an issue where content-header is not set on ↵Mark Pointing2021-06-141-2/+6
| | | | | | | | | | | | | | | | postContent (#18208) * Fixed missing newline after bound marker in mulipart post (#14794) and a problem where calling postContent with multipart data does not set content-length header. * Update lib/pure/httpclient.nim * Added comment outlining the reason for changes to httpclient.nim and added tests to ensure that multipart post has a newline at the end of the body, and that the content-length header is present. * Fixed typo in comments. * Removed redundant blank lines in thttpclient_standalone.nim. Co-authored-by: Mark Pointing <mark@futurepoint.com.au> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* system/excpt: check if the exception is not nil before pop (#18247)alaviss2021-06-141-2/+3
| | | | | | | | | | In CPS we would consume an exception in the except branch by stashing it into a local then remove the exception from Nim environment so as not to leak it to other code that would be running before the continuation continues However since popCurrentException() assumes that the exception always exist, removing the exception from an except branch will cause a SIGSEGV to happen. This commit fixes that.
* merge BuildMode into SuccessX, remove code duplication w drnim, add useful ↵Timothee Cour2021-06-141-0/+1
| | | | | | | | | | | info to successx, add gc to compilesettings (#18252) * merge BuildMode into SuccessX, add more info * refactor duplicated with drnim * fixup * address comment
* Improve httpClient docs on SSL cert verification (#15201)Federico Ceratto2021-06-131-3/+16
| | | | | | | | | * Improve httpClient docs on SSL cert verification Cert verification is enabled by default after CVE-2021-29495 * Update httpclient.nim Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fix #7717 roundtrip float to string; fix `parseFloat` for js (#18248)Timothee Cour2021-06-131-48/+41
| | | | | | | * refs #7717 roundtrip float to string * make parseFloat more correct * improve float tests * improve float tests * cleanup
* use more meaningful name than "workaround14447" (#18237)Miran2021-06-111-1/+1
|
* fix #9437(fix `re.replace` wrong behaviour) (#17546)flywind2021-06-101-2/+18
| | | | | * fix nim js cmp fails at CT * fix
* #18216 make moveDir work across partitions on windows (#18223)Fröhlich A2021-06-101-19/+25
| | | | | | | * return false if AccessDeniedError in tryMoveFSObject - fixes #18216 * add moveDir & moveFile tests * rename `isMoveDir` parameter to `isDir`
* fixes #18220 (#18227)Andreas Rumpf2021-06-101-1/+1
|
* avoid re-exporting options from std/wrapnils (#18222)Timothee Cour2021-06-101-1/+1
|
* fixes #18088 (#18209)Andreas Rumpf2021-06-071-1/+1
|
* alternative to #18185 (#18206)flywind2021-06-071-1/+4
|
* change mimedb stroe stringtable to orderedtable (#18065)Bung2021-06-071-3/+4
| | | | | | | * change mimedb stroe stringtable to orderedtable * Update lib/pure/mimetypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix 18186 with adding importc _umul128 (#18200)slangmgh2021-06-072-1/+3
|
* up to 20x faster jsonutils deserialization (#18183)Timothee Cour2021-06-051-6/+6
| | | | | * up to 20x faster jsonutils deserialization * noinline
* rst: remove `roSkipPounds` option (#18175)Andrey Makarov2021-06-051-24/+4
|
* add `dom.scrollIntoView` with options; refs #18093 (#18181)Rainbow Asteroids2021-06-051-0/+6
|
* macros.treeRepr + friends: collapse SymChoice (#18072)Timothee Cour2021-06-051-22/+41
| | | | | | | * macros.treeRepr + friends: collapse SymChoice * make repr+friends work with invalid symchoice nodes * address comment
* Ref #18177 - lbgc.so.5.0 on OpenBSD 6.9 (#18180)Euan2021-06-041-1/+1
|
* fix #7295: use move(result) inside template to avoid copy with --gc:refc ↵Timothee Cour2021-06-041-10/+10
| | | | (#18168)
* workaround bug in sharedtables.withValue to unblock frozen CI on OSX (#18172)flywind2021-06-041-0/+4
|
* simplify extccomp.nim json logic via jsonutils; fix #18084 (#18100)Timothee Cour2021-06-031-1/+17
| | | | | | * simplify extccomp.nim json logic via jsonutils * fix #18084 * simplify further * workaround for bootstrap that can be removed after updating csources_v1 >= 1.2
* Revert "add missing import to asynchttpserver's example" (#18164)flywind2021-06-031-1/+1
| | | This reverts commit 7ef364a402d3d827f10c893280f8dc7b9ef056f5.