summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-02-07 19:37:32 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-07 19:37:32 +0000
commit6642982beaf4f1f5164f0315a1b3e3c275156089 (patch)
tree315ff816ff1b60f55dd0d03c2a3a52475162881b
parentaf9e28a5b8f888b79459393ddb26fffe613c3f3c (diff)
downloadvim-git-9.0.1291.tar.gz
patch 9.0.1291: Move language files are not recognizedv9.0.1291
Problem: Move language files are not recognized. Solution: Recognize Move language files. (Amaan Qureshi, closes #11947)
-rw-r--r--runtime/filetype.vim7
-rw-r--r--src/testdir/test_filetype.vim1
-rw-r--r--src/version.c2
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
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1291,
+/**/
1290,
/**/
1289,