diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-01 14:46:20 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-01 14:46:20 +0200 |
commit | 8eb7523802cb51984e2202d08a4fbc1a2cd803c7 (patch) | |
tree | e72fb74d077c570a1d2074bfb442c80b39c6ca9a /runtime | |
parent | cbb92b5ceb6a8169b6eddceec3837aac02f21e3b (diff) |
patch 9.1.0251: Filetype test failsv9.1.0251
Problem: Filetype test fails.
Solution: Move detection by name before detection by extension.
Improve TextChanged test and remove wrong test and fix
a typo in a comment (zeertzjq).
closes: #14373
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 1545ea5ef1..077aa63e00 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -523,6 +523,10 @@ au BufNewFile,BufRead *.lrc setf lyrics au BufNewFile,BufRead *.quake,cm3.cfg setf m3quake au BufNewFile,BufRead m3makefile,m3overrides setf m3build +" Many Python tools use dosini as their config, like setuptools, pudb, coverage +" (must be before *.cfg) +au BufNewFile,BufRead setup.cfg,pudb.cfg,.coveragerc setf dosini + " Quake au BufNewFile,BufRead *baseq[2-3]/*.cfg,*id1/*.cfg setf quake au BufNewFile,BufRead *quake[1-3]/*.cfg setf quake @@ -1045,9 +1049,6 @@ au BufNewFile,BufRead *.4gl,*.4gh,*.m4gl setf fgl " .INI file for MSDOS au BufNewFile,BufRead *.ini,*.INI setf dosini -" Many python tools use dosini as their config, such as setuptools, pudb, coverage -au BufNewFile,BufRead setup.cfg,pudb.cfg,.coveragerc setf dosini - " SysV Inittab au BufNewFile,BufRead inittab setf inittab @@ -1182,6 +1183,9 @@ au BufNewFile,BufRead *.sig call dist#ft#FTsig() " LDAP LDIF au BufNewFile,BufRead *.ldif setf ldif +" Luadoc, Ldoc (must be before *.ld) +au BufNewFile,BufRead config.ld setf lua + " Ld loader au BufNewFile,BufRead *.ld,*/ldscripts/* setf ld @@ -1271,9 +1275,6 @@ au BufNewFile,BufRead .luacheckrc setf lua " Luarocks au BufNewFile,BufRead *.rockspec,rock_manifest setf lua -" Luadoc, Ldoc -au BufNewFile,BufRead config.ld setf lua - " Linden Scripting Language (Second Life) au BufNewFile,BufRead *.lsl call dist#ft#FTlsl() |