mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.1.0249: filetype: rock_manifest and config.ld files are not recognized
Problem: filetype: rock_manifest and config.ld files are not recognized Solution: Detect 'rock_manifest' and 'config.ld' as lua (Wu, Zhenyu) closes: #14370 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3b497aa247
commit
a917bd58bd
@@ -1269,7 +1269,10 @@ au BufNewFile,BufRead .luaurc setf jsonc
|
|||||||
au BufNewFile,BufRead .luacheckrc setf lua
|
au BufNewFile,BufRead .luacheckrc setf lua
|
||||||
|
|
||||||
" Luarocks
|
" Luarocks
|
||||||
au BufNewFile,BufRead *.rockspec setf lua
|
au BufNewFile,BufRead *.rockspec,rock_manifest setf lua
|
||||||
|
|
||||||
|
" Luadoc, Ldoc
|
||||||
|
au BufNewFile,BufRead config.ld setf lua
|
||||||
|
|
||||||
" Linden Scripting Language (Second Life)
|
" Linden Scripting Language (Second Life)
|
||||||
au BufNewFile,BufRead *.lsl call dist#ft#FTlsl()
|
au BufNewFile,BufRead *.lsl call dist#ft#FTlsl()
|
||||||
|
@@ -396,7 +396,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
lpc: ['file.lpc', 'file.ulpc'],
|
lpc: ['file.lpc', 'file.ulpc'],
|
||||||
lsl: ['file.lsl'],
|
lsl: ['file.lsl'],
|
||||||
lss: ['file.lss'],
|
lss: ['file.lss'],
|
||||||
lua: ['file.lua', 'file.tlu', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted'],
|
lua: ['file.lua', 'file.tlu', 'file.rockspec', 'file.nse', '.luacheckrc', '.busted', 'rock_manifest', 'config.ld'],
|
||||||
luau: ['file.luau'],
|
luau: ['file.luau'],
|
||||||
lynx: ['lynx.cfg'],
|
lynx: ['lynx.cfg'],
|
||||||
lyrics: ['file.lrc'],
|
lyrics: ['file.lrc'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
249,
|
||||||
/**/
|
/**/
|
||||||
248,
|
248,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user