Commit Graph

11210 Commits

Author SHA1 Message Date
Oleh Prypin
7e44c08270 Change endpos default from -1 to int.high 2015-04-09 23:51:06 +03:00
Oleh Prypin
4e83fc5867 Change capture upper bounds to inclusive 2015-04-09 23:49:50 +03:00
ReneSac
8490699224 Updated arrow like and strongSpaces in the manual
Also added `-` to the first character table and standartized spaces there.
2015-04-09 17:31:56 -03:00
Flaviu Tamas
bdd8567f50 Add CircleCI 2015-04-09 16:18:25 -04:00
ReneSac
5a524c7238 Updated the news on *arrow like* breaking change 2015-04-09 17:17:47 -03:00
ReneSac
de34640098 Add tests for arrow like ops in tstrongspaces.nim 2015-04-09 17:01:40 -03:00
ReneSac
f15b4ccb52 Restrict arrow-like operators to start with - or = 2015-04-09 17:00:11 -03:00
def
08575e2aec Add test case for infinite loop in RE 2015-04-09 17:28:26 +02:00
def
69d38f82a5 Fix infinite loop in findAll 2015-04-09 17:22:44 +02:00
def
ce0c4a8b58 Clean up re module a bit 2015-04-09 17:22:33 +02:00
Andreas Rumpf
15b5f52e8c Merge pull request #2494 from JosephTurner/fix-matching-error
Fixes matching error #2418
2015-04-09 16:37:47 +02:00
Andreas Rumpf
a2d3dff690 Merge pull request #2491 from ReneSac/strongSpacesFix
Apply strongSpaces to keyword operators too. Fix #1894.
2015-04-09 09:44:16 +02:00
Andreas Rumpf
4d0ee66f29 Merge pull request #2496 from BlaXpirit/js-header-comma
Fix JS codegen: proc header with compiletime arguments
2015-04-09 09:37:45 +02:00
Andreas Rumpf
fdadc177d4 Merge pull request #2499 from JosephTurner/fix-uint-segv
Fixes #1986 when calling sameConstant on uint
2015-04-09 09:37:05 +02:00
Andreas Rumpf
cb1c621a05 Merge pull request #2426 from def-/fix-1460
Fix #1460
2015-04-09 09:36:18 +02:00
Joseph Turner
e336da9dd9 Adds test file, for bug #1986 2015-04-09 05:00:11 +01:00
Joseph Turner
0fa82763fe Fixes #1986 when calling sameConstant on uint
The problem was saveConstant only checked the range
`nkCharLit..nkInt64Lit`, but not up to UInt. This lead to the sonsLen
method being called, where sons was never declared.

