diff options
author | Philipp Stephani <phst@google.com> | 2017-01-06 15:56:51 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-01-06 20:12:48 +0100 |
commit | 512e9886be693f61f9d1932f19461bf4482fba51 (patch) | |
tree | 84a9576c26b01fc8990e9290a3e52a3cb38c4550 /test/src/regex-tests.el | |
parent | 8f0376309ee37e4f1da21d78971c4df2df5fd7b6 (diff) | |
download | emacs-512e9886be693f61f9d1932f19461bf4482fba51.tar.gz emacs-512e9886be693f61f9d1932f19461bf4482fba51.tar.bz2 emacs-512e9886be693f61f9d1932f19461bf4482fba51.zip |
Add support for Unicode whitespace in [:blank:]
See Bug#25366.
* src/character.c (blankp): New function for checking Unicode
horizontal whitespace.
* src/regex.c (ISBLANK): Use 'blankp' for non-ASCII horizontal
whitespace.
(BIT_BLANK): New bit for range table.
(re_wctype_to_bit, execute_charset): Use it.
* test/lisp/subr-tests.el (subr-tests--string-match-p--blank): Add
unit test for [:blank:] character class.
* test/src/regex-tests.el (test): Adapt unit test.
* doc/lispref/searching.texi (Char Classes): Document new Unicode
behavior for [:blank:].
Diffstat (limited to 'test/src/regex-tests.el')
-rw-r--r-- | test/src/regex-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/regex-tests.el b/test/src/regex-tests.el index 74c27111cfe..db187fd4a6a 100644 --- a/test/src/regex-tests.el +++ b/test/src/regex-tests.el @@ -80,7 +80,7 @@ character) must match a string \"\u2420\"." ("print" "abcłąka\u2620-, " "\t\n\1") ("space" " \t\n\u2001" "abcABCł0123") - ("blank" " \t" "\n\u2001") + ("blank" " \t\u2001" "\n") ("ascii" "abcABC012 \t\n\1" "łą\u2620") ("nonascii" "łą\u2622" "abcABC012 \t\n\1") |