1
0
forked from aniani/vim

patch 8.2.3726: README file in a config directory gets wrong filetype

Problem:    README file in a config directory gets wrong filetype.
Solution:   Match README before patterns that match everything in a directory.
This commit is contained in:
Bram Moolenaar
2021-12-03 11:44:03 +00:00
parent 8658c759f0
commit c903695be5
3 changed files with 13 additions and 6 deletions

View File

@@ -502,7 +502,7 @@ let s:filename_checks = {
\ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl'],
\ 'texinfo': ['file.texinfo', 'file.texi', 'file.txi'],
\ 'texmf': ['texmf.cnf'],
\ 'text': ['file.text', 'README', '/usr/share/doc/bash-completion/AUTHORS'],
\ 'text': ['file.text', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README'],
\ 'tf': ['file.tf', '.tfrc', 'tfrc'],
\ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
\ 'tilde': ['file.t.html'],

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3726,
/**/
3725,
/**/