This commit changes it to `nkCharLit..nkUint64Lit`, to match the case
statements in the type definition of TNode, in ast.nim.
2015-04-09 03:59:08 +01:00
reactormonk
a4796e5f86 Merge pull request #2497 from BlaXpirit/intsets-import
Remove unneeded import os from intsets
2015-04-09 07:38:21 +05:00
Joseph Turner
54d945c512 Adds note about change to news 2015-04-09 02:53:03 +01:00
Oleh Prypin
1d7fc5fcda Don't add a comma too soon
Fixes #2495
2015-04-09 04:21:55 +03:00
Oleh Prypin
57250ad281 Test JS proc header codegen 2015-04-09 04:21:50 +03:00
Oleh Prypin
27071319c6 Remove unneeded import os from intsets 2015-04-09 03:48:35 +03:00
Joseph Turner
7ee6c72b51 Adds test case to is isMainModule block
Adds the test case that originally caused the bug, issue #2418.
2015-04-08 21:58:31 +01:00
Dominik Picheta
13a5ecda32 Updated news.txt. 2015-04-08 20:11:28 +01:00
Dominik Picheta
ea505f3613 Get rid of tkUnderscore. Map _ to tkSymbol. 2015-04-08 20:08:45 +01:00
Joseph Turner
13e5a9ea6c Fixes matching error #2418
Fixes the split iterator, the main problem was with the incrementation
of 'last'. Last was first incremented to the index of the first
character after the match, but was then incremented again at the
beginning of the while loop. This caused a problem if that character
after the first match, also matched the regular expression.
2015-04-08 17:00:28 +01:00
Jacek Sieka
76a316bd35 lib_ropes: better buffering in equalsFile, cleanups 2015-04-08 23:30:11 +08:00
Jacek Sieka
ff914b89d3 compiler_ropes: more lib_ropes porting 2015-04-08 23:30:03 +08:00
Andreas Rumpf
b48f9c4e14 Merge pull request #2484 from yglukhov/macos-sigpipe
Fixed SIGPIPE on MacOS
2015-04-08 16:03:32 +02:00
Araq
2176ea759f fixes #2489 2015-04-08 15:13:58 +02:00
Araq
4b382940f0 minor doc improvements 2015-04-08 13:49:16 +02:00
yglukhov
c2a52a9849 Fixed SIGPIPE on MacOS 2015-04-08 11:24:53 +03:00
Andreas Rumpf
dfc3f9dcd7 Merge pull request #2486 from endragor/rational-hash
Add hash proc for Rational
2015-04-08 09:58:06 +02:00
Andreas Rumpf
a4bbcf5ab0 Merge pull request #2487 from endragor/rational-cmp-procvar
Add procvar pragma to rationals.cmp
2015-04-08 09:57:14 +02:00
Andreas Rumpf
218d5567ed Merge pull request #2483 from def-/ropes
Get rid of deprecation warnings
2015-04-08 09:48:55 +02:00
ReneSac
5bbebe4a89 Added tests for keyword operators in tstrongspaces
Changed one old test to account for the effect of strong spaces on "and" and cia now.
2015-04-08 02:08:29 -03:00
ReneSac
80050a09a0 Refactored getPrecedence() after last change
The considerStrongSpaces() is now applied to almost all results, so it is better to do it at the end.
2015-04-08 02:06:18 -03:00
ReneSac
6a528bc7e9 Consider #!strongSpaces for keyword operators too.
When #!strongSpaces is on, every  operator affected by it gains priority higher than any operator not affected by it. This includes comparison operators, addition, etc.
It seems that counting spaces for keywords operators don't break anything in the parser. Of course, they can't have 0 spaces between their operands, but at least their precedence will work accordingly to their 1+ spaces.
2015-04-08 01:00:14 -03:00
Ruslan Mustakov
35f5ac2811 Added procvar pragma to rationals.cmp 2015-04-08 01:21:58 +06:00
Ruslan Mustakov
46e6fd4fa9 Added hash proc for Rational 2015-04-08 00:52:20 +06:00
def
39049e151f Get rid of deprecation warnings 2015-04-07 15:47:18 +02:00
Andreas Rumpf
d170a51f54 Merge pull request #2472 from def-/natural
Use more Natural and Positive numbers in proc parameters
2015-04-07 13:37:08 +02:00
Andreas Rumpf
d5dc0e96d0 Merge pull request #2475 from yglukhov/dom-renames
DOM types renamed.
2015-04-07 13:23:16 +02:00
Andreas Rumpf
4b98768a0a Merge pull request #2479 from def-/torational
Fix toRational
2015-04-07 01:44:43 +02:00
Andreas Rumpf
02a94fc34b Merge pull request #2480 from def-/container
Fix container example in manual a bit
2015-04-07 01:44:10 +02:00
def
7d2adbda9e Fix container example in manual a bit 2015-04-07 01:21:31 +02:00
def
bba2f7b0f1 Fix toRational 2015-04-07 00:36:16 +02:00
Araq
73add468b7 better alternative to 'override' 2015-04-07 00:13:47 +02:00
Araq
82f8948a10 added system.typed and system.untyped aliases 2015-04-07 00:06:39 +02:00
Araq
5bb3534f10 fixes #2427 2015-04-06 23:50:09 +02:00