aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-16 08:19:42 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-04-16 08:22:37 +0800
commitfcf17c88590b4fb471821d69b1e30796129bebc1 (patch)
treecb571dd1e1f8d5c791afee7f0f57571f09c44ec8
parent6717cc5b416a94862bfa44b677066d60584cee0b (diff)
downloadrneovim-fcf17c88590b4fb471821d69b1e30796129bebc1.tar.gz
rneovim-fcf17c88590b4fb471821d69b1e30796129bebc1.tar.bz2
rneovim-fcf17c88590b4fb471821d69b1e30796129bebc1.zip
vim-patch:9.1.0323: filetype: cabal config files may not be recognized
Problem: filetype: cabal config files may not be recognized Solution: Change filetype pattern to '*/{,.}cabal/config' (Wu Zhenyu) closes: vim/vim#14498 https://github.com/vim/vim/commit/799dedec0e959d7a18df8a06d497770706d1627c Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
-rw-r--r--runtime/lua/vim/filetype.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index ed0ae6abfd..d622566d55 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1723,9 +1723,8 @@ local pattern = {
['.*%.blade%.php'] = 'blade',
['bzr_log%..*'] = 'bzr',
['.*enlightenment/.*%.cfg'] = 'c',
- ['${HOME}/cabal%.config'] = 'cabalconfig',
- ['${HOME}/%.config/cabal/config'] = 'cabalconfig',
- ['${XDG_CONFIG_HOME}/cabal/config'] = 'cabalconfig',
+ ['.*/%.cabal/config'] = 'cabalconfig',
+ ['.*/cabal/config'] = 'cabalconfig',
['cabal%.project%..*'] = starsetf('cabalproject'),
['.*/%.calendar/.*'] = starsetf('calendar'),
['.*/share/calendar/.*/calendar%..*'] = starsetf('calendar'),