diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 2bb992c1a99..67b76826727 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -1034,11 +1034,17 @@ find_entries (file) | |||
| 1034 | PAS_funcs (inf); | 1034 | PAS_funcs (inf); |
| 1035 | goto close_and_return; | 1035 | goto close_and_return; |
| 1036 | } | 1036 | } |
| 1037 | /* If .f or .for, assume it is fortran or nothing. */ | ||
| 1038 | if (cp && (streq (cp + 1, "f") || streq (cp + 1, "for"))) | ||
| 1039 | { | ||
| 1040 | PF_funcs (inf); | ||
| 1041 | goto close_and_return; | ||
| 1042 | } | ||
| 1037 | /* if not a .c or .h or .y file, try fortran */ | 1043 | /* if not a .c or .h or .y file, try fortran */ |
| 1038 | else if (cp && ((cp[1] != 'c' | 1044 | if (cp && ((cp[1] != 'c' |
| 1039 | && cp[1] != 'h' | 1045 | && cp[1] != 'h' |
| 1040 | && cp[1] != 'y') | 1046 | && cp[1] != 'y') |
| 1041 | || (cp[1] != 0 && cp[2] != 0))) | 1047 | || (cp[1] != 0 && cp[2] != 0))) |
| 1042 | { | 1048 | { |
| 1043 | if (PF_funcs (inf) != 0) | 1049 | if (PF_funcs (inf) != 0) |
| 1044 | goto close_and_return; | 1050 | goto close_and_return; |