summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* fix #16364 (#16379) [backport]flywind2020-12-171-4/+2
| | | | | | | | | | | * fix #16364 * add comments * Update tools/dochack/dochack.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* use hexchar in stdlib (#16290)flywind2020-12-177-75/+68
|
* 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-1726-178/+1241
| | | | | | | | | | | | | | * 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
* Add note about minimum Node.js version (#16370)Maurizio Tomasi2020-12-161-0/+3
| | | Fix the error message
* Syntax (RST) fix Internals of the Compiler (#16341)Saem Ghani2020-12-151-6/+6
| | | | | 'Rebuilding the Compiler' and a few other sections required syntax fixes: * new lines before and after lists to fix rendering * use internal reference instead of Markdown style link
* improve tstrutils: test c, cpp, js, vm; cleanups (#16357)Timothee Cour2020-12-152-676/+689
| | | | | | | * renamed: tests/stdlib/tstrutil.nim -> tests/stdlib/tstrutils.nim * improve test * enable tstrutils for js, vm
* Adds toSet to create sets from iterables (#16276)Jason Beetham2020-12-143-0/+48
|
* 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-1421-120/+126
| | | | | * Fix broken links in docs * Fix rand HSlice links
* doc/rst2html: some few fixes for enumerated and bullet lists (#16295)Andrey Makarov2020-12-146-36/+308
| | | | | | | | | | | | * 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
* fix #16248 forward --lib to runnableExamples (#16350)Timothee Cour2020-12-141-1/+2
|
* clean the docs of sequtils (#16332)flywind2020-12-141-97/+89
|
* fix #16334 (#16335)RSDuck2020-12-142-6/+14
| | | | | | | | | * fix #16334 * rename isstdout -> isStdout * separate lastMsgWasDot for stdout and stderr * simplify logic
* Clean out dead code (#16345)Juan Carlos2020-12-141-172/+0
|
* fix #16330 tshould_not_work (#16342)Timothee Cour2020-12-142-5/+3
|
* fix #16265; fix #13999 (HCR on OSX); cgen now does not line wrap string ↵Timothee Cour2020-12-143-5/+23
| | | | | | | | | | | | | | | | | litterals (#16329) * fix #16265: cgen now does not line wrap string litterals which, in combination with other hacks, caused a really obscure looking bug * fix #13999; nimhcr_integration.nim now works for osx * try to make appveyor CI disappear * disable openbsd + add diagnostic for openbsd * enable for openbsd * PTEMP * re-disable openbsd
* Fix #11506 (#16348)rockcavera2020-12-141-1/+7
| | | fixes the problem of compiling vccexe.exe when it is in use.
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-1424-39/+33
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add testcase for #15937 (#15933)Bung2020-12-131-0/+6
| | | | | | | | | | | | | * test for issue #15624 and PR #15915 for patch #13823 * Update thashes.nim no need mention PR #15915, fixed in https://github.com/nim-lang/Nim/pull/15937 * rebase to devel(issue maybe fixed), ignore ouputs * Apply suggestions from code review Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Added strscans.scanTuple (#16300)Jason Beetham2020-12-123-1/+102
| | | | * 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-126-242/+227
| | | | | | | * improve tests for collections * remove remaining code blocks in deques.nim * improve runnableExamples
* add math.isNaN (#16179)Timothee Cour2020-12-114-5/+50
| | | | | | | * 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-112-20/+58
| | | | | | (#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
* bring back fidget (#16319)flywind2020-12-111-1/+1
|
* unbreak CI, disable fidget, refs #16315 (#16316)Timothee Cour2020-12-111-1/+1
|
* enable tests for random (#16297)flywind2020-12-101-34/+41
|
* unittest: use defines instead of env vars (#16165)Timothee Cour2020-12-106-57/+61
| | | | | | | | | * unittest: use defines instead of env vars * use defines in testament * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #16150 improve type mismatch errors (#16152)Timothee Cour2020-12-097-7/+14
| | | | | | | * fix #16150 improve type mismatch errors * allow -d:nimLegacyTypeMismatch * address comment
* rationals.nim: Use `func` everywhere (#16302)ee72020-12-092-41/+42
|
* Zsh completion (#16261)Federico Ceratto2020-12-091-0/+74
| | | | | | | | | | | | | | | | | * Add --cpu to zsh completion * Add --gc to zsh completion * Add --os to zsh completion * Add --panics to zsh completion * Add --verbosity to zsh completion * Add --hints to zsh completion * Update tools/nim.zsh-completion Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * Update tools/nim.zsh-completion Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* clean up old codes (#16284)flywind2020-12-092-145/+101
| | | | | | | * clean up old codes * fix docs and links * clean
* sequtils.nim: Use `func` (#16293)ee72020-12-093-47/+48
| | | | | | | | | * 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
* disbale deprecated CI in fork repo (#16299)flywind2020-12-091-0/+0
|
* complex.nim: Use `func` everywhere (#16294)ee72020-12-092-60/+61
|
* put both funcs and procs under the same section in the documentation (#16301)Miran2020-12-092-31/+14
| | | | | * both funcs and procs are under the same section in the documentation * update the test
* 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-082-18/+50
| | | | | | | | | | | * 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-072-271/+277
| | | | | | | | | | | * 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-073-330/+299
| | | | | | | | | | | | | * 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
* 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