aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorsmjonas <jonas.strittmatter@gmx.de>2022-07-06 01:16:04 +0200
committersmjonas <jonas.strittmatter@gmx.de>2022-07-06 01:25:21 +0200
commit8b7399782e7054fa76b745f51f742dfc5236902d (patch)
tree8709513e89f570e78f255ffe30d7f39927f8a236 /runtime
parentacb7a902812a064fced5ef7d389bd94cb45764bb (diff)
downloadrneovim-8b7399782e7054fa76b745f51f742dfc5236902d.tar.gz
rneovim-8b7399782e7054fa76b745f51f742dfc5236902d.tar.bz2
rneovim-8b7399782e7054fa76b745f51f742dfc5236902d.zip
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
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim4
-rw-r--r--runtime/lua/vim/filetype.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 0f67f45262..ba39bc3ae5 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2388,7 +2388,7 @@ au BufNewFile,BufRead *fvwm2rc*
au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom')
" Git
-au BufNewFile,BufRead */.gitconfig.d/*,/etc/gitconfig.d/* call s:StarSetf('gitconfig')
+au BufNewFile,BufRead */.gitconfig.d/*,*/etc/gitconfig.d/* call s:StarSetf('gitconfig')
" Gitolite
au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite')
@@ -2453,7 +2453,7 @@ au BufNewFile,BufRead neomuttrc*,Neomuttrc* call s:StarSetf('neomuttrc')
au BufNewFile,BufRead tmac.* call s:StarSetf('nroff')
" OpenBSD hostname.if
-au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config')
+au BufNewFile,BufRead */etc/hostname.* call s:StarSetf('config')
" Pam conf
au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf')
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'),