mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
vim-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: vim/vim#14370
a917bd58bd
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -1389,6 +1389,8 @@ local filename = {
|
|||||||
['.lsl'] = detect.lsl,
|
['.lsl'] = detect.lsl,
|
||||||
['.busted'] = 'lua',
|
['.busted'] = 'lua',
|
||||||
['.luacheckrc'] = 'lua',
|
['.luacheckrc'] = 'lua',
|
||||||
|
['config.ld'] = 'lua',
|
||||||
|
['rock_manifest'] = 'lua',
|
||||||
['lynx.cfg'] = 'lynx',
|
['lynx.cfg'] = 'lynx',
|
||||||
['m3overrides'] = 'm3build',
|
['m3overrides'] = 'm3build',
|
||||||
['m3makefile'] = 'm3build',
|
['m3makefile'] = 'm3build',
|
||||||
|
@@ -386,7 +386,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ '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'],
|
||||||
|
Reference in New Issue
Block a user