changeset 24466:f5a6a6e98ec4 v8.2.2773

patch 8.2.2773: PSL filetype not recognized Commit: https://github.com/vim/vim/commit/112a006417a0d4700ff39ddba3bb5e985ae9770f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 17 14:06:39 2021 +0200 patch 8.2.2773: PSL filetype not recognized Problem: PSL filetype not recognized. Solution: Add a filetype pattern. (Daniel Kho, closes https://github.com/vim/vim/issues/8117)
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Apr 2021 14:15:04 +0200
parents 10508ba73a4b
children 6515dbde026a
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -600,7 +600,7 @@ au BufNewFile,BufRead *.fan,*.fwt		setf 
 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 
 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
 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 prolo
 " 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
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2773,
+/**/
     2772,
 /**/
     2771,