aboutsummaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-01-13 09:37:15 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-01-13 18:25:00 -0500
commitd953614e72c266a911bf9752dc25abe4c839a78d (patch)
tree2843917334f6840cb57e3fe27e4fab3b1ff86016 /runtime/filetype.vim
parentbd02e29443cb23bc8e43d30030e1b9652c24cf36 (diff)
downloadrneovim-d953614e72c266a911bf9752dc25abe4c839a78d.tar.gz
rneovim-d953614e72c266a911bf9752dc25abe4c839a78d.tar.bz2
rneovim-d953614e72c266a911bf9752dc25abe4c839a78d.zip
vim-patch:8.2.2334: Pascal-like filetypes not always detected
Problem: Pascal-like filetypes not always detected. Solution: Improved Puppet, InstantFPC and Pascal detection. (Doug Kearns, closes vim/vim#7662) https://github.com/vim/vim/commit/a0122dcd1cc9e9bb62c071a9b91426a8bce4f8d9
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 959fe35662..ba81a3348e 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1170,7 +1170,9 @@ au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp
au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd
" Pascal (also *.p)
-au BufNewFile,BufRead *.pas,*.pp setf pascal
+au BufNewFile,BufRead *.pas setf pascal
+
+au BufNewFile,BufRead *.pp call dist#ft#FTpp()
" Delphi or Lazarus program file
au BufNewFile,BufRead *.dpr,*.lpr setf pascal