diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-04-16 09:33:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-16 09:33:33 +0800 |
| commit | fb7ffac69fe4a32abfb4abfe5cf36213da17904d (patch) | |
| tree | c6cdbfbbb676b49969ffe1642f181e10b38d7ac6 /test | |
| parent | 07661009c59e1cf70270d16ecb5f61f5c360d56a (diff) | |
| download | rneovim-fb7ffac69fe4a32abfb4abfe5cf36213da17904d.tar.gz rneovim-fb7ffac69fe4a32abfb4abfe5cf36213da17904d.tar.bz2 rneovim-fb7ffac69fe4a32abfb4abfe5cf36213da17904d.zip | |
vim-patch:9.1.0326: filetype: some requirements files are not recognized (#28360)
Problem: filetype: some requirements files are not recognized
Solution: Detect '*-requirements.txt', 'constraints.txt',
'requirements.in', 'requirements/*.txt' and 'requires/*.txt'
as requirements filetype, include pip compiler, include
requirements filetype and syntax plugin
(Wu, Zhenyu, @raimon49)
closes: vim/vim#14379
https://github.com/vim/vim/commit/f9f5424d3e75bbdb35aa48fa6f9241d9479b35e8
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Co-authored-by: raimon <raimon49@hotmail.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/old/testdir/test_compiler.vim | 4 | ||||
| -rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/old/testdir/test_compiler.vim b/test/old/testdir/test_compiler.vim index 11cfd7f47f..69420b4b7f 100644 --- a/test/old/testdir/test_compiler.vim +++ b/test/old/testdir/test_compiler.vim @@ -62,10 +62,10 @@ func Test_compiler_completion() call assert_match('^"compiler ' .. clist .. '$', @:) call feedkeys(":compiler p\<C-A>\<C-B>\"\<CR>", 'tx') - call assert_match('"compiler pandoc pbx perl\( p[a-z]\+\)\+ pylint pyunit', @:) + call assert_match('"compiler pandoc pbx perl\( p[a-z_]\+\)\+ pylint pyunit', @:) call feedkeys(":compiler! p\<C-A>\<C-B>\"\<CR>", 'tx') - call assert_match('"compiler! pandoc pbx perl\( p[a-z]\+\)\+ pylint pyunit', @:) + call assert_match('"compiler! pandoc pbx perl\( p[a-z_]\+\)\+ pylint pyunit', @:) endfunc func Test_compiler_error() diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index b07759ae9e..917d3bfb2e 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -595,7 +595,7 @@ func s:GetFilenameChecks() abort \ 'readline': ['.inputrc', 'inputrc'], \ 'rego': ['file.rego'], \ 'remind': ['.reminders', 'file.remind', 'file.rem', '.reminders-file'], - \ 'requirements': ['file.pip', 'requirements.txt'], + \ 'requirements': ['file.pip', 'requirements.txt', 'dev-requirements.txt', 'constraints.txt', 'requirements.in', 'requirements/dev.txt', 'requires/dev.txt'], \ 'rescript': ['file.res', 'file.resi'], \ 'resolv': ['resolv.conf'], \ 'reva': ['file.frt'], |