]> granicus.if.org Git - vim/commitdiff
patch 8.2.3905: Dockerfile using prefix name not recognized v8.2.3905
authorBram Moolenaar <Bram@vim.org>
Sun, 26 Dec 2021 17:31:35 +0000 (17:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 26 Dec 2021 17:31:35 +0000 (17:31 +0000)
Problem:    Dockerfile using prefix name not recognized.
Solution:   Recognize Dockerfile.*. (closes #9410)

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

index ef98589b5bda580ed62a9a58b463fbc3852ade2b..9f8dbded78eeea8d50c171aba60c32cb4d5a4832 100644 (file)
@@ -397,6 +397,7 @@ au BufNewFile,BufRead configure.in,configure.ac setf config
 au BufNewFile,BufRead *.cu,*.cuh               setf cuda
 
 " Dockerfile; Podman uses the same syntax with name Containerfile
+" Also see Dockerfile.* below.
 au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile    setf dockerfile
 
 " WildPackets EtherPeek Decoder
@@ -2238,6 +2239,9 @@ au BufNewFile,BufRead crontab,crontab.*,*/etc/cron.d/*            call s:StarSetf('crontab
 " dnsmasq(8) configuration
 au BufNewFile,BufRead */etc/dnsmasq.d/*                call s:StarSetf('dnsmasq')
 
+" Dockerfile
+au BufNewFile,BufRead Dockerfile.*             call s:StarSetf('dockerfile')
+
 " Dracula
 au BufNewFile,BufRead drac.*                   call s:StarSetf('dracula')
 
index 8fb7d92947b4c25227950df58a565972fc8d470e..b53f56389958b168fb44d00fbd03e32e768de0f7 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': ['Containerfile', 'Dockerfile', 'file.Dockerfile', 'Dockerfile.debian'],
     \ '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 809f60e679a190bbbed10d15e0960d0a18dc5868..719fe2aaa4b80d72f54a1970112d4af4cdf0e617 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3905,
 /**/
     3904,
 /**/