]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
PyPA manifest files are not recognized (#12707)
authorObserverOfTime <chronobserver@disroot.org>
Wed, 9 Aug 2023 14:52:33 +0000 (17:52 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 14:52:33 +0000 (16:52 +0200)
Problem:    PyPA manifest files are not recognized.
Solution:   Add a pattern to match PyPA manifest files.

runtime/filetype.vim
src/testdir/test_filetype.vim

index dd7e3bc9bd3b03099971c29a37a4019d302f607d..5d24849219a3099902dfddcdf261e7d4863eadd1 100644 (file)
@@ -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
 
index d5422bc301d9ae67e566dfdd75bb253c8cfcd616..4e13712be112609d09be5f6858db927483ea111d 100644 (file)
@@ -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'],