Bram Moolenaar
c166927a32
patch 8.1.0078: "..." used inconsistently in messages
...
Problem: "..." used inconsistently in messages.
Solution: Drop the space before " ...".
2018-06-19 14:23:53 +02:00
Bram Moolenaar
d23a823669
patch 8.0.1496: clearing a pointer takes two lines
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
2018-02-10 18:45:26 +01:00
Bram Moolenaar
dff72ba445
patch 8.0.1478: unnecessary condition
...
Problem: Unnecessary condition for "len" being zero.
Solution: Remove the condition. (Dominique Pelle)
2018-02-08 22:45:17 +01:00
Bram Moolenaar
2c7b906afb
patch 8.0.1470: integer overflow when using regexp pattern
...
Problem: Integer overflow when using regexp pattern. (geeknik)
Solution: Use a long instead of int. (Christian Brabandt, closes #2251 )
2018-02-04 18:22:46 +01:00
Bram Moolenaar
890dd05492
patch 8.0.1397: pattern with \& following nothing gives an error
...
Problem: Pattern with \& following nothing gives an error.
Solution: Emit an empty node when needed.
2017-12-16 19:59:37 +01:00
Bram Moolenaar
4c22a91d20
patch 8.0.1254: undefined left shift in gethexchrs()
...
Problem: Undefined left shift in gethexchrs(). (geeknik)
Solution: Use unsigned long. (idea by Christian Brabandt, closes #2255 )
2017-11-02 22:29:38 +01:00
Bram Moolenaar
2f40d129bf
patch 8.0.1215: newer gcc warns for implicit fallthrough
...
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
2017-10-24 21:49:36 +02:00
Bram Moolenaar
983b3a5bc4
patch 8.0.0828: Coverity: may dereference NULL pointer
...
Problem: Coverity: may dereference NULL pointer.
Solution: Bail out if calloc_state() returns NULL.
2017-08-01 15:14:26 +02:00
Bram Moolenaar
1ef9bbe215
patch 8.0.0645: no error for illegal back reference in NFA engine
...
Problem: The new regexp engine does not give an error for using a back
reference where it is not allowed. (Dominique Pelle)
Solution: Check the back reference like the old engine. (closes #1774 )
2017-06-17 20:08:20 +02:00
Bram Moolenaar
fbd0b0af68
patch 8.0.0643: when a pattern search is slow Vim becomes unusable
...
Problem: When 'hlsearch' is set and matching with the last search pattern
is very slow, Vim becomes unusable. Cannot quit search by
pressing CTRL-C.
Solution: When the search times out set a flag and don't try again. Check
for timeout and CTRL-C in NFA loop that adds states.
2017-06-17 18:44:21 +02:00
Bram Moolenaar
966e58e413
patch 8.0.0623: error for invalid regexp is not very informative
...
Problem: The message "Invalid range" is used for multiple errors.
Solution: Add two more specific error messages. (Itchyny, Ken Hamada)
2017-06-05 16:54:08 +02:00
Bram Moolenaar
bb7943b792
patch 8.0.0618: NFA regex engine handles [0-z] incorrectly
...
Problem: NFA regex engine handles [0-z] incorrectly.
Solution: Return at the right point. (James McCoy, closes #1703 )
2017-06-05 13:30:06 +02:00
Bram Moolenaar
ace95989ed
patch 8.0.0520: using a function pointer while the function is known
...
Problem: Using a function pointer instead of the actual function, which we
know.
Solution: Change mb_ functions to utf_ functions when already checked for
Unicode. (Dominique Pelle, closes #1582 )
2017-03-29 17:30:27 +02:00
Bram Moolenaar
0c078fc7db
patch 8.0.0519: character classes are not well tested
...
Problem: Character classes are not well tested. They can differ between
platforms.
Solution: Add tests. In the documentation make clear which classes depend
on what library function. Only use :cntrl: and :graph: for ASCII.
(Kazunobu Kuriyama, Dominique Pelle, closes #1560 )
Update the documentation.
2017-03-29 15:31:20 +02:00
Bram Moolenaar
1c46544412
patch 8.0.0452: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case.
2017-03-12 20:10:05 +01:00
Bram Moolenaar
91acfffc1e
patch 8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
2017-03-12 19:22:36 +01:00
Bram Moolenaar
f446b48ff0
patch 8.0.0165: ubsan warns for integer overflow
...
Problem: Ubsan warns for integer overflow.
Solution: Swap two conditions. (Dominique Pelle)
2017-01-10 13:55:14 +01:00
Bram Moolenaar
de33011ec6
patch 8.0.0160: EMSG() is sometimes used where it should be IEMSG()
...
Problem: EMSG() is sometimes used for internal errors.
Solution: Change them to IEMSG(). (Dominique Pelle) And a few more.
2017-01-08 20:50:52 +01:00
Bram Moolenaar
6100d02aab
patch 8.0.0020
...
Problem: The regexp engines are not reentrant.
Solution: Add regexec_T and save/restore the state when needed.
2016-10-02 16:51:57 +02:00
Bram Moolenaar
16b3578f35
patch 7.4.2355
...
Problem: Regexp fails to match when using "\>\)\?". (Ramel)
Solution: When a state is already in the list, but addstate_here() is used
and the existing state comes later, add the new state anyway.
2016-09-09 20:29:50 +02:00
Bram Moolenaar
d563883a1f
patch 7.4.2354
...
Problem: The example that explains nested backreferences does not work
properly with the new regexp engine. (Harm te Hennepe)
Solution: Also save the end position when adding a state. (closes #990 )
2016-09-09 17:59:50 +02:00
Bram Moolenaar
edf3f97ae2
patch 7.4.2293
...
Problem: Modelines in source code are inconsistant.
Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-29 22:49:24 +02:00
Bram Moolenaar
6747fabc73
patch 7.4.1967
...
Problem: Falling back from NFA to old regexp engine does not work properly.
(fritzophrenic)
Solution: Do not restore nfa_match. (Christian Brabandt, closes #867 )
2016-06-28 22:39:16 +02:00
Bram Moolenaar
e8aee7dcf9
patch 7.4.1793
...
Problem: Some character classes may differ between systems. On OS/X the
regexp test fails.
Solution: Make this less dependent on the system. (idea by Kazunobu Kuriyama)
2016-04-26 21:39:13 +02:00
Bram Moolenaar
dc633cf827
patch 7.4.1780
...
Problem: Warnings reported by cppcheck.
Solution: Fix the warnings. (Dominique Pelle)
2016-04-23 14:33:19 +02:00
Bram Moolenaar
2a6fa564a3
patch 7.4.1708
...
Problem: New regexp engine does not work properly with EBCDIC.
Solution: Define equivalence class characters. (Owen Leibman)
2016-04-04 20:55:59 +02:00
Bram Moolenaar
7c29f38781
patch 7.4.1305
...
Problem: "\%1l^#.*" does not match on a line starting with "#".
Solution: Do not clear the start-of-line flag. (Christian Brabandt)
2016-02-12 19:08:15 +01:00
Bram Moolenaar
055409764c
patch 7.4.1213
...
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
2016-01-30 20:31:25 +01:00
Bram Moolenaar
baaa7e9ec7
patch 7.4.1199
...
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
2016-01-29 22:47:03 +01:00
Bram Moolenaar
5ad075c073
patch 7.4.937
...
Problem: Segfault reading unitialized memory.
Solution: Do not read match \z0, it does not exist. (Marius Gedminas, closes
#497 )
2015-11-24 15:18:32 +01:00
Bram Moolenaar
c2b717ebd6
patch 7.4.887
...
Problem: Using uninitialized memory for regexp with back reference.
(Dominique Pelle)
Solution: Initialize end_lnum.
2015-09-29 15:06:14 +02:00
Bram Moolenaar
2c61ec65e8
patch 7.4.776
...
Problem: Equivalence class for 'd' does not work correctly.
Solution: Fix 0x1e0f and 0x1d0b. (Dominique Pelle)
2015-07-10 19:16:34 +02:00
Bram Moolenaar
2186ffa2c7
patch 7.4.715
...
Problem: Invalid memory access when there are illegal bytes.
Solution: Get the length from the text, not from the character. (Dominique
Pelle)
2015-05-04 10:33:15 +02:00
Bram Moolenaar
50ab994ab3
patch 7.4.696
...
Problem: Not freeing memory when encountering an error.
Solution: Free the stack before returning. (Eliseo Martínez)
2015-04-13 15:28:12 +02:00
Bram Moolenaar
4f36dc3bf7
updated for version 7.4.651
...
Problem: Can't match "%>80v" properly for multi-byte characters.
Solution: Multiply the character number by the maximum number of bytes in a
character. (Yasuhiro Matsumoto)
2015-03-05 17:16:06 +01:00
Bram Moolenaar
a1d2c58985
updated for version 7.4.623
...
Problem: Crash with pattern: \(\)\{80000} (Dominique Pelle)
Solution: When the max limit is large fall back to the old engine.
2015-02-10 18:18:17 +01:00
Bram Moolenaar
168e04966c
updated for version 7.4.622
...
Problem: Compiler warning for unused argument.
Solution: Add UNUSED.
2015-02-05 20:29:59 +01:00
Bram Moolenaar
70781ee403
updated for version 7.4.613
...
Problem: The NFA engine does not implement the 'redrawtime' time limit.
Solution: Implement the time limit.
2015-02-03 16:49:24 +01:00
Bram Moolenaar
0cd040b96a
updated for version 7.4.600
...
Problem: Memory wasted in struct because of aligning.
Solution: Split pos in lnum and col. (Dominique Pelle)
2015-01-27 14:54:11 +01:00
Bram Moolenaar
aaf3047de2
updated for version 7.4.599
...
Problem: Out-of-memory error.
Solution: Avoid trying to allocate a negative amount of memory, use size_t
instead of int. (Dominique Pelle)
2015-01-27 14:40:00 +01:00
Bram Moolenaar
e0ad365498
updated for version 7.4.593
...
Problem: Crash when searching for "x\{0,90000}". (Dominique Pelle)
Solution: Bail out from the NFA engine when the max limit is much higher
than the min limit.
2015-01-27 12:59:55 +01:00
Bram Moolenaar
ef795d1a5b
updated for version 7.4.582
...
Problem: Can't match "%>80v" properly. (Axel Bender)
Solution: Correctly handle ">". (Christian Brabandt)
2015-01-18 16:46:32 +01:00
Bram Moolenaar
a20bcad15c
updated for version 7.4.577
...
Problem: Matching with a virtual column has a lot of overhead on very long
lines. (Issue 310)
Solution: Bail out early if there can't be a match. (Christian Brabandt)
Also check for CTRL-C at every position.
2015-01-14 18:40:28 +01:00
Bram Moolenaar
8c731505b0
updated for version 7.4.527
...
Problem: Still confusing regexp failure and NFA_TOO_EXPENSIVE.
Solution: NFA changes equivalent of 7.4.526.
2014-11-23 15:57:49 +01:00
Bram Moolenaar
fda3729a06
updated for version 7.4.497
...
Problem: With some regexp patterns the NFA engine uses many states and
becomes very slow. To the user it looks like Vim freezes.
Solution: When the number of states reaches a limit fall back to the old
engine. (Christian Brabandt)
2014-11-05 14:27:36 +01:00
Bram Moolenaar
2a9853925b
updated for version 7.4.474
...
Problem: AIX compiler can't handle // comment. Issue 265.
Solution: Remove that line.
2014-10-11 12:48:26 +02:00
Bram Moolenaar
fb03140730
updated for version 7.4.437
...
Problem: New and old regexp engine are not consistent.
Solution: Also give an error for "\ze*" for the old regexp engine.
2014-09-09 17:18:49 +02:00
Bram Moolenaar
2d46e6075b
updated for version 7.4.421
...
Problem: Crash when searching for "\ze*". (Urtica Dioica)
Solution: Disallow a multi after \ze and \zs.
2014-08-29 11:56:32 +02:00
Bram Moolenaar
8df5acfda9
updated for version 7.4.293
...
Problem: It is not possible to ignore composing characters at a specific
point in a pattern.
Solution: Add the %C item.
2014-05-13 19:37:29 +02:00
Bram Moolenaar
9c235069b2
updated for version 7.4.290
...
Problem: A non-greedy match followed by a branch is too greedy. (Ingo
Karkat)
Solution: Add NFA_MATCH when it is already in the state list if the position
differs.
2014-05-13 16:44:29 +02:00