patch 9.1.0972: filetype: TI linker map files are not recognized

Problem:  filetype: TI linker map files are not recognized
Solution: detect TI linker map files as lnkmap filetype
          (Wu, Zhenyu)

References:
https://downloads.ti.com/docs/esd/SPRUI03A/Content/SPRUI03A_HTML/linker_description.html

closes: #16324

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Wu, Zhenyu
2024-12-29 15:28:46 +01:00
committed by Christian Brabandt
parent f0ab3e4e41
commit 5113831d16
5 changed files with 77 additions and 2 deletions

View File

@ -1493,7 +1493,12 @@ au BufNewFile,BufRead */etc/man.conf,man.config setf manconf
au BufNewFile,BufRead *.mv,*.mpl,*.mws setf maple
" Map (UMN mapserver config file)
au BufNewFile,BufRead *.map setf map
au BufNewFile,BufRead *.map
\ if getline(1) =~ '^\*\+$' |
\ setf lnkmap |
\ else |
\ setf map |
\ endif
" Markdown
au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md