Mercurial > vim
changeset 22462:89566aaebfb2 v8.2.1779
patch 8.2.1779: some debian changelog files are not recognized
Commit: https://github.com/vim/vim/commit/0022675aa362da0969666e48ced252b57ca1f79e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 1 16:54:07 2020 +0200
patch 8.2.1779: some debian changelog files are not recognized
Problem: Some debian changelog files are not recognized.
Solution: Add */debian/changelog. (Jason Franklin)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Oct 2020 17:00:04 +0200 |
parents | bb43a58b02a5 |
children | 05c3310118da |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -317,7 +317,7 @@ au BufNewFile,BufRead *.css setf css au BufNewFile,BufRead *.con setf cterm " Changelog -au BufNewFile,BufRead changelog.Debian,changelog.dch,NEWS.Debian,NEWS.dch +au BufNewFile,BufRead changelog.Debian,changelog.dch,NEWS.Debian,NEWS.dch,*/debian/changelog \ setf debchangelog au BufNewFile,BufRead [cC]hange[lL]og
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -128,6 +128,7 @@ let s:filename_checks = { \ 'dart': ['file.dart', 'file.drt'], \ 'datascript': ['file.ds'], \ 'dcd': ['file.dcd'], + \ 'debchangelog': ['changelog.Debian', 'changelog.dch', 'NEWS.Debian', 'NEWS.dch', '/debian/changelog'], \ 'debcontrol': ['/debian/control'], \ 'debsources': ['/etc/apt/sources.list', '/etc/apt/sources.list.d/file.list'], \ 'def': ['file.def'],