Andrey Makarov
e61381a293
follow-up #17692 : more inline syntax highlighting ( #17837 )
2021-04-29 17:16:14 +02:00
c-blake
601c050fcb
Implement https://forum.nim-lang.org/t/7848#50018 ( #17874 )
...
* Implement https://forum.nim-lang.org/t/7848#50018 with just the same
`SuccessX` hint category, build mode on a separate, final line, and
no change to how the mode is spelled for -d:release/-d:danger.
* Change to add a new BuildMode hint category and keep testament in sync
as per comment.
* Add "--hint:buildmode:off" to `defaultHintsOff`.
* Remove as requested.
* As requested for tests clean up.
* Address code review.
* Address code review.
* Mirror db45642311
2021-04-29 08:55:43 +02:00
Timothee Cour
b667e288e2
move travis, appveyor, ci.yml.disabled to unmaintained/ ( #17828 )
...
* move travis, appveyor, ci.yml.disabled to unmaintained
* update some mentions of travis, appevyor
* fix test
2021-04-24 07:54:31 +02:00
Timothee Cour
3516f57e17
manual: fix rendering of Identifiers & Keywords [skip ci] ( #17811 )
2021-04-23 13:51:24 +02:00
Andreas Rumpf
511b6d2449
typos ( #17824 )
2021-04-23 13:50:27 +02:00
Timothee Cour
e4a3feeb92
add --processing:dots|filenames|off to customize hintProcessing ( #17817 )
2021-04-23 08:07:22 +02:00
Andrey Makarov
8f79bc5f3d
add RST highlighting for command line / shells (also fixes #16858 ) ( #17789 )
2021-04-21 16:57:54 +02:00
Timothee Cour
da1c1a7117
--filenames:abs|canonical|legacyRelProj for filenames in compiler msgs (replaces --listfullpaths:on|off) (#17746 )
...
* use canonicalImport for filename_magicSauce
* --filenames:abs|canonical|magic
* rename: magic => legacyRelProj
2021-04-21 15:26:27 +02:00
Timothee Cour
7bce1f8578
close #13373 document (ref Foo)(a: 1) ( #17804 )
2021-04-21 07:33:56 +02:00
Andreas Rumpf
54fe44135e
updated the documentation ( #17796 )
2021-04-20 15:24:20 +02:00
Timothee Cour
fb02b56957
support skip ci in azure pipelines, and support it properly in github actions pipelines ( #17561 )
...
* support skip ci in azure pipelines
* [skip ci] example of a commit that skips CI
* example of a commit that does not skip CI
* fix github actions logic for ci skip handling
* [skip ci] example of a commit that skips CI for all pipelines
* example of a commit that does not skip CI for any pipeline
2021-04-20 09:01:53 +02:00
Andreas Rumpf
67e28c07f9
IC: first steps towards 'nim check --def --ic:on' ( #17714 )
...
* IC: first steps towards 'nim check --def --ic:on'
* IC navigator: deduplicate output lines
* IC navigator: progress
* IC navigator: use a different nimcache entry
* IC navigator: special logic for templates/macros
* IC navigator: proper error messages
* IC navigator: prepare for testing code; document only what currently works somewhat
2021-04-14 16:44:37 +02:00
Timothee Cour
ceadf54d76
iterable[T] ( #17196 )
...
* fix failing test toSeq in manual which now works
* changelog
* reject proc fn(a: iterable)
* add iterable to spec
* remove MCS/UFCS limitation that now works
2021-04-11 14:25:41 +02:00
Andrey Makarov
3aaec0647b
turn on syntax highlighting in Manual & Tutorial ( #17692 )
...
* turn on syntax highlighting in Manual & Tutorial
* avoid highlighting of "method"
* use relative path
* 2 more changes
2021-04-11 10:23:08 +02:00
Andrey Makarov
2150cd1826
restyle RST option lists ( #17637 )
...
* WIP: restyle RST option lists
* apply similar style to Latex
* fix tests
* minor visual tweaks
* update tests
* remove leftover comments
2021-04-10 09:49:01 +02:00
Timothee Cour
826ad2f36f
nep1: guidelines for getters and setters ( #17645 )
...
* nep1: guidelines for getters and setters
* address a comment
2021-04-09 07:09:04 +02:00
konsumlamm
e4b64eee89
Fix small typos ( #17680 )
2021-04-09 00:40:19 +02:00
Andreas Rumpf
2ac45a4794
undocument unsupported advanced options ( #17678 )
2021-04-09 00:18:07 +02:00
konsumlamm
9f0f477552
Update sysrand documentation ( #17676 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-04-08 12:41:43 -05:00
Andrey Makarov
42687457b0
further progress on rst roles & directives ( fix #17646 ) ( #17659 )
...
* further progress on rst roles & dir-s (fix #17646 )
* fix documents according to the messages
* fix bug 17 from #17340
2021-04-08 19:00:14 +02:00
Andreas Rumpf
4d3f9d3536
manual: minor improvements ( #17677 )
...
* manual: minor improvements
* Update doc/manual.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-04-08 17:46:51 +02:00
Andreas Rumpf
643dbc743b
use strstr for a faster find implementation ( #17672 )
...
* use strstr for a faster find implementation
* stress the -d:release and -d:danger switches
2021-04-08 00:54:47 +02:00
Andreas Rumpf
bd7807de4c
fixes #17647 ( #17667 )
2021-04-07 23:26:53 +02:00
flywind
34c1c631bb
close #4451 ( #17627 )
2021-04-06 22:08:59 +02:00
Andrey Makarov
e35946f306
enable syntax highlighting for inline code ( #17585 )
...
* 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 >
2021-04-02 22:11:44 +02:00
flywind
2365b5250e
docs: note regarding emit with backticks ( #17608 )
2021-04-01 21:06:50 -07:00
narimiran
0be7f854ed
[ci skip] correct indentation this time
2021-03-31 13:45:14 +02:00
narimiran
d3529d0d5a
[ci skip] minor: fix indentation in manual.rst
2021-03-31 13:34:32 +02:00
Danil Yarantsev
8db93fd0a2
Fix entries in nimc advopt ( #17576 )
2021-03-30 08:04:17 +02:00
Arne Döring
159c06e045
unify tuple expressions ( #13793 )
...
* 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 >
2021-03-30 02:06:51 +02:00
Andrey Makarov
861c42c258
RST: enable parsing of prefix roles (ref #17340 ) ( #17514 )
2021-03-29 18:32:49 +02:00
Timothee Cour
04520c0ce4
remove std/ prefix from doc/lib.rst now that canonical import is shown in module docs ( #17543 )
...
* remove std/ prefix from doc/lib.rst now that canonical import is shown in module docs
* cleanup top docs for std/sha1
2021-03-29 13:07:14 +02:00
Timothee Cour
bbe4cf4703
followup custom literals ( #17500 )
2021-03-27 12:03:14 -07:00
Timothee Cour
a65189a739
nnkArglist => nnkArgList + special case stylecheck:error ( #17529 )
...
* nnkArglist => nnkArgList
* special case stylecheck:error
2021-03-27 10:28:11 +01:00
Andreas Rumpf
3e03f67335
cleaned up the internal documentation ( #17524 )
2021-03-26 16:27:55 +01:00
flywind
045400ad92
ref https://github.com/nim-lang/Nim/pull/17333 ( #17495 )
2021-03-25 07:07:29 +01:00
Andreas Rumpf
355985ac89
custom integer literals bugfixes ( #17499 )
...
* custom integer literals bugfixes
* make nimsuggest compile again
2021-03-24 22:29:42 +01:00
Andreas Rumpf
5f5a92379f
custom integer literals ( #17489 )
...
* user defined integer literals; refs #17020
* updated renderer.nim
* use mlexerutils helper
* imported all test cases from https://github.com/nim-lang/Nim/pull/17020
* final grammar updated
2021-03-24 14:46:19 +01:00
Andreas Rumpf
86af2f7b50
make unary minus part of number literals, refs #17020 ( #17488 )
...
* make unary minus part of number literals, refs #17020
* fixes regression
2021-03-24 09:47:11 +01:00
Andrey Makarov
368422c219
update nimgrep documentation ( #17415 )
...
* update nimgrep documentation
* Update doc/nimgrep_cmdline.txt
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-03-23 18:12:27 +01:00
AFaurholt
5bed7d282a
added more modules to docs lib ( #17430 )
...
* added more modules
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* listed alphabetically + link to json module
* Added suggestion #17430
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-21 18:35:22 +01:00
Danil Yarantsev
c5b109233a
Add documentation to the macrocache module ( #17431 )
...
* Add docs to macrocache
* use hint
* Use incl in the incl example
* add macrocache to lib
* consistency
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* apply suggestions
* clarify the warning
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-21 10:34:10 +01:00
quantimnot
83ae70cb54
RST backtick refactor (all *.rst except manual.rst and rst_examples.rst) ( #17258 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-03-18 20:37:55 -07:00
quantimnot
15586c7a7a
RST backtick refactor manual.rst ( #17259 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-03-18 16:59:01 -07:00
Timothee Cour
b755060f9c
docs contributing: mention https://man.sr.ht/builds.sr.ht/build-ssh.md for ssh to CI machines ( #17409 )
2021-03-18 02:35:08 -07:00
Timothee Cour
48eab5370a
fix #2844 #3911 ; add --spellsuggest to suggest symbols in scope with similar spellings on undefined symbol error ( #16067 )
...
* add --spellsuggest to suggest symbols in scope with similar spellings on undefined symbol errors
* implement --spellsuggest with 0 arguments
2021-03-16 10:41:30 +01:00
Clyybber
283d9abc84
Make add work in the destructors example ( #17354 )
2021-03-15 13:03:00 +01:00
Clyybber
c7e4e96aaf
Small fix to destructors example
2021-03-12 13:43:40 +01:00
flywind
2e730f1452
rename channels to channels_builtin ( #17330 )
...
* improve test coverage for isolation
* a bit better
* rename channels to channels_builtin
2021-03-12 13:04:32 +01:00
Andrey Makarov
d97bf4f1c8
fix RST parsing when no indent after enum.item ( fix #17249 ) ( #17257 )
2021-03-12 08:33:21 +01:00