]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1668: PEM files are not recognized v9.0.1668
authorObserverOfTime <chronobserver@disroot.org>
Mon, 26 Jun 2023 21:05:37 +0000 (22:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Jun 2023 21:05:37 +0000 (22:05 +0100)
Problem:    PEM files are not recognized.
Solution:   Add patterns to match PEM files. (closes #12582)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index bead0f31f264e83e9bb1728a239840b1ff85f3df..cdeb556410dbf6fb931ca341d98f82292dca1fde 100644 (file)
@@ -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()
index cf74a02552e2a980db84e8622311dca6ba13af39..e2f2f045bbf5d266de6700ae77a9c71676b1627b 100644 (file)
@@ -506,6 +506,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
index 5c83d402944c27f14adb143338f4ed544798fe36..d18ecc1a6a55843b847ad430b4830dff7ea9743f 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1668,
 /**/
     1667,
 /**/