vim:highNonASCII: Use shorter syntax to compare

This commit is contained in:
2023-01-19 22:14:50 +01:00
parent 2d497c6363
commit feab64f566

View File

@@ -60,10 +60,10 @@ function! HighlightNonASCIIChars()
endif
let l:ignore_chars = '\d0-\d127'
if (match(&spelllang, '\v(^|,)de($|,)') != -1)
if (&spelllang =~ '\v(^|,)de($|,)')
let l:ignore_chars ..= 'äöüßÄÖÜ'
endif
if (match(&spelllang, '\v(^|,)fr($|,)') != -1)
if (&spelllang =~ '\v(^|,)fr($|,)')
let l:ignore_chars ..= 'àâæçèéêëîïôœùûüÿÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ'
endif