aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-08 08:16:43 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-08 08:17:49 -0400
commit6fcd96250b22b82b4043afd63182e125aef1e90a (patch)
tree7568dc8d89488bbaf2d4d56ef4a46a2f56683765
parent5165513198dbbe7415f1b8c51225ae8f822628ec (diff)
downloadrneovim-6fcd96250b22b82b4043afd63182e125aef1e90a.tar.gz
rneovim-6fcd96250b22b82b4043afd63182e125aef1e90a.tar.bz2
rneovim-6fcd96250b22b82b4043afd63182e125aef1e90a.zip
vim-patch:8.2.2838: file extension .wrap not recognized
Problem: File extension .wrap not recognized. Solution: Use dosini filetype for .wrap files. (Liam Beguin, closes vim/vim#8177) https://github.com/vim/vim/commit/e3e598e82b79a2ab5ba5e312d54e65c940e2e809
-rw-r--r--runtime/filetype.vim1
-rw-r--r--src/nvim/testdir/test_filetype.vim2
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index f0d2b36a84..474a447284 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1015,6 +1015,7 @@ au BufNewFile,BufRead *.hgrc,*hgrc setf cfg
" Meson Build system config
au BufNewFile,BufRead meson.build,meson_options.txt setf meson
+au BufNewFile,BufRead *.wrap setf dosini
" Messages (logs mostly)
au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim
index 6b1e484c3a..056b953d0b 100644
--- a/src/nvim/testdir/test_filetype.vim
+++ b/src/nvim/testdir/test_filetype.vim
@@ -148,7 +148,7 @@ let s:filename_checks = {
\ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
\ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile'],
\ 'dosbatch': ['file.bat', 'file.sys'],
- \ 'dosini': ['.editorconfig', '/etc/pacman.conf', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/pacman.conf', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file'],
+ \ 'dosini': ['.editorconfig', '/etc/pacman.conf', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/pacman.conf', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'],
\ 'dot': ['file.dot', 'file.gv'],
\ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'],
\ 'dsl': ['file.dsl'],