Timothee Cour
f96e2764c4
nimsuggest somehow transforms \n into \\x0A, not \x0A
...
/cc @Araq
2018-11-01 14:22:09 -07:00
Alexandros Naskos
eb3c9e1d1c
Added "typeof" and "restrict" to special words. ( #9226 )
...
* Added "typeof" and "restrict" to special words.
* Added C and C++ reserved keyword as object field identifier test
2018-11-01 17:24:02 +01:00
Neelesh Chandola
dbfc5c5a44
Fixes https://github.com/nim-lang/Nim/issues/6836 ( #9595 )
2018-11-01 17:23:30 +01:00
PMunch
e9ed4dccb6
Quote do now works with result in block ( #7343 )
...
* Fix result not being able to use in quote do
This fixes the annoying issue of not be able to use result inside a
quote do block. It works by a simple trick. The quote do mechanic is
based on dynamically creating a template and immediately calling it with
the arguments found within the quote do block. Since this is called in
the scope of the macro the result variable is shadowed. This trick works
by changing all occurences of result (which shouldn't cause any issues
as result isn't used for anything else for the same reason) to another
name and then passing in an IdentNode with result as a named parameter
with that name.
Note that currently this just replaces it with a fixed named variable
"res" which should be changed to a non-colliding, dynamically created
name.
* Fix hard coded parameter "res" to anonymous symbol
This fixes the hard coded parameter "res" to be an anonymous symbol
instead so it won't collide with other parts of the argument list.
* Add test case for result in quote do block
A simple test case based on GitHub issue #7323 on how you can't put
result in a quote do block. This test verifies that it actually works
correctly now.
* Add test for explicit capturing of result
* Rebased against devel
2018-10-31 22:14:29 +01:00
Arne Döring
d56312624e
Merge pull request #9586 from b3liever/fix-hypot-js
...
Fix #9585 hypot in js
2018-10-31 21:53:40 +01:00
Arne Döring
0059f16dfb
Merge pull request #9511 from krux02/krux02-devel
...
Krux02 devel
2018-10-31 17:12:36 +01:00
Arne Döring
80843373ba
changelog entry
2018-10-31 14:29:40 +01:00
B3liever
8a1d52fa48
Fix #9585 hypot in js
2018-10-31 14:09:39 +02:00
Arne Döring
84db658eb4
fix typo
2018-10-31 10:44:44 +01:00
Miran
313bbf5b9b
Change documentation details ( closes #5525 ) ( #9542 )
2018-10-31 07:40:05 +01:00
Tony G
4bb472effd
fix #8777 add missing http methods in httpClient
2018-10-30 21:01:09 -04:00
Araq
48f73aaa1c
docgen: fixes #9432 [backport]
2018-10-31 00:19:24 +01:00
Araq
8f28be0dd8
docgen: make tests green again [backport]
2018-10-30 23:30:02 +01:00
Araq
c9e8b899ed
docgen: fixes #9235 [backport]
2018-10-30 23:29:47 +01:00
Araq
b138e89772
contributing guide: document the new [backport] convention
2018-10-30 22:45:38 +01:00
Araq
1dd1d66f16
system.nim: workaround for the fixed documentation generator
2018-10-30 21:58:59 +01:00
Araq
eb03684c57
docgen: fixes #9169 [backport]
2018-10-30 21:58:59 +01:00
Araq
895ac5bec4
nre: don't use the deprecated import syntax
2018-10-30 21:58:59 +01:00
Arne Döring
9c6620eba1
Merge pull request #9570 from b3liever/macrosfixname
...
Fix name set and get procs in macros (fixes #9569 )
2018-10-30 17:15:37 +01:00
Arne Döring
e653121633
fixes #9557
2018-10-30 17:13:02 +01:00
Araq
7ae6b7e9a2
make more tests green for C++; refs #7870
2018-10-30 16:52:33 +01:00
Araq
b3d80dac9c
make tmissingbracket compile for C++; refs #7870
2018-10-30 16:52:33 +01:00
Arne Döring
1ec5c6fdf5
Sizeof alignof fixes ( #9568 )
...
fixes #9545
2018-10-30 16:41:06 +01:00
Arne Döring
cf3d206b9e
undo try break
2018-10-30 16:35:54 +01:00
Araq
432a4d1787
fixes #5549
2018-10-30 15:30:33 +01:00
Araq
e844e536bf
Nim style checker: document the switch; fixes #9564
2018-10-30 15:03:28 +01:00
Araq
5c25b93898
change system.nim to adhere to the style guide
2018-10-30 15:03:28 +01:00
Araq
05964b95e4
change system.nim to adhere to the style guide
2018-10-30 15:03:28 +01:00
B3liever
fb75e3bb49
Fix names set and get procs in macros
2018-10-30 15:42:48 +02:00
Arne Döring
bab9e0020a
fixes #5549
2018-10-30 13:50:06 +01:00
Arne Döring
f84bf45f17
set code owner
2018-10-30 13:50:06 +01:00
Arne Döring
07f76c3ef9
fix compiler crash
2018-10-30 13:50:06 +01:00
Flaviu Tamas
45040a8716
Merge pull request #9539 from flaviut/ft-remove-nre-floats
...
Eliminate floating point arithmatic in nre
2018-10-30 07:29:51 -04:00
Araq
331d1a6ca1
fixes regressions
2018-10-30 11:28:45 +01:00
Araq
f6def4286c
fixes #8603
2018-10-30 11:28:45 +01:00
Ahmed T. Youssef
df68c2da49
write logs to stderr instead of stdout; fixes #9547 ( #9554 )
2018-10-30 07:36:31 +01:00
rec
9899c4525c
Add parsing empty attribs to htmlparser ( #9559 )
2018-10-30 06:58:39 +01:00
jcosborn
69c0a9c6fb
getTypeImpl now returns pragmas for object types ( #9538 )
2018-10-30 06:41:12 +01:00
Neelesh Chandola
e377c55c10
Cleanup installer.ini ( #9558 )
2018-10-30 06:31:17 +01:00
Ian
5ddeead29c
#9348 Merge some small test files ( #9561 )
...
* Consolidated types issue tests
* Consolidated vm issue tests
2018-10-30 06:30:39 +01:00
Miran
1b17c9f693
More descriptive names of test files ( #9531 )
...
* change generic `tissues` name to more specific
* change `tvarious` to more specific names
2018-10-29 17:07:27 +01:00
Dominik Picheta
8d9866a6d4
Maps out keyword to an nnkIdent. Fixes #6011 . ( #9536 )
2018-10-29 16:33:56 +01:00
Araq
e44df5dca6
fixes #7667 ; underlying issue is that dot calls in generics have no concept of 'friend' symbols, will be addressed later
2018-10-29 13:46:55 +01:00
Arne Döring
5ebd111f7f
Merge pull request #9541 from narimiran/fix-6986
...
Closes #6986
2018-10-29 12:01:22 +01:00
rec
9fd0a71e4d
Make htmlparser parse unquoted attrib values ( #9537 )
...
Fixes #6154
2018-10-29 11:10:00 +01:00
Araq
680f5eeb15
fixes #9540
2018-10-29 10:06:36 +01:00
Araq
9d31dfdf1a
fixes tnre regression
2018-10-29 10:06:36 +01:00
recloser
e14f5025a2
Add runnable examples for strmisc procs and a better doc for expandTabs
2018-10-29 04:59:05 +01:00
narimiran
80b78b50d0
more examples for mod and div, plus corrections [ci skip]
2018-10-28 22:37:58 +00:00
Clyybber
2aa7eeda39
actually do ceiling division, not a similar operation
...
Co-Authored-By: flaviut <tamasflaviu@gmail.com >
2018-10-28 14:34:05 -04:00