patch 9.1.0250: filetype: ldscripts cannot be recognized

Commit: 
https://github.com/vim/vim/commit/4c7098b00a5edfb25b24fe3210866a4f30a2d78f
Author: Wu, Zhenyu <wuzhe...@ustc.edu>
Date:   Sun Mar 31 19:57:16 2024 +0200

    patch 9.1.0250: filetype: ldscripts cannot be recognized
    
    Problem:  filetype: ldscripts cannot be recognized
    Solution: Detect '*/ldscripts/*' as ld
              (Wu, Zhenyu)
    
    closes: #14371
    
    Signed-off-by: Wu, Zhenyu <wuzhe...@ustc.edu>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 9e842cc96..1545ea5ef 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1183,7 +1183,7 @@ au BufNewFile,BufRead *.sig                       call 
dist#ft#FTsig()
 au BufNewFile,BufRead *.ldif                   setf ldif
 
 " Ld loader
-au BufNewFile,BufRead *.ld                     setf ld
+au BufNewFile,BufRead *.ld,*/ldscripts/*       setf ld
 
 " Lean
 au BufNewFile,BufRead *.lean                   setf lean
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 19846d97c..14476cbca 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -368,7 +368,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     kwt: ['file.k'],
     lace: ['file.ace', 'file.ACE'],
     latte: ['file.latte', 'file.lte'],
-    ld: ['file.ld'],
+    ld: ['file.ld', 
'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'],
     ldif: ['file.ldif'],
     lean: ['file.lean'],
     ledger: ['file.ldg', 'file.ledger', 'file.journal'],
diff --git a/src/version.c b/src/version.c
index 527886736..42a9a1ada 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    250,
 /**/
     249,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rqzTU-000Pby-PT%40256bit.org.

Raspunde prin e-mail lui