[PATCH vis] fix[filetype]: Recognize Cython source files as Python as well
Export this patch
Fixes: https://github.com/martanne/vis/issues/1212
---
lua/plugins/filetype.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 5bd1ff07..21c724a9 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -358,7 +358,7 @@ vis.ftdetect.filetypes = {
},
python = {
utility = { "^python%d?" },
- ext = { "%.sc$", "%.py[iw]?$" },
+ ext = { "%.sc$", "%.py[iwx]?$" },
mime = { "text/x-python", "text/x-script.python" },
},
reason = {
--
2.47.0
vis/patches: SUCCESS in 1m26s
[fix[filetype]: Recognize Cython source files as Python as well][0] from [Matěj Cepl][1]
[0]: https://lists.sr.ht/~martanne/devel/patches/55453
[1]: mailto:mcepl@cepl.eu
✓ #1349527 SUCCESS vis/patches/debian.yml https://builds.sr.ht/~martanne/job/1349527
✓ #1349528 SUCCESS vis/patches/freebsd.yml https://builds.sr.ht/~martanne/job/1349528
✓ #1349529 SUCCESS vis/patches/openbsd.yml https://builds.sr.ht/~martanne/job/1349529
✓ #1349526 SUCCESS vis/patches/alpine.yml https://builds.sr.ht/~martanne/job/1349526
Applied, cython source files should now be associated with the python
syntax.
Cheers,
Felix