vim-patch:9.1.0011: regexp cannot match combining chars in collection (#26992)

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 vim/vim#10286
closes: vim/vim#12871

d2cc51f9a1

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-01-12 14:09:10 +08:00
committed by GitHub
parent 1813661a61
commit 3bcf8e5622
2 changed files with 141 additions and 6 deletions

View File

@@ -599,5 +599,16 @@ func Test_match_too_complicated()
set regexpengine=0
endfunc
func Test_combining_chars_in_collection()
new
for i in range(0,2)
exe "set re=".i
put =['ɔ̃', 'ɔ', '̃ ã', 'abcd']
:%s/[ɔ̃]//
call assert_equal(['', '', 'ɔ', '̃ ã', 'abcd'], getline(1,'$'))
%d
endfor
bw!
endfunc
" vim: shiftwidth=2 sts=2 expandtab