From c9fbd2560f24180d2efa40028ed68427341d2d99 Mon Sep 17 00:00:00 2001 From: Omar El Halabi Date: Mon, 29 May 2023 19:59:45 +0100 Subject: [PATCH] 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) --- runtime/autoload/dist/ft.vim | 4 ++-- src/testdir/test_filetype.vim | 6 ++++++ src/version.c | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) 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("") =~ '\") =~ '\