Mercurial > vim
changeset 34743:a815610f567b v9.1.0250
patch 9.1.0250: filetype: ldscripts cannot be recognized
Commit: https://github.com/vim/vim/commit/4c7098b00a5edfb25b24fe3210866a4f30a2d78f
Author: Wu, Zhenyu <wuzhenyu@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 <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 31 Mar 2024 20:00:08 +0200 |
parents | e8104b9764ad |
children | 275cdb311fe1 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1183,7 +1183,7 @@ au BufNewFile,BufRead *.sig call dist# 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
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -368,7 +368,7 @@ def s:GetFilenameChecks(): dict<list<str 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'],