summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-12 21:57:13 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-12 21:57:13 +0100
commit9032b9ceb6073288d75386dbcbd9d1982fa24080 (patch)
treed69dec557e6c8bc85c9808bc71b3ae356180a450
parent326c5d36e7cb8526330565109c17b4a13ff790ae (diff)
downloadvim-git-9032b9ceb6073288d75386dbcbd9d1982fa24080.tar.gz
patch 9.0.0195: metafun files are not recogizedv9.0.0195
Problem: Metafun files are not recogized. Solution: Add filetype detection patterns.
-rw-r--r--runtime/filetype.vim1
-rw-r--r--src/testdir/test_filetype.vim2
-rw-r--r--src/version.c2
3 files changed, 4 insertions, 1 deletions
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
@@ -736,6 +736,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 195,
+/**/
194,
/**/
193,