From 9032b9ceb6073288d75386dbcbd9d1982fa24080 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 12 Aug 2022 21:57:13 +0100 Subject: [PATCH] patch 9.0.0195: metafun files are not recogized Problem: Metafun files are not recogized. Solution: Add filetype detection patterns. --- runtime/filetype.vim | 1 + src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 173a2ed44..89a1a31a2 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1160,6 +1160,7 @@ au BufNewFile,BufRead *.mf setf mf " MetaPost au BufNewFile,BufRead *.mp setf mp +au BufNewFile,BufRead *.mpxl,*.mpiv,*.mpvi let b:mp_metafun = 1 | setf mp " MGL au BufNewFile,BufRead *.mgl setf mgl diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index b096fe2b6..8ea438251 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -361,7 +361,7 @@ let s:filename_checks = { \ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'], \ 'moo': ['file.moo'], \ 'moonscript': ['file.moon'], - \ 'mp': ['file.mp'], + \ 'mp': ['file.mp', 'file.mpxl', 'file.mpiv', 'file.mpvi'], \ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'], \ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'], \ 'msidl': ['file.odl', 'file.mof'], diff --git a/src/version.c b/src/version.c index 4c4fcb657..72890e46b 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 195, /**/ 194, /**/ -- 2.40.0