PyPA manifest files are not recognized (#12707)

5 views
Skip to first unread message

Christian Brabandt

unread,
Aug 9, 2023, 11:00:14 AM8/9/23
to vim...@googlegroups.com
PyPA manifest files are not recognized (#12707)

Commit: https://github.com/vim/vim/commit/44ff25d5243b6d4f7ee88b46d1254aec0b27f4eb
Author: ObserverOfTime <chrono...@disroot.org>
Date: Wed Aug 9 17:52:33 2023 +0300

PyPA manifest files are not recognized (https://github.com/vim/vim/issues/12707)

Problem: PyPA manifest files are not recognized.
Solution: Add a pattern to match PyPA manifest files.

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index dd7e3bc9b..5d2484921 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1679,6 +1679,9 @@ au BufNewFile,BufRead *.pk setf poke
" Protocols
au BufNewFile,BufRead */etc/protocols setf protocols

+" PyPA manifest files
+au BufNewFile,BufRead MANIFEST.in setf pymanifest
+
" Pyret
au BufNewFile,BufRead *.arr setf pyret

diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index d5422bc30..4e13712be 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -544,6 +544,7 @@ def s:GetFilenameChecks(): dict<list<string>>
psl: ['file.psl'],
pug: ['file.pug'],
puppet: ['file.pp'],
+ pymanifest: ['MANIFEST.in'],
pyret: ['file.arr'],
pyrex: ['file.pyx', 'file.pxd'],
python: ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
Reply all
Reply to author
Forward
0 new messages