aboutsummaryrefslogtreecommitdiffstats
path: root/java/org
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-07-22 17:26:11 +0200
committerMattias EngdegÄrd2023-07-22 18:26:57 +0200
commit5d2d28458d0eb378a7e94363ef716e8648ef129a (patch)
treef2ca6c379a81372444e2b5841c12cef7c84f6ed3 /java/org
parentcfdce1a19fa8a845b78e535b510932df945598ad (diff)
downloademacs-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/org')
0 files changed, 0 insertions, 0 deletions