# HG changeset patch # User Christian Brabandt # Date 1712694603 -7200 # Node ID 87c0152e321c2e852512676b7f9db191da91ecc0 # Parent 8916290113b62ad7d8d2f477a710110147643c3d patch 9.1.0290: filetype: xilinx files are not recognized Commit: https://github.com/vim/vim/commit/614691ceefb2b2470cd9097013ffc140f81d6a71 Author: Wu, Zhenyu Date: Tue Apr 9 22:14:37 2024 +0200 patch 9.1.0290: filetype: xilinx files are not recognized Problem: filetype: xilinx files are not recognized Solution: Add a few xilinx specific file patterns, inspect lpr files for being xml/pascal (Wu, Zhenyu) closes: #14454 Signed-off-by: Wu, Zhenyu Signed-off-by: Christian Brabandt diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1588,8 +1588,16 @@ au BufNewFile,BufRead *.pas setf pasc " Pascal or Puppet manifest au BufNewFile,BufRead *.pp call dist#ft#FTpp() -" Delphi or Lazarus program file -au BufNewFile,BufRead *.dpr,*.lpr setf pascal +" Delphi +au BufNewFile,BufRead *.dpr setf pascal + +" Xilinx labtools project file or Lazarus program file +au BufNewFile,BufRead *.lpr + \ if getline(1) =~# "