Bram Moolenaar
a5483448cb
patch 8.1.0945: internal error when using pattern with NL in the range
...
Problem: Internal error when using pattern with NL in the range.
Solution: Use an actual newline for the range. (closes #3989 ) Also fix
error message. (Dominique Pelle)
2019-02-17 20:17:02 +01:00
Bram Moolenaar
0f77d6afd5
patch 8.1.0919: compiler warnings
...
Problem: Compiler warnings.
Solution: Add type casts. (Mike Williams)
2019-02-14 20:55:09 +01:00
Bram Moolenaar
688b3983d8
patch 8.1.0913: CI crashes when running out of memory
...
Problem: CI crashes when running out of memory.
Solution: Apply 'maxmempattern' also to new regexp engine.
2019-02-13 21:47:36 +01:00
Bram Moolenaar
15bbd6ec87
patch 8.1.0910: crash with tricky search pattern
...
Problem: Crash with tricky search pattern. (Kuang-che Wu)
Solution: Check for runnning out of memory. (closes #3950 )
2019-02-13 20:31:50 +01:00
Bram Moolenaar
9403a2168d
patch 8.1.0908: can't handle large value for %{nr}v in regexp
...
Problem: Can't handle large value for %{nr}v in regexp. (Kuang-che Wu)
Solution: Give an error if the value is too large. (closes #3948 )
2019-02-13 18:35:06 +01:00
Bram Moolenaar
5382f12c91
patch 8.1.0907: CI tests on AppVeyor are failing
...
Problem: CI tests on AppVeyor are failing.
Solution: Reduce the recursiveness limit for regexp.
2019-02-13 01:18:38 +01:00
Bram Moolenaar
5567ad48b6
patch 8.1.0905: complicated regexp causes a crash
...
Problem: Complicated regexp causes a crash. (Kuang-che Wu)
Solution: Limit the recursiveness of addstate(). (closes #3941 )
2019-02-12 23:05:46 +01:00
Bram Moolenaar
221cd9f4dd
patch 8.1.0862: no verbose version of character classes
...
Problem: No verbose version of character classes.
Solution: Add [:ident:], [:keyword:] and [:fname:]. (Ozaki Kiichi,
closes #1373 )
2019-01-31 15:34:40 +01:00
Bram Moolenaar
a12a161b8c
patch 8.1.0809: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 3.
2019-01-24 16:39:02 +01:00
Bram Moolenaar
b5443cc46d
patch 8.1.0753: printf format not checked for semsg()
...
Problem: printf format not checked for semsg().
Solution: Add GNUC attribute and fix reported problems. (Dominique Pelle,
closes #3805 )
2019-01-15 20:19:40 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
c57463c9c6
patch 8.1.0641: no check for out-of-memory when converting regexp
...
Problem: No check for out-of-memory when converting regexp.
Solution: Bail out when lalloc() returns NULL. (John Marriott)
2018-12-26 22:04:41 +01:00
Bram Moolenaar
0270f38e1a
patch 8.1.0192: executing regexp recursively fails with a crash
...
Problem: Executing regexp recursively fails with a crash.
Solution: Move global variables into "rex".
2018-07-17 05:43:58 +02:00
Bram Moolenaar
2338c32b53
patch 8.1.0170: invalid memory use with complicated pattern
...
Problem: Invalid memory use with complicated pattern. (Andy Massimino)
Solution: Reallocate the list of listids when needed. (closes #3175 )
Remove unnecessary function prototypes.
2018-07-08 19:07:19 +02:00
Bram Moolenaar
5ec7414a1c
patch 8.1.0104: can't build without the +eval feature
...
Problem: Can't build without the +eval feature.
Solution: Add #ifdef.
2018-06-23 17:14:41 +02:00
Bram Moolenaar
3c867daaf0
patch 8.1.0099: exclamation mark in error message not needed
...
Problem: Exclamation mark in error message not needed.
Solution: Remove the exclamation mark.
2018-06-23 14:34:28 +02:00
Bram Moolenaar
bcf9442307
patch 8.1.0098: segfault when pattern with \z() is very slow
...
Problem: Segfault when pattern with \z() is very slow.
Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be
able to test this. Fix that 'searchhl' resets called_emsg.
2018-06-23 14:21:42 +02:00
Bram Moolenaar
5efa0102de
patch 8.1.0097: superfluous space before exclamation mark
...
Problem: Superfluous space before exclamation mark.
Solution: Remove the space. Don't translate debug message.
2018-06-22 21:42:30 +02:00
Bram Moolenaar
9b0c5c23bd
patch 8.1.0090: "..." used inconsistently in a message
...
Problem: "..." used inconsistently in a message.
Solution: Define the message with " ..." once. (hint by Ken Takata)
2018-06-20 20:37:36 +02:00
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