diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-09 17:30:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 17:30:26 +0800 |
commit | 3f0adf90debb35b5a937480151a659d654106ff6 (patch) | |
tree | 831044a1cda13ab6a66456b284c150348ed8b487 /test | |
parent | d740a4274d9e1031e05dd86909103dba54fbbaf8 (diff) | |
download | rneovim-3f0adf90debb35b5a937480151a659d654106ff6.tar.gz rneovim-3f0adf90debb35b5a937480151a659d654106ff6.tar.bz2 rneovim-3f0adf90debb35b5a937480151a659d654106ff6.zip |
vim-patch:9.1.0998: filetype: TI assembly files are not recognized (#31929)
Problem: filetype: TI assembly files are not recognized
Solution: inspect '*.sa' and assembly files and detect TI assembly
files, include filetype plugin and syntax script for TI
assembly files (Wu, Zhenyu)
closes: vim/vim#15827
https://github.com/vim/vim/commit/4f73c07abff420bad9fa5befc2c284c00b984993
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_filetype.vim | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 6c8ab3a270..d890884eb5 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -672,7 +672,6 @@ func s:GetFilenameChecks() abort \ 'samba': ['smb.conf'], \ 'sas': ['file.sas'], \ 'sass': ['file.sass'], - \ 'sather': ['file.sa'], \ 'sbt': ['file.sbt'], \ 'scala': ['file.scala'], \ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history'], @@ -2322,6 +2321,22 @@ func Test_cmd_file() filetype off endfunc +func Test_sa_file() + filetype on + + call writefile([';* XXX-a.sa: XXX for TI C6000 DSP *;', '.no_mdep'], 'Xfile.sa') + split Xfile.sa + call assert_equal('tiasm', &filetype) + bwipe! + + call writefile(['-- comment'], 'Xfile.sa') + split Xfile.sa + call assert_equal('sather', &filetype) + bwipe! + + filetype off +endfunc + func Test_sig_file() filetype on |