Oleh Prypin
81d2be4aa6
Make RST recognize hyperlinks with two underscores
...
Fixes #2538
2015-04-13 19:51:27 +03:00
Oleh Prypin
e6dbb350a9
Update documentation
2015-04-13 10:45:15 +03:00
Varriount
6c78f1a43d
Merge pull request #2531 from endragor/lexing-doc-typo
...
Fix typo in lexing.txt: UINT8_LIT -> UINT_LIT
2015-04-12 23:56:03 -04:00
apense
9a629d72e8
Added peeking procedures to streams
...
Adds peeking to streams, which is just like reading, but at the end, the stream position hasn't changed.
2015-04-12 20:38:35 -04:00
Oleh Prypin
c31870d311
Change flags to inline
...
Flags can no longer be specified in a 2nd argument.
Now they are part of the regular expression string.
2015-04-13 00:09:11 +03:00
Josep Sanjuas
d0ff06b8c1
Generalize mean to other types
2015-04-12 19:40:30 +02:00
Flaviu Tamas
90d17c4e03
Improve performance
...
Removing ANCHORED means that after findIter is unable to find any more matches,
it doesn't bother searching unless there are some promising 0-len matches. This
significantly improves performance on problems like
`"abccccccccccccc".find(re"a")`. Previously, each "c" would require a call to
pcre_exec, which would iterate over [index_of_c..string.len], a O(n^2) process!
2015-04-12 10:33:21 -04:00
Oleh Prypin
8b8224ecaf
Add tests for empty or non-empty match
2015-04-12 17:31:43 +03:00
Oleh Prypin
02c6e7306f
Fix skipping an empty match at the end
2015-04-12 15:18:16 +03:00
Ruslan Mustakov
0f8a6cbbe4
Fixed typo in lexing.txt: UINT8_LIT -> UINT_LIT
2015-04-12 13:12:40 +06:00
Kay Zheng
a7df3ffbe0
Ignore EvError in asyncdispatch.poll(...) for non-windows systems, so that exceptions can be raised from send(...) and recv(...)
2015-04-12 12:59:56 +08:00
ReneSac
06617bbb76
Minor fixes for arrow like change patch
...
Don't use ^ operator yet for compatibility with older compilers.
Moved arrow like explanation, and fix precedence description on the text in the manual.
Fixed typo in news.
2015-04-11 17:22:09 -03:00
Flaviu Tamas
ec1758509c
Add longer flags
...
It is now possible to use longer flags instead of the short one-letter ones.
2015-04-11 14:17:53 -04:00
Flaviu Tamas
4ce267c08d
Fix getinfo overflows
2015-04-11 11:15:51 -04:00
Flaviu Tamas
bc27d06e39
Use docweave
...
The readme file is now generated from the contents of the nre module.
2015-04-11 10:55:50 -04:00
Flaviu Tamas
0dc86145ea
Convert readme to RST
2015-04-11 08:51:33 -04:00
Araq
28ecf72f79
fixes #2498
2015-04-11 10:01:13 +02:00
Araq
06feaef64a
fixes #1658
2015-04-11 10:01:12 +02:00
Araq
a1b937ab33
fixes #1691
2015-04-11 10:01:11 +02:00
Araq
c8dbeaa09b
make test green
2015-04-11 10:01:11 +02:00
Araq
d89a20cc1d
fixes #2509
2015-04-11 10:01:10 +02:00
Araq
670367e13b
fixes #2508
2015-04-11 10:01:10 +02:00
Araq
65e01c8b68
make test green
2015-04-11 10:01:09 +02:00
Araq
1406f92a5f
re-enable git hash compiler info
2015-04-11 10:01:08 +02:00
reactormonk
e4ee6ef4a3
Merge pull request #2516 from novist/doc-compiletime-variable
...
Doc: compileTime pragma can be used on variable
2015-04-11 12:53:43 +05:00
novist
b8189cd770
Doc: compileTime pragma can be used on variable
2015-04-11 10:35:43 +03:00
ReneSac
34997292f4
Changing the rule for arrow like operators again.
2015-04-10 23:59:17 -03:00
Flaviu Tamas
4b42ddfdfa
Fix result shadowing warning
2015-04-10 14:01:05 -04:00
Flaviu Tamas
62a8ab9006
Throw an exception when replacing with a nil value
2015-04-10 13:54:24 -04:00
Flaviu Tamas
e6d662e6b9
Fix potential buffer overflow
...
Under certain circumstances, it would be possible for a too-large number sent
cause a buffer overflow by passing a too-large endpos.
2015-04-10 13:18:08 -04:00
Oleh Prypin
b4337e1b0f
Fix a flag in PCRE: change to 'usePcreHeader'
2015-04-10 17:50:43 +03:00
fowlmouth
f852988d11
Merge branch 'devel' of github.com:Araq/Nim into patch2
2015-04-10 09:23:33 -05:00
Oleh Prypin
3aa7f7f491
Change datatypes and remove broken editable procs from PCRE
2015-04-10 17:18:59 +03:00
Flaviu Tamas
eca9597635
Merge pull request #10 from BlaXpirit/fix-skip-zero
...
Fix zero-length matches for multibyte characters
2015-04-10 09:44:54 -04:00
Oleh Prypin
fd8c6d0a32
Fix deprecation warnings in re
2015-04-10 16:12:54 +03:00
Oleh Prypin
7d06fc2165
Update and improve PCRE wrapper
...
- Version 8.36 (was 8.31)
- Support for editable functions
- Name arguments according to docs
- Cosmetics
2015-04-10 16:08:25 +03:00
Araq
4d8750ae8c
fixes #2448
2015-04-10 14:40:53 +02:00
Oleh Prypin
16577f8167
Fix zero-length matches for multibyte characters
2015-04-10 15:34:22 +03:00
Araq
8ddb58aecc
fixes bootstrapping on windows
2015-04-10 14:17:07 +02:00
Araq
49471440eb
fixes #2481
2015-04-10 14:03:49 +02:00
Araq
10c1d7f519
minor lexer cleanups; fixes #2504
2015-04-10 14:03:48 +02:00
Araq
3a9500f7b1
fixes #2500
2015-04-10 14:03:47 +02:00
Andreas Rumpf
6e6c6446a4
Merge pull request #2329 from def-/readline
...
Speed up readLine by using getc_unlocked
2015-04-10 14:02:22 +02:00
Andreas Rumpf
badd1a79f0
Merge pull request #2493 from arnetheduck/more-comp-ropes
...
More comp ropes
2015-04-10 13:59:35 +02:00
Andreas Rumpf
2b8f8bbf19
Merge pull request #2502 from def-/pcre
...
Fix infinite loop in re.findAll
2015-04-10 01:16:01 +02:00
ReneSac
d71f1b98e0
Restore newline at the end of the file.
2015-04-09 18:51:30 -03:00
Flaviu Tamas
a665279192
Merge pull request #9 from BlaXpirit/master
...
Make splitting an empty string give 1 empty result
2015-04-09 17:23:03 -04:00
Oleh Prypin
1fe69b94c9
Make splitting an empty string give 1 empty result
2015-04-10 00:19:00 +03:00
Flaviu Tamas
6c213802f0
Merge pull request #8 from BlaXpirit/incl-indices
...
Change capture upper bounds to inclusive
2015-04-09 17:15:34 -04:00
Oleh Prypin
2f0375c4c8
Change endpos to inclusive
2015-04-09 23:51:17 +03:00