neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit b8e947ed4ed04f9aeef471f579451bbf2bb2993d
parent 974a3f7a438bb772bd681987b25214784c52c7da
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Sat, 25 Jan 2025 16:26:13 +0100

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>

Diffstat:
Mruntime/lua/vim/filetype/detect.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua @@ -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