From 6642982beaf4f1f5164f0315a1b3e3c275156089 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 7 Feb 2023 19:37:32 +0000 Subject: patch 9.0.1291: Move language files are not recognized Problem: Move language files are not recognized. Solution: Recognize Move language files. (Amaan Qureshi, closes #11947) --- runtime/filetype.vim | 7 +++++-- src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index f2a6c4241..7489c33c5 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1267,6 +1267,9 @@ au BufNewFile,BufRead *.[mi][3g] setf modula3 " Larch/Modula-3 au BufNewFile,BufRead *.lm3 setf modula3 +" Modconf +au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf + " Monk au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc setf monk @@ -1276,8 +1279,8 @@ au BufNewFile,BufRead *.moo setf moo " Moonscript au BufNewFile,BufRead *.moon setf moonscript -" Modconf -au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf +" Move language +au BufNewFile,BufRead *.move setf move " MPD is based on XML au BufNewFile,BufRead *.mpd setf xml diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index f5c54f571..20f164aa5 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -380,6 +380,7 @@ let s:filename_checks = { \ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'], \ 'moo': ['file.moo'], \ 'moonscript': ['file.moon'], + \ 'move': ['file.move'], \ 'mp': ['file.mp', 'file.mpxl', 'file.mpiv', 'file.mpvi'], \ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'], \ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'], diff --git a/src/version.c b/src/version.c index 3523df2b9..a98d4c3f2 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1291, /**/ 1290, /**/ -- cgit v1.2.1