Oscar Nihlgård
236bc06b5f
Improve vm support for ref types
2018-06-26 21:25:27 +02:00
Andreas Rumpf
2a3a128e36
Merge branch 'devel' into typedesc-reforms
2018-06-26 18:33:51 +02:00
Andreas Rumpf
d08b9eb673
Merge pull request #8123 from jwollen/cfile_extensions
...
Don't remove extension of source files twice, if filenames contain dots
2018-06-26 18:31:35 +02:00
Arne Döring
0eb9da5f04
readded -d:debug flag
2018-06-26 13:34:22 +02:00
Jörg Wollenschläger
7e89f9a09a
Don't remove extension of source files twice, if filenames contain dots
2018-06-26 20:08:40 +09:00
Araq
5976bd96be
nimpretty: detect '; vs ,' style based on the first usage of the token in parameter lists
2018-06-26 01:43:41 +02:00
Arne Döring
ba3c6d022b
make basic debugging possible
2018-06-26 01:42:36 +02:00
Araq
c68d52b69d
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-06-26 01:35:12 +02:00
Araq
aef441101f
fixes docgen regression caused by refactorings; fixes #8097
2018-06-26 01:34:59 +02:00
Dominik Picheta
27b081d1f7
Merge pull request #8117 from LemonBoy/cmd-verbosity-level
...
Warn the user if the specified verbosity level is wrong
2018-06-25 17:08:12 +01:00
LemonBoy
f559e62e45
Adjust some tests to make them pass
...
The non-scoped behaviour of static blocks was exploited by those tests,
replace all the variables declared whithin one with compileTime marked
ones.
2018-06-25 15:56:13 +02:00
LemonBoy
589d6bc8d8
Warn the user if the specified verbosity level is wrong
2018-06-25 15:46:38 +02:00
Andreas Rumpf
193def6dcb
Merge pull request #8105 from LemonBoy/concept-high-low-index
...
More concept fixes
2018-06-25 15:08:22 +02:00
Andreas Rumpf
7d437a3a74
Merge pull request #7964 from LemonBoy/fix-7936
...
Fixes #7936
2018-06-25 15:06:07 +02:00
Andreas Rumpf
890086baec
Merge pull request #8072 from LemonBoy/fix-6899-6280
...
Fix minor codegen issue with static data types
2018-06-24 21:31:19 +02:00
LemonBoy
9543689306
Make static blocks introduce their own scope
...
Treat the static block as a normal block, don't leak any identifier in
the outer scope.
Fixes #5958
2018-06-24 18:27:40 +02:00
LemonBoy
bfa3d62cc1
More concept fixes
...
Fixes #7705 , #7703 , #7702
2018-06-24 15:13:34 +02:00
Andreas Rumpf
105a472dc5
Merge pull request #8084 from LemonBoy/fix-7905
...
Discriminate gensym'd type names in sigHash
2018-06-24 09:54:00 +02:00
Kaushal Modi
4c2e712056
Support setting foreground/background colors to terminal defaults ( #8073 )
...
* 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
2018-06-24 03:53:20 -04:00
Andreas Rumpf
fbac233dae
Merge pull request #8092 from FedericoCeratto/patch-10
...
Minor doc fix
2018-06-24 09:52:45 +02:00
Federico Ceratto
059ddeee10
Minor doc fix
2018-06-23 14:32:24 +01:00
Oscar Nihlgård
371f87e962
Change inconsistent paramaters in times.nim ( #8091 )
2018-06-23 09:01:55 -04:00
LemonBoy
7f0d7871ed
Use the resolved typedesc in semVarOrLet
...
By leaving the unsemanticized node in the AST we'd trip some passes like
the Transf one as seen in #7936 .
2018-06-23 13:40:11 +02:00
LemonBoy
e39baf46fc
Don't blow up with recursive objects
2018-06-22 19:47:44 +02:00
LemonBoy
af66258dca
Discriminate gensym'd type names in sigHash
...
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
2018-06-22 13:09:33 +02:00
Andreas Rumpf
0c683d28bb
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-06-22 03:19:36 +02:00
Andreas Rumpf
cc11aa9698
varints module: critical bugfix
2018-06-22 03:19:30 +02:00
Andreas Rumpf
6015749720
Merge pull request #8062 from LemonBoy/fix-7825
...
Fix constant folding for shl/not
2018-06-21 00:35:17 +02:00
Araq
1be82d96a6
nimpretty: bugfixes; refs #8078
2018-06-20 11:35:36 +02:00
Araq
9adfaa7f07
fixes #8076
2018-06-20 10:20:42 +02:00
Andreas Rumpf
2dab490ec1
Merge branch 'araq-nimpretty' into devel
2018-06-20 01:03:41 +02:00
Andreas Rumpf
2a662250d4
nimpretty: added more code claimed to not be working
2018-06-20 00:59:01 +02:00
Andreas Rumpf
0725003a8c
nimpretty: fixes more reported issues
2018-06-20 00:56:29 +02:00
Andreas Rumpf
26568dff00
nimpretty: also test on Windows/Appveyor
2018-06-19 23:48:27 +02:00
Andreas Rumpf
c3090fcb48
nimpretty: don't produce trailing whitespace; fixes the rendering of unary operators
2018-06-19 23:45:11 +02:00
LemonBoy
fb62dd1fae
Fix constant folding for shl/not
...
Since the source and destination types are the same the result should be
trimmed to fit.
2018-06-19 22:32:15 +02:00
Andreas Rumpf
837d0c7270
nimpretty: proper command line handling; added tests; travis ensures these stay green
2018-06-19 20:06:04 +02:00
gemath
db68bbe4f7
Pegs AST read access ( #8050 )
...
* 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.
2018-06-19 18:13:33 +01:00
Andreas Rumpf
3ca11def6d
Merge pull request #7771 from nim-lang/nim-in-action-fixes
...
Higher Nim in Action coverage plus regression fix.
2018-06-19 17:52:05 +02:00
LemonBoy
8508dc46c8
Fix minor codegen issue with static data types
2018-06-19 17:12:51 +02:00
Dominik Picheta
0da87939d1
Merge pull request #8047 from kaushalmodi/add-styledWrite
...
Add styledWrite macro
2018-06-19 12:13:12 +01:00
Andreas Rumpf
0c33244c23
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-06-19 12:43:21 +02:00
Andreas Rumpf
dd81d9d5b7
nimpretty improvements
2018-06-19 09:42:33 +02:00
Kaushal Modi
abbf9ba9f7
Convert styledWriteLine and styledEcho to templates
...
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.
2018-06-18 09:09:23 -04:00
Kaushal Modi
3b5b3deecd
Add styledWrite macro
...
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 .
2018-06-18 09:09:23 -04:00
mboratko
70664bd1a2
Changed tutorial documentation referring to 'constant' to 'immutable' ( #8056 )
...
* Changed tutorial documentation referring to 'constant' to 'immutable'
* Clarification regarding side-effect free procedures fo:r multiple assignments
2018-06-18 02:05:35 -04:00
Dominik Picheta
03b073d541
Workaround VM bug in strutils
2018-06-17 23:26:18 +01:00
Kaushal Modi
4616b28c7b
Add support for italic and strikethrough ANSI escape codes ( #8048 )
...
\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.
2018-06-17 12:37:41 -04:00
Andreas Rumpf
98f3daea65
nimpretty: don't touch dense binary operators
2018-06-17 14:25:23 +02:00
Andreas Rumpf
dbcdc4331a
testament: minor code formating change
2018-06-17 14:16:01 +02:00