patch 9.1.0897: filetype: pyrex files are not detected

Commit: 
https://github.com/vim/vim/commit/aa16b30552f0c6a00dcc761e3954cd5266bf106a
Author: user202729 <25191436+user202...@users.noreply.github.com>
Date:   Sat Nov 30 11:09:49 2024 +0100

    patch 9.1.0897: filetype: pyrex files are not detected
    
    Problem:  filetype: pyrex files are not detected
    Solution: detect '*.pxi' and '*.pyx+' as pyrex filetype
              (user202729)
    
    References:
    
https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#cython-file-types
    
https://www.csse.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/using_with_c++.html
    
    closes: #16136
    
    Signed-off-by: user202729 <25191436+user202...@users.noreply.github.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 08290d0b8..f91d405f7 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1982,8 +1982,8 @@ au BufNewFile,BufRead MANIFEST.in         setf pymanifest
 " Pyret
 au BufNewFile,BufRead *.arr                    setf pyret
 
-" Pyrex
-au BufNewFile,BufRead *.pyx,*.pxd              setf pyrex
+" Pyrex/Cython
+au BufNewFile,BufRead *.pyx,*.pyx+,*.pxd,*.pxi setf pyrex
 
 " Python, Python Shell Startup and Python Stub Files
 " Quixote (Python-based web framework)
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 4a905a889..51f4dc1c8 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -613,7 +613,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     purescript: ['file.purs'],
     pymanifest: ['MANIFEST.in'],
     pyret: ['file.arr'],
-    pyrex: ['file.pyx', 'file.pxd'],
+    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'],
     ql: ['file.ql', 'file.qll'],
     qml: ['file.qml', 'file.qbs'],
diff --git a/src/version.c b/src/version.c
index e1f8489cb..e3093a3db 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 */
+/**/
+    897,
 /**/
     896,
 /**/

-- 
-- 
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/E1tHKjj-00Fdzy-1k%40256bit.org.

Raspunde prin e-mail lui