Skip to content

Commit a1d7060

Browse files
authored
Merge pull request #1897 from idodeclare/feature/fortran_suffixes
Issue #1896 : remove INC as a default Fortran suffix
2 parents 5fcb376 + 65cfa22 commit a1d7060

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/org/opensolaris/opengrok/analysis/fortran/FortranAnalyzerFactory.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
/*
2121
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
22+
* Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
2223
*/
24+
2325
package org.opensolaris.opengrok.analysis.fortran;
2426

2527
import org.opensolaris.opengrok.analysis.FileAnalyzer;
@@ -29,11 +31,27 @@
2931
public class FortranAnalyzerFactory extends FileAnalyzerFactory {
3032

3133
private static final String name = "Fortran";
32-
34+
35+
/**
36+
* Includes Fortran free-form extension F90 and its successors, per
37+
* "Fortran"¹: F95, F03, F08, F15.
38+
* <p>
39+
* "Intel® Fortran Compiler -- effect of file extensions on source form"
40+
* enumerates "F", "FTN", and "FOR" as "Fortran fixed-form source" -- which
41+
* is not specifically handled by {@link FortranAnalyzer} -- but "F" is
42+
* also kept as an originally-supported suffix.
43+
* <p>
44+
* ¹https://en.wikipedia.org/wiki/Fortran, Wikipedia, Creative Commons
45+
* Attribution-ShareAlike 3.0,
46+
* https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License
47+
*/
3348
private static final String[] SUFFIXES = {
3449
"F",
3550
"F90",
36-
"INC",};
51+
"F95",
52+
"F03",
53+
"F08",
54+
"F15"};
3755

3856
public FortranAnalyzerFactory() {
3957
super(null, null, SUFFIXES, null, null, "text/plain", Genre.PLAIN, name);

0 commit comments

Comments
 (0)