Mercurial > vim
changeset 32675:6f7359f4a4ba v9.0.1668
patch 9.0.1668: PEM files are not recognized
Commit: https://github.com/vim/vim/commit/0256d76a3392aef270b38d1cf7633008e45c2003
Author: ObserverOfTime <chronobserver@disroot.org>
Date: Mon Jun 26 22:05:37 2023 +0100
patch 9.0.1668: PEM files are not recognized
Problem: PEM files are not recognized.
Solution: Add patterns to match PEM files. (closes https://github.com/vim/vim/issues/12582)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 26 Jun 2023 23:15:04 +0200 |
parents | 195ebcb7c329 |
children | 1873e1b4b13c |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1511,6 +1511,9 @@ au BufNewFile,BufRead *.pdf setf pdf " PCMK - HAE - crm configure edit au BufNewFile,BufRead *.pcmk setf pcmk +" PEM (Privacy-Enhanced Mail) +au BufNewFile,BufRead *.pem,*.cer,*.crt,*.csr setf pem + " Perl if has("fname_case") au BufNewFile,BufRead *.pl,*.PL call dist#ft#FTpl()
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -506,6 +506,7 @@ def s:GetFilenameChecks(): dict<list<str pccts: ['file.g'], pcmk: ['file.pcmk'], pdf: ['file.pdf'], + pem: ['file.pem', 'file.cer', 'file.crt', 'file.csr'], perl: ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc', '.latexmkrc', 'latexmkrc'], pf: ['pf.conf'], pfmain: ['main.cf', 'main.cf.proto'],