aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-07-06 08:14:08 +0200
committerGitHub <noreply@github.com>2022-07-06 08:14:08 +0200
commitc68f1d7263cd5296e723d8cfee914c72f58138c3 (patch)
treed825324ec6093f6f1ec3552cd446fe89e3cf358d /runtime/lua
parent606af7887bfccba026b792191b55da15a1b575fc (diff)
parent78300a1587dc43a363744da28f6d5e4ef40ca0bb (diff)
downloadrneovim-c68f1d7263cd5296e723d8cfee914c72f58138c3.tar.gz
rneovim-c68f1d7263cd5296e723d8cfee914c72f58138c3.tar.bz2
rneovim-c68f1d7263cd5296e723d8cfee914c72f58138c3.zip
Merge pull request #19242 from smjonas/vim-9.0.0042
vim-patch:9.0.{0041,0042}: filetype patterns
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/filetype.lua4
-rw-r--r--runtime/lua/vim/filetype/detect.lua1
2 files changed, 3 insertions, 2 deletions
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'),
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua
index 37922b4ebf..c6d77dac51 100644
--- a/runtime/lua/vim/filetype/detect.lua
+++ b/runtime/lua/vim/filetype/detect.lua
@@ -1323,6 +1323,7 @@ local patterns_hashbang = {
['fish\\>'] = { 'fish', { vim_regex = true } },
['gforth\\>'] = { 'forth', { vim_regex = true } },
['icon\\>'] = { 'icon', { vim_regex = true } },
+ guile = 'scheme',
}
---@private