diff options
| author | Mattias EngdegÄrd | 2023-07-22 17:26:11 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-07-22 18:26:57 +0200 |
| commit | 5d2d28458d0eb378a7e94363ef716e8648ef129a (patch) | |
| tree | f2ca6c379a81372444e2b5841c12cef7c84f6ed3 /java | |
| parent | cfdce1a19fa8a845b78e535b510932df945598ad (diff) | |
| download | emacs-5d2d28458d0eb378a7e94363ef716e8648ef129a.tar.gz emacs-5d2d28458d0eb378a7e94363ef716e8648ef129a.zip | |
Fix regexp character class syntax property ghost matching bug
The syntax-table-dependent regexp character classes [:space:],
[:word:] and [:punct:] always use the buffer-local syntax table for
performance reasons. Fix a bug that could cause ghost (mis)matches
from use of lingering state by constructs that do use syntax
properties, such as `\sX`.
* src/regex-emacs.c (BUFFER_SYNTAX): New macro.
(ISPUNCT, ISSPACE, ISWORD): Use BUFFER_SYNTAX instead of SYNTAX.
(regex_compile): Delete syntax table setup code that is no longer
needed.
* test/src/regex-emacs-tests.el (regex-emacs-syntax-properties):
New regression test.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions