Andrey Makarov
e843492b13
doc/rst2html: some few fixes for enumerated and bullet lists ( #16295 )
...
* 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
2020-12-14 18:10:39 +01:00
Timothee Cour
2728711dd3
fix #16248 forward --lib to runnableExamples ( #16350 )
2020-12-14 17:49:39 +01:00
flywind
8f6e07a9a2
clean the docs of sequtils ( #16332 )
2020-12-14 16:38:02 +01:00
RSDuck
b6443c96a0
fix #16334 ( #16335 )
...
* fix #16334
* rename isstdout -> isStdout
* separate lastMsgWasDot for stdout and stderr
* simplify logic
2020-12-14 13:28:03 +01:00
Juan Carlos
5e8e948ffc
Clean out dead code ( #16345 )
2020-12-14 11:50:45 +01:00
Timothee Cour
555cfd1d59
fix #16330 tshould_not_work ( #16342 )
2020-12-14 11:37:27 +01:00
Timothee Cour
4850f9b596
fix #16265 ; fix #13999 (HCR on OSX); cgen now does not line wrap string 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
2020-12-14 11:17:24 +01:00
rockcavera
9ac2ee7b8d
Fix #11506 ( #16348 )
...
fixes the problem of compiling vccexe.exe when it is in use.
2020-12-14 11:07:55 +01:00
Timothee Cour
7e1ae35195
testament: error instead of silently ignore invalid targets; remove 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 >
2020-12-14 10:58:29 +01:00
Bung
5514b299eb
add testcase for #15937 ( #15933 )
...
* 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 >
2020-12-13 11:52:38 +08:00
Jason Beetham
5a58440ebe
Added strscans.scanTuple ( #16300 )
...
* Added since and changelog
2020-12-12 23:29:20 +01:00
rockcavera
d15f63a0f2
Fix #14259 #15621 ( #16322 ) [backport:1.4]
...
* 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 >
2020-12-12 09:35:18 +01:00
Timothee Cour
b1c232aca1
improve tests for collections ( #16328 )
...
* improve tests for collections
* remove remaining code blocks in deques.nim
* improve runnableExamples
2020-12-12 09:33:29 +01:00
Timothee Cour
0b73106ccf
add math.isNaN ( #16179 )
...
* 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 >
2020-12-11 11:01:43 +01:00
Timothee Cour
bb1c962286
fix partially #13115 (now works for cpp; but still fails for js on openbsd) ( #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
2020-12-11 10:35:05 +01:00
flywind
bc84bd5d66
bring back fidget ( #16319 )
2020-12-11 13:02:43 +08:00
Timothee Cour
1a07f572f4
unbreak CI, disable fidget, refs #16315 ( #16316 )
2020-12-11 00:24:44 +01:00
flywind
73299b048f
enable tests for random ( #16297 )
2020-12-10 07:58:42 +01:00
Timothee Cour
82bb4db4b7
unittest: use defines instead of env vars ( #16165 )
...
* unittest: use defines instead of env vars
* use defines in testament
* fixup
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-12-10 00:57:52 +01:00
Timothee Cour
f344a70412
fix #16150 improve type mismatch errors ( #16152 )
...
* fix #16150 improve type mismatch errors
* allow -d:nimLegacyTypeMismatch
* address comment
2020-12-09 16:19:39 +01:00
ee7
87e634aab3
rationals.nim: Use func everywhere ( #16302 )
2020-12-09 16:17:50 +01:00
Federico Ceratto
17a835a7b2
Zsh completion ( #16261 )
...
* 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 >
2020-12-09 16:11:51 +01:00
flywind
9ce2f87a0a
clean up old codes ( #16284 )
...
* clean up old codes
* fix docs and links
* clean
2020-12-09 12:18:32 +01:00
ee7
6f57ebae34
sequtils.nim: Use func ( #16293 )
...
* 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
2020-12-09 12:11:16 +01:00
flywind
c43dca2901
disbale deprecated CI in fork repo ( #16299 )
2020-12-09 11:19:02 +01:00
ee7
140ebe6019
complex.nim: Use func everywhere ( #16294 )
2020-12-09 10:57:12 +01:00
Miran
40255f6721
put both funcs and procs under the same section in the documentation ( #16301 )
...
* both funcs and procs are under the same section in the documentation
* update the test
2020-12-09 10:56:28 +01:00
flywind
a32acc351e
Revert "use generics in random ( #16283 )" ( #16291 )
...
This reverts commit 71e2a9e569 .
2020-12-09 09:36:46 +08:00
Xabier Bello
4c533b2d92
Added Python to highlite module. ( #16286 )
...
* 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`.
2020-12-08 10:44:07 +01:00
ee7
2297b96238
math.nim: Use func everywhere ( #16285 )
...
* 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
2020-12-07 23:26:14 +01:00
ee7
84fea7c144
strutils.nim: Use func everywhere ( #16281 )
...
* 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
2020-12-07 17:07:12 +01:00
flywind
71e2a9e569
use generics in random ( #16283 )
...
* use generics in random
* fix
2020-12-07 16:38:13 +01:00
Andreas Rumpf
94bb816de3
OSX: support for M1 [backport:1.0] ( #16279 )
2020-12-07 10:50:30 +01:00
flywind
baf37b5cc7
use funcs and fix links in strutils ( #16277 )
...
* use funcs and inline in strutils
* use funcs
2020-12-07 10:41:25 +01:00
Pietro Peterlongo
57d2c293d3
fix parseChar see #16240 ( #16245 )
...
* fix parseChar
* do not introduce new double backticks
2020-12-06 10:14:55 +01:00
Sebastian Reinhard
93b6fac468
nimdoc: Initialize theme switch and pragma dots on DOMContentLoaded ( #16247 )
...
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.
2020-12-06 10:13:19 +01:00
flywind
1e320bc8c5
[docs minor]space for code-block ( #16266 )
...
* [docs minor]space for code-block
* correct more errors
* to runnableExamples
* add newline
2020-12-06 09:54:32 +01:00
flywind
48d7c40553
fix #16206 ( #16207 )
...
* better docs and tests
* a bit better only clean trailing whitespace
2020-12-06 09:50:46 +01:00
flywind
1aaa67fc18
[docs minor] remove unicode in docs comments ( #16267 )
2020-12-06 05:51:29 +01:00
Andreas Rumpf
af7f7726fe
ORC: make the adaptive strategy the default in order to fight memory consumption ( #16250 )
...
* ORC: make the adaptive strategy the default in order to fight memory consumption
* added missing test case
2020-12-05 23:15:17 +01:00
flywind
70d4df0516
bring back argparse ( #16242 )
2020-12-05 13:05:16 -08:00
Clyybber
d7f244180e
Retry commands in testament again ( #16262 )
2020-12-05 18:41:08 +01:00
Andreas Rumpf
8178388a78
fixes #16249 [backport:1.4] ( #16251 )
2020-12-05 00:36:06 +01:00
Andreas Rumpf
edce5897a5
fixes #16214 [backport] ( #16252 )
2020-12-04 17:47:41 +01:00
Andrey Makarov
6877e0c8a3
RST tables: fix latex col number; allow less than three of = ( #16040 )
2020-12-04 08:50:17 +01:00
flywind
e4e5a0c65a
cleanup docs and tests ( #16235 )
...
* js module also uses runnableExamples
* cleanup docs and tests
2020-12-03 22:59:17 +01:00
Antonis Geralis
808ab7eae2
add collect with infered init, refs #16078 fixes #14332 ( #16089 )
...
* changelog
* add testcase, fixes #14332
2020-12-03 20:32:18 +01:00
Miran
2220aaeaef
add support for parsing chars in scanf macro ( #16240 )
2020-12-03 17:34:30 +01:00
Alf-André Walla
545c406cbe
Add 32-bit RISC-V support ( #16231 )
2020-12-03 17:33:42 +01:00
Andrey Makarov
e223a05123
minor fix to Posix part of walkDir ( #16234 )
...
* change break->continue and rewrite one-yield-style
* use case statement for clarity
* Tiny nit
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-03 17:09:54 +01:00