0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.1.0982: TI linker files are not recognized

Problem:  TI linker files are not recognized
Solution: inspect '*.cmd' files and detect TI linker files
          as 'lnk' filetype, include a lnk ftplugin and syntax
          script (Wu, Zhenyu)

closes: #16320

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-31 10:25:44 +01:00
committed by Christian Brabandt
parent f27e80a6e1
commit 39a4eb0b2c
6 changed files with 165 additions and 3 deletions

View File

@@ -2309,6 +2309,27 @@ func Test_cls_file()
filetype off
endfunc
func Test_cmd_file()
filetype on
call writefile(['--rom_model'], 'Xfile.cmd')
split Xfile.cmd
call assert_equal('lnk', &filetype)
bwipe!
call writefile(['/* comment */'], 'Xfile.cmd')
split Xfile.cmd
call assert_equal('rexx', &filetype)
bwipe!
call writefile(['REM comment'], 'Xfile.cmd')
split Xfile.cmd
call assert_equal('dosbatch', &filetype)
bwipe!
filetype off
endfunc
func Test_sig_file()
filetype on

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
982,
/**/
981,
/**/