Skip to content

Commit

Permalink
patch 9.0.0604: luacheckrc file is not recognized
Browse files Browse the repository at this point in the history
Problem:    Luacheckrc file is not recognized.
Solution:   Use lua filetype for luacheckrc. (closes #11236)
  • Loading branch information
ObserverOfTime authored and brammool committed Sep 27, 2022
1 parent 7c1cbb6 commit 49c311c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions runtime/filetype.vim
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/testdir/test_filetype.vim
Expand Up @@ -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'],
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -699,6 +699,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
604,
/**/
603,
/**/
Expand Down

0 comments on commit 49c311c

Please sign in to comment.