From: ObserverOfTime Date: Wed, 9 Aug 2023 14:52:33 +0000 (+0300) Subject: PyPA manifest files are not recognized (#12707) X-Git-Tag: v9.0.1680~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44ff25d5243b6d4f7ee88b46d1254aec0b27f4eb;p=thirdparty%2Fvim.git PyPA manifest files are not recognized (#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 dd7e3bc9bd..5d24849219 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 d5422bc301..4e13712be1 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -544,6 +544,7 @@ def s:GetFilenameChecks(): dict> 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'],