From 858928b5b6a49c23b1c4b08c9fb0652a6476f9be Mon Sep 17 00:00:00 2001 From: ColemanTom <15375218+ColemanTom@users.noreply.github.com> Date: Tue, 6 Sep 2022 14:07:03 +1000 Subject: [PATCH] Add file extensions for modern fortran The standard file extension for modern fortran is f90 (or F90). f95, f03 and f08 are less popular but still valid. Extensions f, for, ftn, etc, for fixed-form fortran are not included. --- identify/extensions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/identify/extensions.py b/identify/extensions.py index f757cfc..9a3a803 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -51,6 +51,10 @@ 'erb': {'text', 'erb'}, 'exe': {'binary'}, 'eyaml': {'text', 'yaml'}, + 'f03': {'text', 'fortran'}, + 'f08': {'text', 'fortran'}, + 'f90': {'text', 'fortran'}, + 'f95': {'text', 'fortran'}, 'feature': {'text', 'gherkin'}, 'fish': {'text', 'fish'}, 'fits': {'binary', 'fits'},