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)
|
" Modsim III (or LambdaProlog)
|
||||||
au BufNewFile,BufRead *.mod
|
au BufNewFile,BufRead *.mod
|
||||||
\ if getline(1) =~ '\<module\>' |
|
\ if expand("<afile>") =~ '\<go.mod$' |
|
||||||
|
\ setf gomod |
|
||||||
|
\ elseif getline(1) =~ '\<module\>' |
|
||||||
\ setf lprolog |
|
\ setf lprolog |
|
||||||
\ else |
|
\ else |
|
||||||
\ setf modsim3 |
|
\ setf modsim3 |
|
||||||
|
|||||||
@ -204,6 +204,7 @@ let s:filename_checks = {
|
|||||||
\ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
|
\ 'gnash': ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'],
|
||||||
\ 'gnuplot': ['file.gpi'],
|
\ 'gnuplot': ['file.gpi'],
|
||||||
\ 'go': ['file.go'],
|
\ 'go': ['file.go'],
|
||||||
|
\ 'gomod': ['go.mod'],
|
||||||
\ 'gp': ['file.gp', '.gprc'],
|
\ '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'],
|
\ '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'],
|
\ 'grads': ['file.gs'],
|
||||||
|
|||||||
@ -749,6 +749,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3873,
|
||||||
/**/
|
/**/
|
||||||
3872,
|
3872,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user