mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
vim-patch:9.0.0195: metafun files are not recogized (#19746)
Problem: Metafun files are not recogized.
Solution: Add filetype detection patterns.
9032b9ceb6
This commit is contained in:
@@ -1161,6 +1161,7 @@ au BufNewFile,BufRead *.mf setf mf
|
|||||||
|
|
||||||
" MetaPost
|
" MetaPost
|
||||||
au BufNewFile,BufRead *.mp setf mp
|
au BufNewFile,BufRead *.mp setf mp
|
||||||
|
au BufNewFile,BufRead *.mpxl,*.mpiv,*.mpvi let b:mp_metafun = 1 | setf mp
|
||||||
|
|
||||||
" MGL
|
" MGL
|
||||||
au BufNewFile,BufRead *.mgl setf mgl
|
au BufNewFile,BufRead *.mgl setf mgl
|
||||||
|
@@ -668,6 +668,21 @@ local extension = {
|
|||||||
moo = 'moo',
|
moo = 'moo',
|
||||||
moon = 'moonscript',
|
moon = 'moonscript',
|
||||||
mp = 'mp',
|
mp = 'mp',
|
||||||
|
mpiv = function(path, bufnr)
|
||||||
|
return 'mp', function(b)
|
||||||
|
vim.b[b].mp_metafun = 1
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
mpvi = function(path, bufnr)
|
||||||
|
return 'mp', function(b)
|
||||||
|
vim.b[b].mp_metafun = 1
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
mpxl = function(path, bufnr)
|
||||||
|
return 'mp', function(b)
|
||||||
|
vim.b[b].mp_metafun = 1
|
||||||
|
end
|
||||||
|
end,
|
||||||
mof = 'msidl',
|
mof = 'msidl',
|
||||||
odl = 'msidl',
|
odl = 'msidl',
|
||||||
msql = 'msql',
|
msql = 'msql',
|
||||||
|
@@ -360,7 +360,7 @@ let s:filename_checks = {
|
|||||||
\ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'],
|
\ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'],
|
||||||
\ 'moo': ['file.moo'],
|
\ 'moo': ['file.moo'],
|
||||||
\ 'moonscript': ['file.moon'],
|
\ 'moonscript': ['file.moon'],
|
||||||
\ 'mp': ['file.mp'],
|
\ 'mp': ['file.mp', 'file.mpxl', 'file.mpiv', 'file.mpvi'],
|
||||||
\ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'],
|
\ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'],
|
||||||
\ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'],
|
\ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'],
|
||||||
\ 'msidl': ['file.odl', 'file.mof'],
|
\ 'msidl': ['file.odl', 'file.mof'],
|
||||||
|
Reference in New Issue
Block a user