mirror of
https://github.com/vim/vim.git
synced 2025-08-26 20:03:41 -04:00
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:
parent
dd21c89626
commit
aa16b30552
@ -1982,8 +1982,8 @@ au BufNewFile,BufRead MANIFEST.in setf pymanifest
|
|||||||
" Pyret
|
" Pyret
|
||||||
au BufNewFile,BufRead *.arr setf pyret
|
au BufNewFile,BufRead *.arr setf pyret
|
||||||
|
|
||||||
" Pyrex
|
" Pyrex/Cython
|
||||||
au BufNewFile,BufRead *.pyx,*.pxd setf pyrex
|
au BufNewFile,BufRead *.pyx,*.pyx+,*.pxd,*.pxi setf pyrex
|
||||||
|
|
||||||
" Python, Python Shell Startup and Python Stub Files
|
" Python, Python Shell Startup and Python Stub Files
|
||||||
" Quixote (Python-based web framework)
|
" Quixote (Python-based web framework)
|
||||||
|
@ -613,7 +613,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
purescript: ['file.purs'],
|
purescript: ['file.purs'],
|
||||||
pymanifest: ['MANIFEST.in'],
|
pymanifest: ['MANIFEST.in'],
|
||||||
pyret: ['file.arr'],
|
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'],
|
python: ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', '.python_history', '.jline-jython.history', 'file.ptl', 'file.pyi', 'SConstruct'],
|
||||||
ql: ['file.ql', 'file.qll'],
|
ql: ['file.ql', 'file.qll'],
|
||||||
qml: ['file.qml', 'file.qbs'],
|
qml: ['file.qml', 'file.qbs'],
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
897,
|
||||||
/**/
|
/**/
|
||||||
896,
|
896,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user