Timothee Cour
36d24846b6
typo: enmRange => enumElementsAsSet ( #18394 )
2021-06-29 18:08:50 -07:00
Andreas Rumpf
97fc95012d
fixes #16270 ( #18388 )
2021-06-29 15:34:39 +02:00
Timothee Cour
6387e28963
simplify rdstdin ( #18382 )
2021-06-28 13:09:14 -07:00
Clyybber
808db3b284
Fix unused warning for $ on empty object ( #18381 )
2021-06-28 22:01:06 +02:00
Clyybber
dd2cbe3164
Cleanup lookups.nim again.. ( #18379 )
2021-06-28 19:25:30 +02:00
Clyybber
72d6a9c885
Fix #16426 ( #18377 )
2021-06-28 17:41:37 +02:00
Timothee Cour
cb9496693a
./koch tools now builds bin/nim_dbg, a debug version of nim (#18289 )
2021-06-28 17:15:20 +02:00
Andreas Rumpf
0be17f5d9c
fixes #18319 ( #18375 )
2021-06-28 17:08:45 +02:00
Clyybber
6e74fecb42
Simplify addInt, remove digits10 ( #18356 )
...
* Simplify addInt, remove digits10
Co-authored-by: Charles Blake <charlechaud@gmail.com >
* Fix bootstrapping
* Add noInit to tmp array
* noInit -> noinit
Co-authored-by: Charles Blake <charlechaud@gmail.com >
2021-06-28 15:00:14 +02:00
gemath
e720bbdd76
Peg captures get stack-like behavior ( #18369 )
...
* Implements reverse capture indexing.
* Now works for modified backrefs too.
* Changed reverse indexing syntax prefix for back-references to '$^'.
2021-06-28 12:33:20 +02:00
Federico Ceratto
908b2cc2e4
Switch IRC links to Libera Chat ( #18370 )
2021-06-27 21:12:12 +01:00
Federico Ceratto
0804b4b37d
Switch packaging.rst to use makefile
...
Minor cleanup
2021-06-27 19:51:28 +01:00
Timothee Cour
0b7361e938
followup #18362 : make UnusedImport work robustly ( #18366 )
...
* warnDuplicateModuleImport => hintDuplicateModuleImport
* improve DuplicateModuleImport msg, add test
2021-06-27 20:39:16 +02:00
Andrey Makarov
1b9b806007
rst: fix bug 20 from #17340 ( #18360 )
...
and a leftover bug: priority of option list inside definition list
2021-06-26 18:10:46 +02:00
Timothee Cour
b8f761b7e2
even lighter version of #17938 : fix most issues with UnusedImport, 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
2021-06-26 15:21:46 +02:00
Andreas Rumpf
39fbf3c84b
ensure 'koch boot --gc:orc' stays green ( #18353 )
...
* ensure 'koch boot --gc:orc' stays green
* disable for C++ code generator for now
2021-06-25 21:39:52 -04:00
tomc1998
f6bea08eac
Add sink annotation to option some() ( #18358 )
2021-06-25 22:06:24 +02:00
Timothee Cour
8535b26a75
docs now show nimExperimentalX APIs ( #18345 )
...
* docs now show nimExperimentalX APIs
* fix for windows
2021-06-25 16:47:10 +02:00
Andreas Rumpf
ceb9e3efc9
fixes #18240 ( #18354 )
...
* ORC: track escaping parameters properly
* fixes #18240
2021-06-25 14:12:23 +02:00
Andreas Rumpf
0d194cdbf9
fixes #18287 ( #18346 )
2021-06-25 06:22:52 +02:00
Smooth Operator
6be8a66833
couple tiny typo fixes ( #18344 )
2021-06-24 18:48:57 +01:00
Kaushal Modi
f128f7971f
float parsing: Add test for a fixed issue ( #18232 )
...
Fixes https://github.com/nim-lang/Nim/issues/14407 .
This issue was fixed by https://github.com/nim-lang/Nim/pull/18139 .
2021-06-24 19:19:50 +02:00
Andreas Rumpf
16038d44f6
fixes #18320 ( #18343 )
...
* TSymFlag has 47 flags already
* fixes #18320
2021-06-24 18:37:04 +02:00
Timothee Cour
565e07a993
enable VM tracing in user code via {.define(nimVmTrace).} ( #18244 )
...
* enable VM tracing in user code via `{.define(nimVmTrace).}`
* add vmutils.vmTrace
* add vmTrace
2021-06-24 11:55:31 +02:00
Andrey Makarov
0c8d3ae985
rst: allow comment to continue on second line ( #18338 )
2021-06-24 10:28:28 +02:00
Timothee Cour
55c1953f63
fix #18334 : handle path with spaces on windows during bootstrap ( #18337 )
2021-06-24 00:58:11 -07:00
Timothee Cour
f258e4e70c
fix #18332 : XDeclaredButNotUsed hints now in deterministic order ( #18336 )
2021-06-24 08:31:55 +02:00
Andreas Rumpf
0f91b67f5c
fixes #18326 ( #18335 )
...
* fixes #18326
* make tests green again
2021-06-23 23:31:17 +02:00
flywind
496bd790e1
[std/times]getTime now uses high resolution API on windows ( #17901 )
2021-06-23 12:33:19 -07:00
Antonis Geralis
63456c6d7f
Add some tests ( #18333 )
2021-06-23 17:56:20 +02:00
Andreas Rumpf
0eee7f5727
OS.nim: style changes ( #18331 )
2021-06-23 14:39:10 +02:00
Andrey Makarov
9c43f05099
Markdown: allow to end URL with balanced parenthesis ( #18321 )
...
* 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 >
2021-06-23 07:50:05 +02:00
Timothee Cour
5badeea170
followup #18318 : simplify dollarImpl and add a test ( #18330 )
2021-06-22 21:42:39 -07:00
flywind
9a81e91fa5
merge similar procs regarding digits ( #18318 )
2021-06-22 17:02:32 +02:00
flywind
037715285c
fix #18327 ( #18328 )
2021-06-22 12:44:56 +02:00
mantielero
d8488e41e8
readAsText supports both Blob and File ( fixes #18187 ) ( #18189 )
2021-06-21 21:19:11 -07:00
xioren
9d3a813fb9
convert code-blocks to runnableExamples in io ( #18315 )
...
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-06-21 18:56:16 -07:00
xioren
16461a8810
add multi type exception catching to manual ( #18258 ) ( #18323 )
2021-06-21 18:53:35 -07:00
Timothee Cour
d398c558a4
close #13196 now that we have dragonbox ( #18316 )
2021-06-21 12:51:00 +02:00
flywind
2deb7011f5
fixes #17768 [backport:1.4] ( #18317 )
...
* fixes #17768 [backport:1.4]
* tiny
2021-06-21 12:50:47 +02:00
Timothee Cour
ad70a65e0e
fix #18310 system.== in vm for NimNode ( #18313 )
...
* fix #18310 == in vm
* fixup
* fixup
2021-06-21 09:46:31 +02:00
Timothee Cour
abd21ef213
close #17403 ; improve docs for tuple ( #18312 )
2021-06-21 09:45:26 +02:00
Timothee Cour
40ec8184ad
followup #17852 , disallow all:on for now ( #18311 )
2021-06-20 22:49:14 +02:00
Andrey Makarov
1b3c0f142d
validate rst field for :number-lines:, :status: ( #18304 )
2021-06-20 20:00:42 +02:00
Timothee Cour
7d5e6b0169
support --hint:all:off --hint:x (ditto with --warnings + friends) ( #17852 )
...
* select all hints via `--hint:all:on|off`, etc
* simplify code with setutils
* address comment
2021-06-20 19:52:22 +02:00
Heiko Nickerl
92cb765714
Raise IndexDefect when deleting element at out of bounds index ( #17821 )
...
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 >
2021-06-20 08:56:33 -07:00
Antonis Geralis
eb0b323f45
Revert "disable pkg manu ( #18292 )" ( #18307 )
...
This reverts commit fc76565574 .
2021-06-20 20:51:13 +08:00
flywind
e45b858f04
[std/terminal] improve docs a bit ( #18296 )
...
* Revert "add missing import to asynchttpserver's example"
This reverts commit 7ef364a402 .
* alternative to #18185
* add std/mutexes
* cvlose #17696
* Revert "add std/mutexes"
This reverts commit 69abc8b649 .
* tiny
* test
* improve terminal docs
* follow advice
2021-06-20 09:57:59 +02:00
Timothee Cour
6030e139b5
move {.injectStmt.} to experimental; add a test ( #18300 )
...
* move {.injectStmt.} to experimental; add a test
* undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
2021-06-20 09:51:07 +02:00
Andrey Makarov
590d457631
docgen: move to shared RST state ( fix #16990 ) ( #18256 )
...
* 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 >
2021-06-20 09:50:03 +02:00