]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0731: inconsistent case sensitive extension matching v9.1.0731
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>
Sun, 15 Sep 2024 17:23:25 +0000 (19:23 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 15 Sep 2024 17:23:25 +0000 (19:23 +0200)
commit59b089c9df238ce940b3c593295bc511e201399a
tree082fa689be204248e8cef0f2789fd3851be9754d
parent4d427d4cab9c942d6871c50f714e18d7edcfe135
patch 9.1.0731: inconsistent case sensitive extension matching

Problem:  inconsistent case sensitive extension matching
Solution: unify case sensitive extension matching (Evgeni Chasnovski).

There are different approaches of how extensions are matched with
respect to case sensitivity. In particular, '\c' flag is used in pattern
whereas in most places case sensitive matching is guarded behind
`has("fname_case")` condition.

Replace all instances of '\c' with an explicit case sensitive pattern
variants guarded by `has("fname_case")`. Strictly speaking, this is a
breaking change because only two (most common and prevailingly tested)
variants are now matched: upper first letter and upper all letters.

closes: #15672

Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c