aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-17 22:41:51 -0400
committerGitHub <noreply@github.com>2021-04-17 22:41:51 -0400
commita129887c00a2d5e49fc551ba0bbffe88cefb56c0 (patch)
tree9a2dad0787bd0717db2285c825c6f47189f73d4f
parent63b64ebab0682f149182eb0860b6f71753dab1ee (diff)
downloadrneovim-a129887c00a2d5e49fc551ba0bbffe88cefb56c0.tar.gz
rneovim-a129887c00a2d5e49fc551ba0bbffe88cefb56c0.tar.bz2
rneovim-a129887c00a2d5e49fc551ba0bbffe88cefb56c0.zip
vim-patch:8.2.2773: PSL filetype not recognized (#14389)
Problem: PSL filetype not recognized. Solution: Add a filetype pattern. (Daniel Kho, closes vim/vim#8117) https://github.com/vim/vim/commit/112a006417a0d4700ff39ddba3bb5e985ae9770f
-rw-r--r--runtime/filetype.vim11
-rw-r--r--src/nvim/testdir/test_filetype.vim1
2 files changed, 8 insertions, 4 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 7bfe048bbf..724a96cb01 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -596,7 +596,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
@@ -640,7 +640,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
@@ -711,7 +711,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
@@ -1338,12 +1338,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
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim
index bd2e673570..3cfc964f0a 100644
--- a/src/nvim/testdir/test_filetype.vim
+++ b/src/nvim/testdir/test_filetype.vim
@@ -376,6 +376,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'],