diff options
author | ObserverOfTime <chronobserver@disroot.org> | 2023-08-09 17:52:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 16:52:33 +0200 |
commit | 44ff25d5243b6d4f7ee88b46d1254aec0b27f4eb (patch) | |
tree | 4784399ced51f223bead27385f8653acdd70229b | |
parent | 7159ac7fec282ad7427795b4bcd5b769268c083d (diff) |
PyPA manifest files are not recognized (#12707)
Problem: PyPA manifest files are not recognized.
Solution: Add a pattern to match PyPA manifest files.
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 |
2 files changed, 4 insertions, 0 deletions
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<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'], |