Mercurial > vim
changeset 26761:3dbb8fdcd179 v8.2.3909
patch 8.2.3909: Containerfile using prefix name not recognized
Commit: https://github.com/vim/vim/commit/bbdd3fb804bf69684f7b0f49d3c0a0b039daec02
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 27 10:35:52 2021 +0000
patch 8.2.3909: Containerfile using prefix name not recognized
Problem: Containerfile using prefix name not recognized.
Solution: Recognize Containerfile.*.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 11:45:03 +0100 |
parents | 9632bc9274d8 |
children | 3b3d7878f9fb |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2240,7 +2240,7 @@ au BufNewFile,BufRead crontab,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')
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'],