mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
vim-patch:fb49e3c: runtime(filetype): commit 99181205c5f8284a3 breaks V lang detection
so make the regex more strict and have it check for a parenthesis.
See:
https://github.com/vlang/v/blob/master/examples/submodule/mymodules/submodule/sub_functions.v
related: vim/vim#16513
fb49e3cde7
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Clason
parent
974a3f7a43
commit
b8e947ed4e
@ -1777,7 +1777,7 @@ function M.v(_, bufnr)
|
||||
or line:find('%(%*') and not line:find('/[/*].*%(%*')
|
||||
then
|
||||
return 'coq'
|
||||
elseif findany(line, { ';%s*$', ';%s*/[/*]', '^%s*module' }) then
|
||||
elseif findany(line, { ';%s*$', ';%s*/[/*]', '^%s*module%s+%w+%s*%(' }) then
|
||||
return 'verilog'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user