]> granicus.if.org Git - vim/commitdiff
patch 8.2.2838: file extension .wrap not recognized v8.2.2838
authorLiam Beguin <liambeguin@gmail.com>
Thu, 6 May 2021 15:45:22 +0000 (17:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 6 May 2021 15:45:22 +0000 (17:45 +0200)
Problem:    File extension .wrap not recognized.
Solution:   Use dosini filetype for .wrap files. (Liam Beguin, closes #8177)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index ec5a46d340845bc6c740c81972ea8d2c9dd62b1b..3b7d60412d7c6c15e79fe088a3b081b8b93df9cd 100644 (file)
@@ -1019,6 +1019,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
index ae90a0a818df8fb96148ceacd0c9ce060e4bb200..2a1ce222fa2ed48cd752902f60221743f4c44bc6 100644 (file)
@@ -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'],
index d9c6540a9bb24eca913a46927071d665d1dda9eb..ed852ade88a4160999f1be2e526669670d94dfd5 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2838,
 /**/
     2837,
 /**/