| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
This implements Pandoc Markdown-style footnotes,
that are compatible with Pandoc referencing syntax:
Ref. [^ftn].
[^ftn]: Block.
See https://pandoc.org/MANUAL.html#footnotes for more examples.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fixes #22598, properly fixes #21887 and fixes test case issue number
When an enum field sym choice has to choose a type, check if its name is
ambiguous in the local scope, then check if the first symbol found in
the local scope is the first symbol in the sym choice. If so, choose
that symbol. Otherwise, give an ambiguous identifier error.
The dependence on the local scope implies this will always give
ambiguity errors for unpicked enum symchoices from generics and
templates and macros from other scopes. We can change `not
isAmbiguous(...) and foundSym == first` to `not (isAmbiguous(...) and
foundSym == first)` to make it so they never give ambiguity errors, and
always pick the first symbol in the symchoice. I can do this if this is
preferred, but no code from CI seems affected.
|
|
|
| |
Co-authored-by: SirOlaf <>
|
|
|
| |
fixes #20543
|
|
|
|
|
| |
are not being cached (#22622)
remove `tfSendable` from `eqTypeFlags`
|
|
|
| |
fixes #22216
|
|
|
| |
fixes #9040
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes internal error: no generic body fixes #1500
* adds guard
* adds guard
* removes unnecessary test
* refactor: extracts containsGenericInvocationWithForward
|
|
|
|
|
| |
resolve local symbols in generic type call
fixes #14509
|
|
|
| |
fixes #19849
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes #22613; Default value does not work with object's discriminator
fixes #22613
* merge branches
* add a test case
* fixes status
* remove outdated comments
* move collectBranchFields into the global scope
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Rewrite endsInNoReturn
* Handle `try` stmt again and add tests
* Fix unreachable code warning
* Remove unreachable code in semexprs again
* Check `it.len` before skip
* Move import of assertions
---------
Co-authored-by: SirOlaf <>
|
|
|
|
|
|
|
|
|
| |
* type annotations for variable tuple unpacking, better error messages
closes #17989, closes https://github.com/nim-lang/RFCs/issues/339
* update grammar
* fix test
|
| |
|
|
|
| |
closes #22600
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* handle typedesc params in VM
fixes #15760
* add test
* fix getType(typedesc) test
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
instead (#22576)
* deprecate `std/threadpool`; use `malebolgia` instead
* Apply suggestions from code review
* Apply suggestions from code review
* change the URL of inim
|
|
|
| |
refs #16547
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes newStringUninitialized; implement `newStringUninitialized`
* add a simple test case
* adds a changelog
* Update lib/system.nim
* Apply suggestions from code review
rename to newStringUninit
|
|
|
|
|
| |
ref https://github.com/nim-lang/nightlies/actions/runs/5970369118/job/16197865657
> /home/runner/work/nightlies/nightlies/nim/lib/pure/os.nim(678, 30) Error: getApplOpenBsd() can raise an unlisted exception: ref OSError
|
|
|
|
|
| |
* minor style changes in the compiler
* use raiseAssert
|
|
|
| |
fixes #12929
|
|
|
|
|
|
|
| |
* correct logic for qualified symbol in templates
fixes #19865
* add test
|
|
|
| |
fixes #22543
|
|
|
| |
newStringOfCap nows won't initialize all elements anymore
|
|
|
|
|
|
|
|
|
| |
* `initCandidate` and friends now return values
* fixes semexprs.nim
* fixes semcall.nim
* Update compiler/semcall.nim
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#22559)
* fix #22548;environment misses for type reference in iterator access nested in closure
* fix #21737
* Update lambdalifting.nim
* remove containsCallKinds
* simplify
|
|
|
|
|
|
|
|
|
|
|
|
| |
* test case haul for old generic/template/macro issues
closes #12582, closes #19552, closes #2465, closes #4596, closes #15246,
closes #12683, closes #7889, closes #4547, closes #12415, closes #2002,
closes #1771, closes #5121
The test for #5648 is also moved into its own test
from `types/tissues_types` due to not being joinable.
* fix template gensym test
|
|
|
|
|
|
|
| |
* .
* Fix cli args out of range with descriptive error instead of crash
* https://github.com/nim-lang/Nim/pull/22509#issuecomment-1692259451
|
|
|
|
|
|
|
| |
* fix generic param substitution in templates
fixes #13527, fixes #17240, fixes #6340, fixes #20033, fixes #19576, fixes #19076
* fix bare except in test, test updated packages in CI
|
| |
|
|
|
| |
* followup #21507
|
|
|
|
|
| |
twice (#22549)
fixes a strictdef ten years long vintage bug
|
|
|
|
|
|
|
|
|
| |
* Fix `getAppFilename` exception handling
avoid platform-dependendent error handling strategies
* more fixes
* space
|
|
|
| |
The `mopProc` is a recursive function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* round out tuple unpacking assignment, support underscores
fixes #18710
* fix test messages
* use discard instead of continue
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
| |
fixes #21208
|
| |
|
|
|
|
|
|
|
|
|
| |
* Don't ignore return in semTemplateDef
* Add test
---------
Co-authored-by: SirOlaf <>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #22492
* Update nimdoc.css
remove scroll-y
* Update nimdoc.out.css
* Update nimdoc.css
* make it sticky again
* Update nimdoc.out.css
* danm sticky, use fixed
* Update nimdoc.out.css
* fix margin
* Update nimdoc.out.css
* make search input react to any change (not just keyboard events) according to https://github.com/nim-lang/Nim/pull/22511#issuecomment-1685218787
|
|
|
|
|
| |
allow non-pragma special words as macro pragmas
fixes #22525
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#22527)
* fix getNullValue for cstring in VM
fixes #22524
* very ugly fixes, but fix #15730
* nil cstring len works, more test lines
* fix high
|
|
|
|
|
| |
* use old typeinfo generation for hot code reloading
* at least test hello world compilation on orc
|
|
|
|
|
|
|
|
|
|
|
| |
* Keep return in mind for sink
* Keep track of return using bool instead of mode
* Update compiler/injectdestructors.nim
* Add back IsReturn
---------
Co-authored-by: SirOlaf <>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|