Mercurial > vim
comparison src/testdir/test_filetype.vim @ 28507:73f235d0b6c8 v8.2.4778
patch 8.2.4778: pacman files use dosini filetype
Commit: https://github.com/vim/vim/commit/35cff32dd82e5e2b72453b9f27d0655fc5b8a639
Author: Chaoren Lin <aoe@google.com>
Date: Sun Apr 17 21:15:48 2022 +0100
patch 8.2.4778: pacman files use dosini filetype
Problem: Pacman files use dosini filetype.
Solution: Use conf instead. (Chaoren Lin, closes https://github.com/vim/vim/issues/10213)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Apr 2022 22:30:03 +0200 |
parents | 75f181bef230 |
children | 6a1e5b188374 |
comparison
equal
deleted
inserted
replaced
28506:985367e407d3 | 28507:73f235d0b6c8 |
---|---|
111 \ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'], | 111 \ 'cmake': ['CMakeLists.txt', 'file.cmake', 'file.cmake.in'], |
112 \ 'cmusrc': ['any/.cmus/autosave', 'any/.cmus/rc', 'any/.cmus/command-history', 'any/.cmus/file.theme', 'any/cmus/rc', 'any/cmus/file.theme', '/.cmus/autosave', '/.cmus/command-history', '/.cmus/file.theme', '/.cmus/rc', '/cmus/file.theme', '/cmus/rc'], | 112 \ 'cmusrc': ['any/.cmus/autosave', 'any/.cmus/rc', 'any/.cmus/command-history', 'any/.cmus/file.theme', 'any/cmus/rc', 'any/cmus/file.theme', '/.cmus/autosave', '/.cmus/command-history', '/.cmus/file.theme', '/.cmus/rc', '/cmus/file.theme', '/cmus/rc'], |
113 \ 'cobol': ['file.cbl', 'file.cob', 'file.lib'], | 113 \ 'cobol': ['file.cbl', 'file.cob', 'file.lib'], |
114 \ 'coco': ['file.atg'], | 114 \ 'coco': ['file.atg'], |
115 \ 'conaryrecipe': ['file.recipe'], | 115 \ 'conaryrecipe': ['file.recipe'], |
116 \ 'conf': ['auto.master'], | 116 \ 'conf': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'auto.master'], |
117 \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file'], | 117 \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file'], |
118 \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], | 118 \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], |
119 \ 'cook': ['file.cook'], | 119 \ 'cook': ['file.cook'], |
120 \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'], | 120 \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'], |
121 \ 'crm': ['file.crm'], | 121 \ 'crm': ['file.crm'], |
150 \ 'diff': ['file.diff', 'file.rej'], | 150 \ 'diff': ['file.diff', 'file.rej'], |
151 \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'], | 151 \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'], |
152 \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'], | 152 \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'], |
153 \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile', 'Dockerfile.debian', 'Containerfile.something'], | 153 \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile', 'Dockerfile.debian', 'Containerfile.something'], |
154 \ 'dosbatch': ['file.bat'], | 154 \ 'dosbatch': ['file.bat'], |
155 \ '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'], | 155 \ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'], |
156 \ 'dot': ['file.dot', 'file.gv'], | 156 \ 'dot': ['file.dot', 'file.gv'], |
157 \ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], | 157 \ 'dracula': ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], |
158 \ 'dtd': ['file.dtd'], | 158 \ 'dtd': ['file.dtd'], |
159 \ 'dtrace': ['/usr/lib/dtrace/io.d'], | 159 \ 'dtrace': ['/usr/lib/dtrace/io.d'], |
160 \ 'dts': ['file.dts', 'file.dtsi'], | 160 \ 'dts': ['file.dts', 'file.dtsi'], |
1197 func Test_hook_file() | 1197 func Test_hook_file() |
1198 filetype on | 1198 filetype on |
1199 | 1199 |
1200 call writefile(['[Trigger]', 'this is pacman config'], 'Xfile.hook') | 1200 call writefile(['[Trigger]', 'this is pacman config'], 'Xfile.hook') |
1201 split Xfile.hook | 1201 split Xfile.hook |
1202 call assert_equal('dosini', &filetype) | 1202 call assert_equal('conf', &filetype) |
1203 bwipe! | 1203 bwipe! |
1204 | 1204 |
1205 call writefile(['not pacman'], 'Xfile.hook') | 1205 call writefile(['not pacman'], 'Xfile.hook') |
1206 split Xfile.hook | 1206 split Xfile.hook |
1207 call assert_notequal('dosini', &filetype) | 1207 call assert_notequal('conf', &filetype) |
1208 bwipe! | 1208 bwipe! |
1209 | 1209 |
1210 call delete('Xfile.hook') | 1210 call delete('Xfile.hook') |
1211 filetype off | 1211 filetype off |
1212 endfunc | 1212 endfunc |