comparison runtime/filetype.vim @ 26688:4b8d0a62f78b v8.2.3873

patch 8.2.3873: go.mod files are not recognized Commit: https://github.com/vim/vim/commit/82b3b4c6cf2973fe767f8e2311482af0bd95267e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 22 19:19:08 2021 +0000 patch 8.2.3873: go.mod files are not recognized Problem: go.mod files are not recognized. Solution: Check for the file name. (closes https://github.com/vim/vim/issues/9380)
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Dec 2021 20:30:04 +0100
parents 7efd8f561d04
children 1ef0c9a92168
comparison
equal deleted inserted replaced
26687:c997d581cf03 26688:4b8d0a62f78b
1089 " Symbian meta-makefile definition (MMP) 1089 " Symbian meta-makefile definition (MMP)
1090 au BufNewFile,BufRead *.mmp setf mmp 1090 au BufNewFile,BufRead *.mmp setf mmp
1091 1091
1092 " Modsim III (or LambdaProlog) 1092 " Modsim III (or LambdaProlog)
1093 au BufNewFile,BufRead *.mod 1093 au BufNewFile,BufRead *.mod
1094 \ if getline(1) =~ '\<module\>' | 1094 \ if expand("<afile>") =~ '\<go.mod$' |
1095 \ setf gomod |
1096 \ elseif getline(1) =~ '\<module\>' |
1095 \ setf lprolog | 1097 \ setf lprolog |
1096 \ else | 1098 \ else |
1097 \ setf modsim3 | 1099 \ setf modsim3 |
1098 \ endif 1100 \ endif
1099 1101