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:
@@ -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'],
|
||||
|
||||
@@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3726,
|
||||
/**/
|
||||
3725,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user