]> granicus.if.org Git - vim/commitdiff
patch 8.2.3909: Containerfile using prefix name not recognized v8.2.3909
authorBram Moolenaar <Bram@vim.org>
Mon, 27 Dec 2021 10:35:52 +0000 (10:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 27 Dec 2021 10:35:52 +0000 (10:35 +0000)
Problem:    Containerfile using prefix name not recognized.
Solution:   Recognize Containerfile.*.

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

index 9f8dbded78eeea8d50c171aba60c32cb4d5a4832..b9459f35fa0dd5c9bc2f87c8618cc780d3e255a5 100644 (file)
@@ -2240,7 +2240,7 @@ au BufNewFile,BufRead crontab,crontab.*,*/etc/cron.d/*            call s:StarSetf('crontab
 au BufNewFile,BufRead */etc/dnsmasq.d/*                call s:StarSetf('dnsmasq')
 
 " Dockerfile
-au BufNewFile,BufRead Dockerfile.*             call s:StarSetf('dockerfile')
+au BufNewFile,BufRead Dockerfile.*,Containerfile.*     call s:StarSetf('dockerfile')
 
 " Dracula
 au BufNewFile,BufRead drac.*                   call s:StarSetf('dracula')
index b53f56389958b168fb44d00fbd03e32e768de0f7..5c31c5fc3527aaf76355f61253259ee981ea4dbe 100644 (file)
@@ -146,7 +146,7 @@ let s:filename_checks = {
     \ 'diff': ['file.diff', 'file.rej'],
     \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'],
     \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
-    \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile', 'Dockerfile.debian'],
+    \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile', 'Dockerfile.debian', 'Containerfile.something'],
     \ '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', 'file.wrap'],
     \ 'dot': ['file.dot', 'file.gv'],
index 64086c3de5adfee6316b416016566dd49e90d620..62b646c33f5619847d2a6675b7d52218d899b164 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3909,
 /**/
     3908,
 /**/