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

https://github.com/vim/vim/commit/fb49e3cde79de4ce558c86d21a56eb9d60aeabd5

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Clason
2025-01-25 23:56:18 +01:00
committed by Christian Clason
co-authored by Christian Brabandt
parent 974a3f7a43
commit b8e947ed4e
+1 -1
View File
@@ -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