Patch 8.2.1725
Problem:    Not all Pascal files are recognized.
Solution:   Add filetype patterns. (Doug Kearns)
Files:      runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-8.2.1724/runtime/filetype.vim        2020-09-02 17:08:55.956296752 
+0200
--- runtime/filetype.vim        2020-09-22 19:13:44.542369729 +0200
***************
*** 1162,1171 ****
  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                   setf pascal
  
! " Delphi project file
! au BufNewFile,BufRead *.dpr                   setf pascal
  
  " PDF
  au BufNewFile,BufRead *.pdf                   setf pdf
--- 1162,1171 ----
  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
  
! " Delphi or Lazarus program file
! au BufNewFile,BufRead *.dpr,*.lpr             setf pascal
  
  " PDF
  au BufNewFile,BufRead *.pdf                   setf pdf
***************
*** 1736,1742 ****
  au BufNewFile,BufRead texmf.cnf                       setf texmf
  
  " Tidy config
! au BufNewFile,BufRead .tidyrc,tidyrc          setf tidy
  
  " TF mud client
  au BufNewFile,BufRead *.tf,.tfrc,tfrc         setf tf
--- 1736,1742 ----
  au BufNewFile,BufRead texmf.cnf                       setf texmf
  
  " Tidy config
! au BufNewFile,BufRead .tidyrc,tidyrc,tidy.conf        setf tidy
  
  " TF mud client
  au BufNewFile,BufRead *.tf,.tfrc,tfrc         setf tf
*** ../vim-8.2.1724/src/testdir/test_filetype.vim       2020-09-02 
17:08:55.956296752 +0200
--- src/testdir/test_filetype.vim       2020-09-22 19:12:07.010790398 +0200
***************
*** 327,333 ****
      \ 'pamconf': ['/etc/pam.conf'],
      \ 'pamenv': ['/etc/security/pam_env.conf', '/home/user/.pam_environment'],
      \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
!     \ 'pascal': ['file.pas', 'file.dpr'],
      \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 
'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 
'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'],
      \ 'pccts': ['file.g'],
      \ 'pdf': ['file.pdf'],
--- 327,333 ----
      \ 'pamconf': ['/etc/pam.conf'],
      \ 'pamenv': ['/etc/security/pam_env.conf', '/home/user/.pam_environment'],
      \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
!     \ 'pascal': ['file.pas', 'file.pp', 'file.dpr', 'file.lpr'],
      \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 
'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 
'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'],
      \ 'pccts': ['file.g'],
      \ 'pdf': ['file.pdf'],
***************
*** 456,462 ****
      \ 'texmf': ['texmf.cnf'],
      \ 'text': ['file.text', 'README'],
      \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
!     \ 'tidy': ['.tidyrc', 'tidyrc'],
      \ 'tilde': ['file.t.html'],
      \ 'tli': ['file.tli'],
      \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf'],
--- 456,462 ----
      \ 'texmf': ['texmf.cnf'],
      \ 'text': ['file.text', 'README'],
      \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
!     \ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
      \ 'tilde': ['file.t.html'],
      \ 'tli': ['file.tli'],
      \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf'],
*** ../vim-8.2.1724/src/version.c       2020-09-21 22:21:15.171008456 +0200
--- src/version.c       2020-09-22 19:14:37.142139954 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     1725,
  /**/

-- 
It is too bad that the speed of light hasn't kept pace with the
changes in CPU speed and network bandwidth. -- <[email protected]>

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202009221715.08MHFxlc3699058%40masaka.moolenaar.net.

Raspunde prin e-mail lui