summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* prevent yet another compiler crash from happeningAndreas Rumpf2018-03-141-1/+2
|
* improves the stability of 'nim check'Andreas Rumpf2018-03-132-2/+3
|
* Fix casing in rule 'typeDesc' (#7324)Robert Hencke2018-03-122-2/+5
| | | Also, leave a note in grammar.txt that it is generated.
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-03-1215-103/+257
|\
| * Renamed jsondoc2 to jsondoc, similar to doc2 (#7279)PMunch2018-03-086-27/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update information about jsondoc/jsondoc2 Manual was missing information about jsondoc2 which made it seem like it didn't exist at all. This commit adds mention of the jsondoc2 command along with an example. * Renamed jsondoc2 similar to doc2 and updated docs doc2 was recently renamed to doc while doc was renamed to doc0. This commits renames jsondoc to jsondoc2 and jsondoc2 to jsondoc0 to behave tha same way. The documentation for doc/jsondoc was also lagging behind this change which has also been fixed. I interpreted this as a soft deprecation of doc and jsondoc and therefore removed them from the auto-complete lists.
| * Fix #6415 (#7281)zah2018-03-084-6/+71
| | | | | | | | | | | | | | | | * hangle static generic params when used in the importcpp pragma * importcpp works for generic types with fields; fixes #6415 * revert a too agressive safety check that ended up breaking the tests
| * Allow only single infix as in except branches. Fixes #7115 (#7132)cooldome2018-03-082-44/+44
| |
| * FIXUP: Removed +1 causing substr slicing to skip chars on first iteration of ↵ryanc-signiq2018-03-081-1/+6
| | | | | | | | while loop (#7312)
| * Add ability for users to elide ':' or '=' when CLI authors pass a (#7297)c-blake2018-03-082-22/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability for users to elide ':' or '=' when CLI authors pass a non-empty partial symbol table. Behavior should be identical to the old behavior if empty partial symbol tables are passed. "Partialness" of the symbol table refers to the fact that one need only specify option keys that are toggles/booleans/do not take arguments, hence the "NoArg" suffixes in shortNoArg and longNoArg. commandLineParams() returns seq[TaintedString], so use that consistently in getopt() and initOptParser(seq[TaintedString]) dropping the taint at the quoting stage just as with the paramStr() logic. Fix capitalization inconsistency of cmdLongOption. Export OptParser.cmd and OptParser.pos so that, at least *in principle*, users of this API can handle "--" option processing termination or some "git-like" sub-command stop word with a separate option sub-syntax. { Eg., ``case p.key of "": echo "trailing non-option args: ", p.cmd[p.pos..^1]`` or ``case p.kind of cmdArgument: if p.key == "mysubcmd": ...``. } Really, searching for the last delimiter before p.pos is probably needed to frame the trailing text..Not the nicest API, but still possible with effort. * Make requested changes from string to seq[char] (see https://github.com/nim-lang/Nim/pull/7297) * Document new behavior and elaborate on some special cases. * NoArg => NoVal to be less ambiguous/more clear. * Add more documentation and an example snippet. * Tweak language. Clarify still using ':'/'=' is ok. * Add a test case for new NoVal behavior.
| * lib/system: Fix programResult documentation (#7307)alaviss2018-03-071-3/+3
| |
* | fixes httpclient documentation commentAraq2018-03-121-1/+1
|/
* yet another documentation fixAraq2018-03-061-1/+1
|
* make the 'canimport' template workAndreas Rumpf2018-03-062-1/+27
|
* Fixes #7212, now with better code (#7302)Simon Krauter2018-03-061-0/+7
| | | When platform is Windows and app type is GUI, an error about missing DLL file is displayed as message box in addition to the console output, which is usually not visible.
* more documentation fixesAraq2018-03-054-12/+10
|
* strutils.strip: improve the documentation; fixes #7159Andreas Rumpf2018-03-051-1/+3
|
* make re.split consistent with strutils.split and other programming ↵Andreas Rumpf2018-03-052-14/+34
| | | | languages; refs #7278
* fixes #7293Andreas Rumpf2018-03-051-3/+3
|
* fixes #5293Andreas Rumpf2018-03-051-1/+1
|
* Fixes 7283 (#7284)cooldome2018-03-053-1/+14
|
* development version is 0.18.1Araq2018-03-052-644/+2
|
* fixes #7291Araq2018-03-052-2/+4
|
* fixes #7294; Nim doc search featureAraq2018-03-051-5/+5
|
* algorithm.nim: change formatting to Nim's defaultsAraq2018-03-051-4/+4
|
* Cleanup docs about re.nimAraq2018-03-051-5/+1
|
* Merge pull request #7289 from alehander42/fix-asyncjs-pragmaDominik Picheta2018-03-052-1/+29
|\ | | | | Stop replacing all pragmas of a function with asyncjs
| * Use addPragmaAlexander Ivanov2018-03-052-6/+2
| |
| * Stop replacing all pragmas of a function with asyncjsAlexander Ivanov2018-03-032-1/+33
| |
* | Changes `entityToUtf8` implementation from `htmlparser` and add two procs ↵Tim2018-03-041-77/+1521
| | | | | | | | | | | | | | | | | | (#7288) `entityToUtf8` now supports every entity name and decimal and hexadecimal values from https://dev.w3.org/html5/html-author/charref. As it finally turned out, the `case` implementation generates even a smaller binary size compared to a `[(name, val)]` implementation. Additionally the procs `entityToRune` and `runeToEntity` are now available. The last one only generates numeric html entities, so it doesn't need a lookup table.
* | Resolves #5588: adds openFileStream proc that throws on failure (#7282)twetzel592018-03-042-0/+20
|/
* Fixes #6837 (#7271)cooldome2018-03-022-2/+19
|
* fixes finish.nim download bugAraq2018-03-011-1/+1
|
* bump version to 0.18.0Araq2018-03-011-2/+2
|
* Improves documentation for strformat module.Dominik Picheta2018-03-011-149/+192
| | | | | | * Adds description of the difference between ``fmt`` and ``&``. * Moves runnable examples to bottom of file. * Separates examples at the top of module better.
* make travis green againAndreas Rumpf2018-03-011-18/+18
|
* added -d:nimNoArrayToString define to allow easier porting to 0.18Araq2018-03-013-7/+27
|
* deprecate parseopt2 stdlib moduleAndreas Rumpf2018-02-282-0/+3
|
* Merge pull request #7251 from zevv/issue-6270-sleepAsync-timer-resolutionDominik Picheta2018-02-281-1/+1
|\ | | | | Allow float argument to sleepAsync() to allow sub-millisecond resolution
| * Allow float argument to sleepAsync() to allow sub-millisecond resolutionIco Doornekamp2018-02-231-1/+1
| |
* | Add bugfixes list to changelog.Dominik Picheta2018-02-281-0/+327
| |
* | Sort changelog into appropriate headings.Dominik Picheta2018-02-281-178/+242
| |
* | make tests green againAraq2018-02-281-1/+0
| |
* | some progress on #7261; VM does not support the new backwards indexingAraq2018-02-282-4/+16
| |
* | move `readPasswordFromStdin` from rdstdin to terminal (#7266)Vindaar2018-02-273-45/+54
| |
* | revert commit 6cf8a72d498f5cb8a532c2ff3259bc7aecf474ef; Windows fixes getch bugAraq2018-02-271-4/+1
| |
* | merged #6512 manually; fixes #6431Araq2018-02-272-0/+15
| |
* | Fix return (#7225)Alexander Ivanov2018-02-272-6/+10
| |
* | User pragmas hide effect specs bug fix. Fixes #7216 (#7217)cooldome2018-02-272-15/+28
| |
* | make concept tests green againAndreas Rumpf2018-02-271-1/+1
| |
* | make the allocator take a special path for allocations bigger than 2GB; ↵Araq2018-02-272-2/+30
| | | | | | | | fixes #7120