]> granicus.if.org Git - vim/commitdiff
patch 8.2.2773: PSL filetype not recognized v8.2.2773
authorBram Moolenaar <Bram@vim.org>
Sat, 17 Apr 2021 12:06:39 +0000 (14:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 17 Apr 2021 12:06:39 +0000 (14:06 +0200)
Problem:    PSL filetype not recognized.
Solution:   Add a filetype pattern. (Daniel Kho, closes #8117)

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

index 43a5c2e7ffc74efa6ef1b1bc4bf25ca790d6503a..60f80d14f8df3d2fec0c8c459ad7e8d87472bd1a 100644 (file)
@@ -600,7 +600,7 @@ au BufNewFile,BufRead *.fan,*.fwt           setf fan
 au BufNewFile,BufRead *.factor                 setf factor
 
 " Fennel
-autocmd BufRead,BufNewFile *.fnl               setf fennel
+autocmd BufRead,BufNewFile *.fnl               setf fennel
 
 " Fetchmail RC file
 au BufNewFile,BufRead .fetchmailrc             setf fetchmail
@@ -644,7 +644,7 @@ au BufNewFile,BufRead *.mo,*.gdmo           setf gdmo
 au BufNewFile,BufRead *.ged,lltxxxxx.txt       setf gedcom
 
 " Gift (Moodle)
-autocmd BufRead,BufNewFile *.gift              setf gift
+autocmd BufRead,BufNewFile *.gift              setf gift
 
 " Git
 au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG     setf gitcommit
@@ -715,7 +715,7 @@ au BufNewFile,BufRead .gtkrc,gtkrc          setf gtkrc
 au BufNewFile,BufRead *.haml                   setf haml
 
 " Hamster Classic | Playground files
-au BufNewFile,BufRead *.hsm                    setf hamster
+au BufNewFile,BufRead *.hsm                    setf hamster
 
 " Haskell
 au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot     setf haskell
@@ -1342,12 +1342,15 @@ au BufNewFile,BufRead *.pdb                     setf prolog
 " Promela
 au BufNewFile,BufRead *.pml                    setf promela
 
+" Property Specification Language (PSL)
+au BufNewFile,BufRead *.psl                    setf psl
+
 " Google protocol buffers
 au BufNewFile,BufRead *.proto                  setf proto
 au BufNewFile,BufRead *.pbtxt                  setf pbtxt
 
 " Poke
-au BufNewFile,BufRead *.pk                     setf poke
+au BufNewFile,BufRead *.pk                     setf poke
 
 " Protocols
 au BufNewFile,BufRead */etc/protocols          setf protocols
index f8e8b5d2389ebf8dfa1195a1acfbab3a883e20cf..4035cc468e6cb944c2e832fa04f3dc8e201c64cf 100644 (file)
@@ -392,6 +392,7 @@ let s:filename_checks = {
     \ 'ps1': ['file.ps1', 'file.psd1', 'file.psm1', 'file.pssc'],
     \ 'ps1xml': ['file.ps1xml'],
     \ 'psf': ['file.psf'],
+    \ 'psl': ['file.psl'],
     \ 'puppet': ['file.pp'],
     \ 'pyrex': ['file.pyx', 'file.pxd'],
     \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
index 4bc84232da2805992d0d92baf91875235c2c52db..113ba8ff00f744e0953ad1b97dd9a2c94f91e3d1 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2773,
 /**/
     2772,
 /**/