To: vim_dev@googlegroups.com Subject: Patch 8.2.3873 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3873 Problem: go.mod files are not recognized. Solution: Check for the file name. (closes #9380) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.3872/runtime/filetype.vim 2021-12-17 20:52:53.231772366 +0000 --- runtime/filetype.vim 2021-12-22 19:15:04.461214561 +0000 *************** *** 1091,1097 **** " Modsim III (or LambdaProlog) au BufNewFile,BufRead *.mod ! \ if getline(1) =~ '\' | \ setf lprolog | \ else | \ setf modsim3 | --- 1091,1099 ---- " Modsim III (or LambdaProlog) au BufNewFile,BufRead *.mod ! \ if expand("") =~ '\' | \ setf lprolog | \ else | \ setf modsim3 | *** ../vim-8.2.3872/src/testdir/test_filetype.vim 2021-12-17 20:52:53.231772366 +0000 --- src/testdir/test_filetype.vim 2021-12-22 19:12:31.473410530 +0000 *************** *** 204,209 **** --- 204,210 ---- \ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'], \ 'gnuplot': ['file.gpi'], \ 'go': ['file.go'], + \ 'gomod': ['go.mod'], \ 'gp': ['file.gp', '.gprc'], \ 'gpg': ['/.gnupg/options', '/.gnupg/gpg.conf', '/usr/any/gnupg/options.skel', 'any/.gnupg/gpg.conf', 'any/.gnupg/options', 'any/usr/any/gnupg/options.skel'], \ 'grads': ['file.gs'], *** ../vim-8.2.3872/src/version.c 2021-12-22 18:45:25.255852542 +0000 --- src/version.c 2021-12-22 19:17:07.945047262 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3873, /**/ -- From "know your smileys": (X0||) Double hamburger with lettuce and tomato /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///