PyPA manifest files are not recognized (#12707)

Commit: 
https://github.com/vim/vim/commit/44ff25d5243b6d4f7ee88b46d1254aec0b27f4eb
Author: ObserverOfTime <[email protected]>
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'],

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qTkfQ-00BnW5-1Y%40256bit.org.

Raspunde prin e-mail lui