forked from aniani/vim
patch 8.2.3873: go.mod files are not recognized
Problem: go.mod files are not recognized. Solution: Check for the file name. (closes #9380)
This commit is contained in:
@@ -1091,7 +1091,9 @@ au BufNewFile,BufRead *.mmp setf mmp
|
||||
|
||||
" Modsim III (or LambdaProlog)
|
||||
au BufNewFile,BufRead *.mod
|
||||
\ if getline(1) =~ '\<module\>' |
|
||||
\ if expand("<afile>") =~ '\<go.mod$' |
|
||||
\ setf gomod |
|
||||
\ elseif getline(1) =~ '\<module\>' |
|
||||
\ setf lprolog |
|
||||
\ else |
|
||||
\ setf modsim3 |
|
||||
|
||||
Reference in New Issue
Block a user