aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-25 17:20:44 +0800
committerGitHub <noreply@github.com>2025-02-25 09:20:44 +0000
commita31ccc3b1f65fd86780c03fec9c6e1bf56e30e35 (patch)
tree4155f1748264a86e8e2709a8ff9bcafbbf435513 /runtime/lua/vim
parent0c650da7999d25d444b9cae83b32578c5a829807 (diff)
downloadrneovim-a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35.tar.gz
rneovim-a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35.tar.bz2
rneovim-a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35.zip
vim-patch:9.1.1140: filetype: m17ndb files are not detected (#32618)
Problem: filetype: m17ndb files are not detected Solution: detect m17ndb files as m17ndb filetype, include filetype, syntax and indent files for the new filetype (David Mandelberg). References: https://www.nongnu.org/m17n/manual-en/m17nDBFormat.html describes the format. https://git.savannah.nongnu.org/cgit/m17n/m17n-db.git/tree/ has examples of the files. closes: vim/vim#16696 https://github.com/vim/vim/commit/ed7d8e55ac232758fc14fd132994b4a09b19350b Also adjust the xkb parent pattern according to dev_vimpatch.txt. Co-authored-by: David Mandelberg <david@mandelberg.org>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua31
1 files changed, 30 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 66ee45587a..c47ce5e761 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -2325,13 +2325,42 @@ local pattern = {
['^Neomuttrc'] = detect_neomuttrc,
['%.neomuttdebug'] = 'neomuttlog',
},
- ['/%.?xkb/'] = {
+ ['xkb/'] = {
['/%.?xkb/compat/'] = detect_xkb,
['/%.?xkb/geometry/'] = detect_xkb,
['/%.?xkb/keycodes/'] = detect_xkb,
['/%.?xkb/symbols/'] = detect_xkb,
['/%.?xkb/types/'] = detect_xkb,
},
+ ['m17n'] = {
+ ['/m17n/.*%.ali$'] = 'm17ndb',
+ ['/m17n/.*%.cs$'] = 'm17ndb',
+ ['/m17n/.*%.dir$'] = 'm17ndb',
+ ['/m17n/.*%.flt$'] = 'm17ndb',
+ ['/m17n/.*%.fst$'] = 'm17ndb',
+ ['/m17n/.*%.lnm$'] = 'm17ndb',
+ ['/m17n/.*%.mic$'] = 'm17ndb',
+ ['/m17n/.*%.mim$'] = 'm17ndb',
+ ['/m17n/.*%.tbl$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.ali$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.cs$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.dir$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.flt$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.fst$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.lnm$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.mic$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.mim$'] = 'm17ndb',
+ ['/%.m17n%.d/.*%.tbl$'] = 'm17ndb',
+ ['/m17n%-db/.*%.ali$'] = 'm17ndb',
+ ['/m17n%-db/.*%.cs$'] = 'm17ndb',
+ ['/m17n%-db/.*%.dir$'] = 'm17ndb',
+ ['/m17n%-db/.*%.flt$'] = 'm17ndb',
+ ['/m17n%-db/.*%.fst$'] = 'm17ndb',
+ ['/m17n%-db/.*%.lnm$'] = 'm17ndb',
+ ['/m17n%-db/.*%.mic$'] = 'm17ndb',
+ ['/m17n%-db/.*%.mim$'] = 'm17ndb',
+ ['/m17n%-db/.*%.tbl$'] = 'm17ndb',
+ },
['^%.'] = {
['^%.cshrc'] = detect.csh,
['^%.login'] = detect.csh,