mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-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: vim/vim#17163
e380b5cbba
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:

committed by
Christian Clason

parent
533ce0e807
commit
4ddd31de14
@@ -1003,6 +1003,7 @@ local extension = {
|
|||||||
py = 'python',
|
py = 'python',
|
||||||
pyi = 'python',
|
pyi = 'python',
|
||||||
ptl = 'python',
|
ptl = 'python',
|
||||||
|
ipy = 'python',
|
||||||
ql = 'ql',
|
ql = 'ql',
|
||||||
qll = 'ql',
|
qll = 'ql',
|
||||||
qml = 'qml',
|
qml = 'qml',
|
||||||
|
@@ -629,7 +629,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'pymanifest': ['MANIFEST.in'],
|
\ 'pymanifest': ['MANIFEST.in'],
|
||||||
\ 'pyret': ['file.arr'],
|
\ 'pyret': ['file.arr'],
|
||||||
\ 'pyrex': ['file.pyx', 'file.pxd', 'file.pxi', 'file.pyx+'],
|
\ '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'],
|
\ 'ql': ['file.ql', 'file.qll'],
|
||||||
\ 'qml': ['file.qml', 'file.qbs'],
|
\ 'qml': ['file.qml', 'file.qbs'],
|
||||||
\ 'qmldir': ['qmldir'],
|
\ 'qmldir': ['qmldir'],
|
||||||
|
Reference in New Issue
Block a user