mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0497: LyRiCs files are not recognized (#20239)
Problem: LyRiCs files are not recognized.
Solution: Add a pattern to detect LyRiCs files. (closes vim/vim#11155)
65ee49decf
This commit is contained in:
parent
e63538f21c
commit
8dc61713d9
@ -449,6 +449,9 @@ endif
|
|||||||
" Lynx config files
|
" Lynx config files
|
||||||
au BufNewFile,BufRead lynx.cfg setf lynx
|
au BufNewFile,BufRead lynx.cfg setf lynx
|
||||||
|
|
||||||
|
" LyRiCs
|
||||||
|
au BufNewFile,BufRead *.lrc setf lyrics
|
||||||
|
|
||||||
" Modula-3 configuration language (must be before *.cfg and *makefile)
|
" Modula-3 configuration language (must be before *.cfg and *makefile)
|
||||||
au BufNewFile,BufRead *.quake,cm3.cfg setf m3quake
|
au BufNewFile,BufRead *.quake,cm3.cfg setf m3quake
|
||||||
au BufNewFile,BufRead m3makefile,m3overrides setf m3build
|
au BufNewFile,BufRead m3makefile,m3overrides setf m3build
|
||||||
|
@ -611,6 +611,7 @@ local extension = {
|
|||||||
nse = 'lua',
|
nse = 'lua',
|
||||||
rockspec = 'lua',
|
rockspec = 'lua',
|
||||||
lua = 'lua',
|
lua = 'lua',
|
||||||
|
lrc = 'lyrics',
|
||||||
m = function(path, bufnr)
|
m = function(path, bufnr)
|
||||||
return require('vim.filetype.detect').m(bufnr)
|
return require('vim.filetype.detect').m(bufnr)
|
||||||
end,
|
end,
|
||||||
|
@ -327,6 +327,7 @@ let s:filename_checks = {
|
|||||||
\ 'lss': ['file.lss'],
|
\ 'lss': ['file.lss'],
|
||||||
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse'],
|
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse'],
|
||||||
\ 'lynx': ['lynx.cfg'],
|
\ 'lynx': ['lynx.cfg'],
|
||||||
|
\ 'lyrics': ['file.lrc'],
|
||||||
\ 'm3build': ['m3makefile', 'm3overrides'],
|
\ 'm3build': ['m3makefile', 'm3overrides'],
|
||||||
\ 'm3quake': ['file.quake', 'cm3.cfg'],
|
\ 'm3quake': ['file.quake', 'cm3.cfg'],
|
||||||
\ 'm4': ['file.at'],
|
\ 'm4': ['file.at'],
|
||||||
|
Loading…
Reference in New Issue
Block a user