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+user202729@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
user202729
2024-11-30 11:09:49 +01:00
committed by Christian Brabandt
parent dd21c89626
commit aa16b30552
3 changed files with 5 additions and 3 deletions

View File

@ -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)