summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* close #17636 (#17643)flywind2021-04-0616-77/+62
|
* items(array)+friends: remove a RT comparison (#17650)Timothee Cour2021-04-061-8/+8
|
* document caveats of quit (#17648)Timothee Cour2021-04-051-4/+8
|
* [nim-gdb] Fixed enums and flag output [ci skip] (#17634)Saem Ghani2021-04-053-78/+211
| | | | | | | Debugger works for enums again. Additionally, flags work better than before. Reworked object printer as well, but the approach needs much more work or has to be replaced all together. This is mostly to save the work and myself or someone else can revisit it.
* Improve the typeinfo module (#17625)konsumlamm2021-04-051-122/+129
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix :number-lines: regression (#17639)Andrey Makarov2021-04-052-1/+11
|
* fix #16693: testament spec nimout too lax (#16698)flywind2021-04-0428-52/+103
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fix rst option list at EOF (follow-up #17442) (#17638)Andrey Makarov2021-04-042-1/+3
|
* remove un-needed {.push hint[ConvFromXtoItselfNotNeeded]: off.} in ↵Timothee Cour2021-04-032-6/+1
| | | | asyncfutures, asyncmacro (#17631)
* enable some packages (#17629)flywind2021-04-031-3/+3
|
* fix #14850: `repr` now correctly renders `do` (#17623)Timothee Cour2021-04-033-9/+64
| | | | | | | * fix #14850: `repr` now correctly renders `do` * add tests * fix test
* repr: fix rendering of `'big`, `=destroy` etc (#17624)Timothee Cour2021-04-032-3/+37
|
* close #14806 (#17626)flywind2021-04-034-0/+12
| | | | | * close #14806 * tiny
* implement RFCs/294 ; disallow enum <=> enum conversion (#16351)Timothee Cour2021-04-039-38/+115
| | | | | | | | | | | * fix https://github.com/nim-lang/RFCs/issues/294 ; disallow enum <=> enum conversion * fix the runnableExamples that was the instigator of this RFC * legacy -d:nimLegacyConvEnumEnum * use -d:nimLegacyConvEnumEnum in important_package nimgame2 * add test for enum cast * improve changelog * add changelog: Changes affecting backward compatibility * cleanup changelog * fix changelog
* fix #17615(runnableExamples silently ignored if placed after some code) (#17619)flywind2021-04-028-28/+41
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* enable syntax highlighting for inline code (#17585)Andrey Makarov2021-04-029-51/+239
| | | | | | | | | | | | | | | | | | | | | | | | | * enable syntax highlighting for inline code * finish '.. default-role' and preliminary '.. role' implementation * more compact check in dirRole * set :literal: as default role for *.rst * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * use whichRole for setting currRoleKind * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename rnGeneralRole -> rnUnknownRole Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* [docs minor] close #17618 (#17620)flywind2021-04-021-9/+12
| | | | | | | | | * [docs minor] close #17618 * Update lib/pure/times.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* new `genAst` as replacement for `quote do` (#17426)Timothee Cour2021-04-025-1/+416
| | | | | | | | | | | | | | * new `macros.genAst`: fixes all issues with `quote do` * add changelog entry * add workaround for https://github.com/nim-lang/Nim/issues/2465#issuecomment-511076669 * add test for #9607 * add kNoExposeLocalInjects option * add test case for nested application of genAst * genAst: automatically call newLit when needed * allow skipping `{}`: genAst: foo * add test that shows this fixes #11986 * add examples showing mixin; add examples showing passing types, macros, templates * move to std/genasts * improve docs
* close #7875 add testcase (#17611)flywind2021-04-021-0/+22
| | | | | * close #7875 add testcase * fix
* [docs minor] close #16553 (#17612)flywind2021-04-021-10/+6
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* docs: note regarding emit with backticks (#17608)flywind2021-04-011-3/+3
|
* Fix #17017 (math edge cases) (#17588)konsumlamm2021-04-012-12/+51
| | | | | | | * Fix #17017 Add more test cases * USe signbit in example
* close #6133 add testcase (#17605)flywind2021-04-011-0/+50
| | | | | * close #6133 add testcase * b
* a bit better message (#17606)flywind2021-04-011-2/+2
|
* misc fixes: build_all.sh, changelog (#17601)Timothee Cour2021-04-013-3/+3
| | | | | | | * fix a bug in build_all.sh: $@ => "$@" * remove getSocket from changelog following #17587 * remove unused import
* close #9534 add testcase (#17607)flywind2021-04-011-0/+21
|
* docgen: render pragmas by default except for a select list (and fix #9074) ↵Timothee Cour2021-04-016-56/+76
| | | | (#17054)
* fix #17190 `nimscript` now accepts arbitrary file extensions for `nim e ↵flywind2021-04-015-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main.customext` (#17596) * fix #17190 * cah * merge * Update tnimscriptwithnimext.nim * Update tnimscriptwithmacro.nims * Apply suggestions from code review * Delete tnimscriptwithnimext.nim * Update tests/tools/tnimscriptwithmacro.nims * fix * fix * add a test * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* close #12684 add testcase (#17599)flywind2021-03-311-0/+7
|
* close #16786 (#17598)flywind2021-03-311-1/+35
|
* jsonutils: support cstring (including as Table key); improve docs (#16062)Timothee Cour2021-03-314-10/+28
| | | | | * jsonutils: support cstring (including as Table key); improve docs * changelog * un-disable a test now that #16061 was fixed
* Removes asynchttpserver.getSocket. (#17587)Dominik Picheta2021-03-311-14/+0
|
* [ci skip] correct indentation this timenarimiran2021-03-311-5/+5
|
* [ci skip] minor: fix indentation in manual.rstnarimiran2021-03-311-5/+5
|
* better error messages for .raise effect analysis (#17595)Andreas Rumpf2021-03-311-5/+7
|
* fix #17572 (#17586)Timothee Cour2021-03-312-1/+18
|
* fix #14585, fix #17589: access to static param now works (#17590)Timothee Cour2021-03-313-2/+58
|
* fix #12282 distinct now does not create erroneous copy in VM (#17594)Timothee Cour2021-03-312-2/+44
|
* fix #15617(fix compilation failure on -d:useMalloc --gc:none) (#17555)flywind2021-03-302-0/+16
| | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add getPort to resolve Port(0) (#17559)Timothee Cour2021-03-304-18/+32
| | | | | | | | | * add getPort to resolve Port(0) * fixup * use getPort in examples + tests * address comments: do not re-export Port
* makes DrNim compile again (#17584)Andreas Rumpf2021-03-302-13/+19
|
* Rotation right and left refactored to generics. Continuation of #16622 (#17578)rockcavera2021-03-301-88/+31
| | | | | | | * Rotation right and left refactored to generics Continuation of [16622](https://github.com/nim-lang/Nim/pull/16622) * add runnableExamples
* parser.nim: simply layout changeAraq2021-03-301-1/+2
|
* fix #17512 (#17520)flywind2021-03-301-1/+8
|
* [backport:1.2] Avoid inlining of newObj and newObjRC1 calls (#17582)Miran2021-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is taken from: https://github.com/status-im/Nim/commit/af69b3ceae16281efd45cbee4ce1bedd14282304 Full original comment: This is to avoid heavy inlining happening when two allocation calls would occur shortly after each other. This inlining would sometimes be accompanied with an optimisation as the compiler is able to see that cellToUsr ending the first allocation call is shortly followed by an usrToCell call. The pointer arithmetic is redundant and the compiler can eliminate it, leaving only the cell address in a register (and later the stack) instead of the actual pointer to the user data, as one would expect. This combined with a GC collect cycle will cause the stack scan to only notice the cell address, which is of no good due to a usrToCell in the gcMark call which shifts that address to an adjacent cell. This means that the actual cell of importance will not get marked and thus cause a premature collection of that cell. BOOM.
* Fix void async in templates (#17562)Ardek Romak2021-03-302-2/+15
| | | | | | | | * Fix https://github.com/nim-lang/Nim/issues/16159 * Add test for async in template * Shorten the expression * Even shorter Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix #17299, fix setAffinity for android (#17574)Clyybber2021-03-301-2/+17
| | | | | | | * Fix #17299 * Comment * Fix typo
* Fix entries in nimc advopt (#17576)Danil Yarantsev2021-03-301-3/+5
|
* unify tuple expressions (#13793)Arne Döring2021-03-3013-32/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
* Add hasDataBuffered to asyncnet (#16000)Dylan Modesitt2021-03-292-0/+7
| | | | Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>