# HG changeset patch # User Bram Moolenaar # Date 1685386804 -7200 # Node ID eae7e7217f26e437bfffacb0e7c5477f276e6995 # Parent fee0b6216514ca927be8898d5e6ff8847c5dceee patch 9.0.1591: some "gomod" files are not recognized Commit: https://github.com/vim/vim/commit/c9fbd2560f24180d2efa40028ed68427341d2d99 Author: Omar El Halabi Date: Mon May 29 19:59:45 2023 +0100 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 --- 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("") =~ '\") =~ '\