vim-patch:9.1.0250: filetype: ldscripts cannot be recognized

Problem:  filetype: ldscripts cannot be recognized
Solution: Detect '*/ldscripts/*' as ld
          (Wu, Zhenyu)

closes: vim/vim#14371

4c7098b00a

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 19:58:49 +02:00
parent 000431820e
commit 2e97ae2664
2 changed files with 2 additions and 1 deletions

View File

@ -1775,6 +1775,7 @@ local pattern = {
['.*%.[Ss][Uu][Bb]'] = 'krl', ['.*%.[Ss][Uu][Bb]'] = 'krl',
['lilo%.conf.*'] = starsetf('lilo'), ['lilo%.conf.*'] = starsetf('lilo'),
['.*/etc/logcheck/.*%.d.*/.*'] = starsetf('logcheck'), ['.*/etc/logcheck/.*%.d.*/.*'] = starsetf('logcheck'),
['.*/ldscripts/.*'] = 'ld',
['.*lftp/rc'] = 'lftp', ['.*lftp/rc'] = 'lftp',
['.*/%.libao'] = 'libao', ['.*/%.libao'] = 'libao',
['.*/etc/libao%.conf'] = 'libao', ['.*/etc/libao%.conf'] = 'libao',

View File

@ -358,7 +358,7 @@ func s:GetFilenameChecks() abort
\ 'kwt': ['file.k'], \ 'kwt': ['file.k'],
\ 'lace': ['file.ace', 'file.ACE'], \ 'lace': ['file.ace', 'file.ACE'],
\ 'latte': ['file.latte', 'file.lte'], \ 'latte': ['file.latte', 'file.lte'],
\ 'ld': ['file.ld'], \ 'ld': ['file.ld', 'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'],
\ 'ldif': ['file.ldif'], \ 'ldif': ['file.ldif'],
\ 'lean': ['file.lean'], \ 'lean': ['file.lean'],
\ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'], \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],