aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-12-31 08:41:54 +0800
committerGitHub <noreply@github.com>2024-12-31 08:41:54 +0800
commit57f10abbc2c17453ffe584833abb7596e9897a6e (patch)
tree0c6882976ebf6609b6225b47729eb6884563ee42
parente9c077d197a80a2ecd858821b18d0be3e3eb6d0b (diff)
downloadrneovim-57f10abbc2c17453ffe584833abb7596e9897a6e.tar.gz
rneovim-57f10abbc2c17453ffe584833abb7596e9897a6e.tar.bz2
rneovim-57f10abbc2c17453ffe584833abb7596e9897a6e.zip
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 https://github.com/vim/vim/commit/2bee7e43e137bcef62e6872791e2be7ce9c32703 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
-rw-r--r--runtime/syntax/lnkmap.vim4
-rw-r--r--test/old/testdir/test_filetype.vim2
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/syntax/lnkmap.vim b/runtime/syntax/lnkmap.vim
index a1d109ef0d..dc097f412f 100644
--- a/runtime/syntax/lnkmap.vim
+++ b/runtime/syntax/lnkmap.vim
@@ -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
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index 0e9796388c..462bf2e025 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -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)