From: Omar El Halabi Date: Mon, 29 May 2023 18:59:45 +0000 (+0100) Subject: patch 9.0.1591: some "gomod" files are not recognized X-Git-Tag: v9.0.1591 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9fbd2560f24180d2efa40028ed68427341d2d99;p=thirdparty%2Fvim.git patch 9.0.1591: some "gomod" files are not recognized Problem: Some "gomod" files are not recognized. Solution: Check for "go.mod" file name before checking out the contents. (Omar El Halabi, closes #12462) --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 7ac053eb2f..770f7066c3 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -484,14 +484,14 @@ enddef export def FTmod() if exists("g:filetype_mod") exe "setf " .. g:filetype_mod + elseif expand("") =~ '\") =~ '\