mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0604: luacheckrc file is not recognized
Problem: Luacheckrc file is not recognized. Solution: Use lua filetype for luacheckrc. (closes #11236)
This commit is contained in:
committed by
Bram Moolenaar
parent
7c1cbb6cd4
commit
49c311c9b1
@@ -1112,6 +1112,9 @@ au BufNewFile,BufRead *.lou,*.lout setf lout
|
||||
" Lua
|
||||
au BufNewFile,BufRead *.lua setf lua
|
||||
|
||||
" Luacheck
|
||||
au BufNewFile,BufRead .luacheckrc setf lua
|
||||
|
||||
" Luarocks
|
||||
au BufNewFile,BufRead *.rockspec setf lua
|
||||
|
||||
|
@@ -328,7 +328,7 @@ let s:filename_checks = {
|
||||
\ 'lpc': ['file.lpc', 'file.ulpc'],
|
||||
\ 'lsl': ['file.lsl'],
|
||||
\ 'lss': ['file.lss'],
|
||||
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse'],
|
||||
\ 'lua': ['file.lua', 'file.rockspec', 'file.nse', '.luacheckrc'],
|
||||
\ 'lynx': ['lynx.cfg'],
|
||||
\ 'lyrics': ['file.lrc'],
|
||||
\ 'm3build': ['m3makefile', 'm3overrides'],
|
||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
604,
|
||||
/**/
|
||||
603,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user