summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #8108 from LemonBoy/fix-5958Andreas Rumpf2018-06-265-15/+23
|\ | | | | Make `static` blocks introduce their own scope
| * Adjust some tests to make them passLemonBoy2018-06-253-15/+12
| | | | | | | | | | | | The non-scoped behaviour of static blocks was exploited by those tests, replace all the variables declared whithin one with compileTime marked ones.
| * Make `static` blocks introduce their own scopeLemonBoy2018-06-242-0/+11
| | | | | | | | | | | | | | Treat the static block as a normal block, don't leak any identifier in the outer scope. Fixes #5958
* | Merge pull request #7800 from GULPF/vm-nil-fixAndreas Rumpf2018-06-264-23/+79
|\ \ | | | | | | VM fix for nil assignment
| * | Improve vm support for ref typesOscar Nihlgård2018-06-264-23/+79
|/ /
* | Merge pull request #8123 from jwollen/cfile_extensionsAndreas Rumpf2018-06-262-2/+2
|\ \ | | | | | | Don't remove extension of source files twice, if filenames contain dots
| * | Don't remove extension of source files twice, if filenames contain dotsJörg Wollenschläger2018-06-262-2/+2
|/ /
* | nimpretty: detect '; vs ,' style based on the first usage of the token in ↵Araq2018-06-262-2/+8
| | | | | | | | parameter lists
* | Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-06-2615-52/+248
|\ \
| * \ Merge pull request #8117 from LemonBoy/cmd-verbosity-levelDominik Picheta2018-06-251-1/+4
| |\ \ | | | | | | | | Warn the user if the specified verbosity level is wrong
| | * | Warn the user if the specified verbosity level is wrongLemonBoy2018-06-251-1/+4
| | | |
| * | | Merge pull request #8105 from LemonBoy/concept-high-low-indexAndreas Rumpf2018-06-254-4/+35
| |\ \ \ | | | | | | | | | | More concept fixes
| | * | | More concept fixesLemonBoy2018-06-244-4/+35
| | | |/ | | |/| | | | | | | | | Fixes #7705, #7703, #7702
| * | | Merge pull request #7964 from LemonBoy/fix-7936Andreas Rumpf2018-06-251-2/+9
| |\ \ \ | | |_|/ | |/| | Fixes #7936
| | * | Use the resolved typedesc in semVarOrLetLemonBoy2018-06-231-2/+9
| | | | | | | | | | | | | | | | | | | | By leaving the unsemanticized node in the AST we'd trip some passes like the Transf one as seen in #7936.
| * | | Merge pull request #8072 from LemonBoy/fix-6899-6280Andreas Rumpf2018-06-241-2/+2
| |\ \ \ | | |_|/ | |/| | Fix minor codegen issue with static data types
| | * | Fix minor codegen issue with static data typesLemonBoy2018-06-191-2/+2
| | | |
| * | | Merge pull request #8084 from LemonBoy/fix-7905Andreas Rumpf2018-06-242-3/+37
| |\ \ \ | | | | | | | | | | Discriminate gensym'd type names in sigHash
| | * | | Don't blow up with recursive objectsLemonBoy2018-06-222-4/+18
| | | | |
| | * | | Discriminate gensym'd type names in sigHashLemonBoy2018-06-222-2/+22
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The root cause of #7905 lies in the codegen phase. The two template instantiations generate two different MyType types with different members but same t.sym.name leading the caching mechanism to confuse the two. Fixes #7905
| * | | Support setting foreground/background colors to terminal defaults (#8073)Kaushal Modi2018-06-241-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support setting foreground/background colors to terminal defaults Adds fgDefault to ForegroundColor and bgDefault to BackgroundColor enums. For Windows console, the default foreground color is assumed to be white, and the default background color black. * Add default fg/bg color caching for Windows Console
| * | | Merge pull request #8092 from FedericoCeratto/patch-10Andreas Rumpf2018-06-241-1/+1
| |\ \ \ | | | | | | | | | | Minor doc fix
| | * | | Minor doc fixFederico Ceratto2018-06-231-1/+1
| |/ / /
| * | | Change inconsistent paramaters in times.nim (#8091)Oscar Nihlgård2018-06-231-28/+19
| | | |
| * | | Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2018-06-228-17/+154
| |\ \ \
| | * \ \ Merge pull request #8062 from LemonBoy/fix-7825Andreas Rumpf2018-06-213-2/+101
| | |\ \ \ | | | | | | | | | | | | Fix constant folding for shl/not
| | | * | | Fix constant folding for shl/notLemonBoy2018-06-193-2/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the source and destination types are the same the result should be trimmed to fit.
| * | | | | varints module: critical bugfixAndreas Rumpf2018-06-221-1/+8
| | | | | |
* | | | | | fixes docgen regression caused by refactorings; fixes #8097Araq2018-06-261-5/+3
| |/ / / / |/| | | |
* | | | | nimpretty: bugfixes; refs #8078Araq2018-06-204-5/+42
| | | | |
* | | | | fixes #8076Araq2018-06-201-10/+11
|/ / / /
* | | | Merge branch 'araq-nimpretty' into develAndreas Rumpf2018-06-209-24/+669
|\ \ \ \
| * | | | nimpretty: added more code claimed to not be workingAndreas Rumpf2018-06-202-0/+26
| | | | |
| * | | | nimpretty: fixes more reported issuesAndreas Rumpf2018-06-203-3/+10
| | | | |
| * | | | nimpretty: also test on Windows/AppveyorAndreas Rumpf2018-06-191-0/+2
| | | | |
| * | | | nimpretty: don't produce trailing whitespace; fixes the rendering of unary ↵Andreas Rumpf2018-06-193-11/+16
| | | | | | | | | | | | | | | | | | | | operators
| * | | | nimpretty: proper command line handling; added tests; travis ensures these ↵Andreas Rumpf2018-06-198-17/+622
| | | | | | | | | | | | | | | | | | | | stay green
* | | | | Pegs AST read access (#8050)gemath2018-06-193-2/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make PEG AST nodes readable from outside the module. * Added a test module for the pegs stdlib module. * Edited changelog. * Renamed ``sons`` iterator to ``items``, added ``pairs``, inlined both. * Updated entry and moved it to the right category.
* | | | | Merge pull request #7771 from nim-lang/nim-in-action-fixesAndreas Rumpf2018-06-1912-1/+646
|\ \ \ \ \ | |_|_|/ / |/| | | | Higher Nim in Action coverage plus regression fix.
| * | | | Workaround VM bug in strutilsDominik Picheta2018-06-172-4/+5
| | | | |
| * | | | Adds smaller code samples from Chapters 1-3 to the tester.Dominik Picheta2018-06-1711-1/+642
| | | | |
| * | | | Exports unicode.toUpper/toLower in strutils module.Dominik Picheta2018-06-171-0/+3
| | | | |
* | | | | Merge pull request #8047 from kaushalmodi/add-styledWriteDominik Picheta2018-06-191-25/+59
|\ \ \ \ \ | |_|/ / / |/| | | | Add styledWrite macro
| * | | | Convert styledWriteLine and styledEcho to templatesKaushal Modi2018-06-181-35/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes a bug in the styledWriteLine behavior where the background color leaked onto the next newline if that command did not end with resetStyle. Now it is not necessary to end styledWriteLine calls that set BackgroundColor to end in resetStyle.
| * | | | Add styledWrite macroKaushal Modi2018-06-181-12/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: - Move the tests block to the end of the file - Fix the older tests - Add tests for existing styledEcho - Add new tests for styledWrite Fixes https://github.com/nim-lang/Nim/issues/8046.
* | | | | Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2018-06-192-5/+9
|\| | | |
| * | | | Changed tutorial documentation referring to 'constant' to 'immutable' (#8056)mboratko2018-06-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed tutorial documentation referring to 'constant' to 'immutable' * Clarification regarding side-effect free procedures fo:r multiple assignments
| * | | | Add support for italic and strikethrough ANSI escape codes (#8048)Kaushal Modi2018-06-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | \e[3m -> italic \e[9m -> strikethrough On terminals not supporting italic text, the text is shown in reverse instead, and on terminals not supporting strikethrough text, the text is shown as is.
* | | | | nimpretty improvementsAndreas Rumpf2018-06-193-43/+60
| | | | |
* | | | | nimpretty: don't touch dense binary operatorsAndreas Rumpf2018-06-171-9/+13
|/ / / /