comparison runtime/filetype.vim @ 32945:53bd850dd268 v9.0.1773

commit 19a3bc3addf9b4aa8150a01b11b4249c67d15d3b Author: Doug Kearns <dougkearns@gmail.com> Date: Sun Aug 20 20:51:12 2023 +0200 patch 9.0.1773: cannot distinguish Forth and Fortran *.f files Problem: cannot distinguish Forth and Fortran *.f files Solution: Add Filetype detection Code Also add *.4th as a Forth filetype closes: #12251 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Aug 2023 22:09:06 +0200
parents 68f596eeca1c
children 1e37f623c551
comparison
equal deleted inserted replaced
32944:8c5377e802de 32945:53bd850dd268
722 " Focus Master file (but not for auto.master) 722 " Focus Master file (but not for auto.master)
723 au BufNewFile,BufRead auto.master setf conf 723 au BufNewFile,BufRead auto.master setf conf
724 au BufNewFile,BufRead *.mas,*.master setf master 724 au BufNewFile,BufRead *.mas,*.master setf master
725 725
726 " Forth 726 " Forth
727 au BufNewFile,BufRead *.ft,*.fth setf forth 727 au BufNewFile,BufRead *.ft,*.fth,*.4th setf forth
728 728
729 " Reva Forth 729 " Reva Forth
730 au BufNewFile,BufRead *.frt setf reva 730 au BufNewFile,BufRead *.frt setf reva
731 731
732 " Fortran 732 " Fortran
733 if has("fname_case") 733 if has("fname_case")
734 au BufNewFile,BufRead *.F,*.FOR,*.FPP,*.FTN,*.F77,*.F90,*.F95,*.F03,*.F08 setf fortran 734 au BufNewFile,BufRead *.F,*.FOR,*.FPP,*.FTN,*.F77,*.F90,*.F95,*.F03,*.F08 setf fortran
735 endif 735 endif
736 au BufNewFile,BufRead *.f,*.for,*.fortran,*.fpp,*.ftn,*.f77,*.f90,*.f95,*.f03,*.f08 setf fortran 736 au BufNewFile,BufRead *.for,*.fortran,*.fpp,*.ftn,*.f77,*.f90,*.f95,*.f03,*.f08 setf fortran
737
738 " Fortran or Forth
739 au BufNewFile,BufRead *.f call dist#ft#FTf()
737 740
738 " Framescript 741 " Framescript
739 au BufNewFile,BufRead *.fsl setf framescript 742 au BufNewFile,BufRead *.fsl setf framescript
740 743
741 " FStab 744 " FStab