diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-30 11:17:59 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-30 11:41:23 +0100 |
commit | 4426a326e2441326e280a0478f83128e09305806 (patch) | |
tree | 22eeeea6aa08abe3d5913351156aae97b2d65cc0 /runtime/lua/vim | |
parent | fd865fbd9229ddd4856d8913b0e452deb0bba872 (diff) | |
download | rneovim-4426a326e2441326e280a0478f83128e09305806.tar.gz rneovim-4426a326e2441326e280a0478f83128e09305806.tar.bz2 rneovim-4426a326e2441326e280a0478f83128e09305806.zip |
vim-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: vim/vim#16136
https://github.com/vim/vim/commit/aa16b30552f0c6a00dcc761e3954cd5266bf106a
Co-authored-by: user202729 <25191436+user202729@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index aa566973b6..5d771c30e9 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -962,7 +962,9 @@ local extension = { purs = 'purescript', arr = 'pyret', pxd = 'pyrex', + pxi = 'pyrex', pyx = 'pyrex', + ['pyx+'] = 'pyrex', pyw = 'python', py = 'python', pyi = 'python', |