From 8b7399782e7054fa76b745f51f742dfc5236902d Mon Sep 17 00:00:00 2001 From: smjonas Date: Wed, 6 Jul 2022 01:16:04 +0200 Subject: vim-patch:9.0.0041: a couple of filetype patterns do not have "*" before "/etc" Problem: A couple of filetype patterns do not have "*" before "/etc". Solution: Add the star. (Jonas Strittmatter, closes vim/vim#10662) https://github.com/vim/vim/commit/704988f0c3598c1b0cc47f3b46f1f1229312f2bc --- runtime/lua/vim/filetype.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 2874ea45e7..377e416f12 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1257,7 +1257,7 @@ local filename = { ['.*/named/db%..*'] = starsetf('bindzone'), ['cabal%.project%..*'] = starsetf('cabalproject'), ['sgml%.catalog.*'] = starsetf('catalog'), - ['/etc/hostname%..*'] = starsetf('config'), + ['.*/etc/hostname%..*'] = starsetf('config'), ['.*/etc/cron%.d/.*'] = starsetf('crontab'), ['crontab%..*'] = starsetf('crontab'), WORKSPACE = 'bzl', @@ -1766,7 +1766,7 @@ local pattern = { return require('vim.filetype.detect').fvwm(path) end), ['.*/tmp/lltmp.*'] = starsetf('gedcom'), - ['/etc/gitconfig%.d/.*'] = starsetf('gitconfig'), + ['.*/etc/gitconfig%.d/.*'] = starsetf('gitconfig'), ['.*/gitolite%-admin/conf/.*'] = starsetf('gitolite'), ['tmac%..*'] = starsetf('nroff'), ['.*/%.gitconfig%.d/.*'] = starsetf('gitconfig'), -- cgit