Christian Brabandt
d2cc51f9a1
patch 9.1.0011: regexp cannot match combining chars in collection
...
Problem: regexp cannot match combining chars in collection
Solution: Check for combining characters in regex collections for the
NFA and BT Regex Engine
Also, while at it, make debug mode work again.
fixes #10286
closes : #12871
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-04 22:54:08 +01:00
Bram Moolenaar
01105b37a1
patch 9.0.0951: trying every character position for a match is inefficient
...
Problem: Trying every character position for a match is inefficient.
Solution: Use the start position of the match ignoring "\zs".
2022-11-26 11:47:10 +00:00
Paul Ollis
6574577cac
patch 8.2.5057: using gettimeofday() for timeout is very inefficient
...
Problem: Using gettimeofday() for timeout is very inefficient.
Solution: Set a platform dependent timer. (Paul Ollis, closes #10505 )
2022-06-05 16:55:54 +01:00
Bram Moolenaar
4aaf3e7f4d
patch 8.2.5046: vim_regsub() can overwrite the destination
...
Problem: vim_regsub() can overwrite the destination.
Solution: Pass the destination length, give an error when it doesn't fit.
2022-05-30 20:58:55 +01:00
Bram Moolenaar
33d3ce640c
patch 8.2.4808: unused item in engine struct
...
Problem: Unused item in engine struct.
Solution: Remove "expr". Add comment with tags.
2022-04-23 10:41:35 +01:00
kylo252
9dac9b1751
patch 8.2.4639: not sufficient parenthesis in preprocessor macros
...
Problem: Not sufficient parenthesis in preprocessor macros.
Solution: Add more parenthesis. (closes #10031 )
2022-03-27 20:05:17 +01:00
Bram Moolenaar
9bf703d46a
patch 8.1.2366: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-11-30 19:44:38 +01:00
Bram Moolenaar
ad3ec76bb8
patch 8.1.1194: typos and small problems in source files
...
Problem: Typos and small problems in source files.
Solution: Small fixes.
2019-04-21 00:00:13 +02: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
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
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
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
2af78a1408
updated for version 7.4.262
...
Problem: Duplicate code in regexec().
Solution: Add line_lbr flag to regexec_nl().
2014-04-23 19:06:37 +02:00
Bram Moolenaar
16619a235b
updated for version 7.3.1165
...
Problem: HP-UX compiler can't handle zero size array. (Charles Cooper)
Solution: Make the array one item big.
2013-06-11 18:42:36 +02:00
Bram Moolenaar
473de61b04
updated for version 7.3.1149
...
Problem: New regexp engine: Matching plain text could be faster.
Solution: Detect a plain text match and handle it specifically. Add
vim_regfree().
2013-06-08 18:19:48 +02:00
Bram Moolenaar
decd9540fd
updated for version 7.3.1139
...
Problem: New regexp engine: negated flag is hardly used.
Solution: Add separate _NEG states, remove negated flag.
2013-06-07 16:31:50 +02:00
Bram Moolenaar
d89616ebb8
updated for version 7.3.1133
...
Problem: New regexp engine is a bit slow.
Solution: Skip ahead to a character that must match. Don't try matching a
"^" patter past the start of line.
2013-06-06 18:46:06 +02:00
Bram Moolenaar
dd2ccdf6ea
updated for version 7.3.1106
...
Problem: New regexp engine: saving and restoring lastlist in the states
takes a lot of time.
Solution: Use a second lastlist value for the first recursive call.
2013-06-03 12:17:04 +02:00
Bram Moolenaar
69afb7bf0a
updated for version 7.3.1092
...
Problem: Can't build with regexp debugging. NFA debug output shows wrong
pattern.
Solution: Fix debugging code for recent changes. Add the pattern to the
program.
2013-06-02 15:55:55 +02:00
Bram Moolenaar
efb23f26e8
updated for version 7.3.1090
...
Problem: New regexp engine does not support \z1 .. \z9 and \z(.
Solution: Implement the syntax submatches.
2013-06-01 23:02:54 +02:00
Bram Moolenaar
428e987b61
updated for version 7.3.1071
...
Problem: New regexp engine: backreferences don't work correctly.
Solution: Add every possible start/end position on the state stack.
2013-05-30 17:05:39 +02:00
Bram Moolenaar
423532e10d
updated for version 7.3.1039
...
Problem: New regexp engine does not support \%23c, \%<23c and the like.
Solution: Implement them. (partly by Yasuhiro Matsumoto)
2013-05-29 21:14:42 +02:00
Bram Moolenaar
5714b80032
updated for version 7.3.1033
...
Problem: "\1" .. "\9" are not supported in the new regexp engine.
Solution: Implement them. Add a few more tests.
2013-05-28 22:03:20 +02:00
Bram Moolenaar
963fee2d69
updated for version 7.3.1028
...
Problem: New regexp performance: Copying a lot of position state.
Solution: Only copy the sub-expressions that are being used.
2013-05-26 21:47:28 +02:00
Bram Moolenaar
57a285b105
updated for version 7.3.1024
...
Problem: New regexp: End of matching pattern not set correctly. (Cesar
Romani)
Solution: Quit the loop after finding the match. Store nfa_has_zend in the
program.
2013-05-26 16:57:28 +02:00
Bram Moolenaar
4b41706477
updated for version 7.3.1017
...
Problem: Zero width match changes length of match.
Solution: For a zero width match put new states in the current position in
the state list.
2013-05-25 20:19:50 +02:00
Bram Moolenaar
f47ca63dbc
updated for version 7.3.1016
...
Problem: Unused field in nfa_state.
Solution: Remove lastthread.
2013-05-25 15:31:05 +02:00
Bram Moolenaar
fbc0d2ea1e
updated for version 7.3.970
...
Problem: Syntax highlighting can be slow.
Solution: Include the NFA regexp engine. Add the 'regexpengine' option to
select which one is used. (various authors, including Ken Takata,
Andrei Aiordachioaie, Russ Cox, Xiaozhou Liua, Ian Young)
2013-05-19 19:40:29 +02:00
Bram Moolenaar
bbebc85750
updated for version 7.0109
2005-07-18 21:47:53 +00:00
Bram Moolenaar
3b56eb3d31
updated for version 7.0107
2005-07-11 22:40:32 +00:00
Bram Moolenaar
071d4279d6
updated for version 7.0001
2004-06-13 20:20:40 +00:00