vim-patch:9.1.0981: tests: typo in test_filetype.vim (#31794)

Problem:  tests: typo in test_filetype.vim
Solution: fix comment, update lnkmap syntax file and add
          DESCT keyword
          (Wu, Zhenyu)

closes: vim/vim#16348

2bee7e43e1

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
zeertzjq
2024-12-31 08:41:54 +08:00
committed by GitHub
parent e9c077d197
commit 57f10abbc2
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
" Language: TI Linker map
" Document: https://downloads.ti.com/docs/esd/SPRUI03A/Content/SPRUI03A_HTML/linker_description.html
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
" Last Change: 2024 Dec 25
" Last Change: 2024 Dec 30
if exists("b:current_syntax")
finish
@ -19,7 +19,7 @@ syn match lnkmapFile '[^ =]\+\%(\.\S\+\)\+\>'
syn match lnkmapLibFile '[^ =]\+\.lib\>'
syn match lnkmapAttrib '\<[RWIX]\+\>'
syn match lnkmapAttrib '\s\zs--HOLE--\ze\%\(\s\|$\)'
syn keyword lnkmapAttrib UNINITIALIZED
syn keyword lnkmapAttrib UNINITIALIZED DESCT
hi def link lnkmapTime Comment

View File

@ -2773,7 +2773,7 @@ func Test_map_file()
call assert_equal('lnkmap', &filetype)
bwipe!
" TI linker map file
" UMN mapserver config file
call writefile(['MAP', 'NAME "local-demo"', 'END'], 'Xfile.map', 'D')
split Xfile.map
call assert_equal('map', &filetype)