patch 9.1.1343: filetype: IPython files are not recognized

Commit: 
https://github.com/vim/vim/commit/e380b5cbba23869b07e17cfc7f4602e2fe681945
Author: Christian Brabandt <c...@256bit.org>
Date:   Thu Apr 24 22:34:46 2025 +0200

    patch 9.1.1343: filetype: IPython files are not recognized
    
    Problem:  filetype: IPython files are not recognized
              (user202729)
    Solution: detect *.ipy files as python filetype
    
    fixes: #17163
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 98e64a9f3..87eac418f 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:  The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Apr 21
+" Last Change: 2025 Apr 24
 " Former Maintainer:   Bram Moolenaar <b...@vim.org>
 
 " Listen very carefully, I will say this only once
@@ -2061,9 +2061,9 @@ au BufNewFile,BufRead *.arr                       setf 
pyret
 au BufNewFile,BufRead *.pyx,*.pyx+,*.pxd,*.pxi setf pyrex
 
 " Python, Python Shell Startup and Python Stub Files
-" Quixote (Python-based web framework)
+" Quixote (Python-based web framework) and IPython
 au BufNewFile,BufRead 
*.py,*.pyw,.pythonstartup,.pythonrc,.python_history,.jline-jython.history       
 setf python
-au BufNewFile,BufRead *.ptl,*.pyi,SConstruct              setf python
+au BufNewFile,BufRead *.ipy,*.ptl,*.pyi,SConstruct                setf python
 
 " QL
 au BufRead,BufNewFile *.ql,*.qll               setf ql
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index dc653f5b4..260c3ee72 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -632,7 +632,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     pymanifest: ['MANIFEST.in'],
     pyret: ['file.arr'],
     pyrex: ['file.pyx', 'file.pxd', 'file.pxi', 'file.pyx+'],
-    python: ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 
'.python_history', '.jline-jython.history', 'file.ptl', 'file.pyi', 
'SConstruct'],
+    python: ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 
'.python_history', '.jline-jython.history', 'file.ptl', 'file.pyi', 
'SConstruct', 'file.ipy'],
     ql: ['file.ql', 'file.qll'],
     qml: ['file.qml', 'file.qbs'],
     qmldir: ['qmldir'],
diff --git a/src/version.c b/src/version.c
index a07561eb6..cd66bef57 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1343,
 /**/
     1342,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1u83RP-005hfF-3a%40256bit.org.

Raspunde prin e-mail lui