From 994d50a5661e072a905f37feabdb97585e783d04 Mon Sep 17 00:00:00 2001 From: Ashwin Vishnu <9155111+ashwinvis@users.noreply.github.com> Date: Fri, 15 May 2020 13:04:25 +0200 Subject: [PATCH 1/2] Override syntax highlighting for fypp files Fixes #185 --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index 55095e948..40d7d4f39 100644 --- a/.gitattributes +++ b/.gitattributes @@ -29,3 +29,6 @@ codecov.yml export-ignore # Perform substitutions when `git export`ing these files .VERSION export-subst + +# Override syntax highlighting +*.fypp linguist-language=fortran From bfaa0306177902e8d79f48a9468beacc302fae75 Mon Sep 17 00:00:00 2001 From: Ashwin Vishnu <9155111+ashwinvis@users.noreply.github.com> Date: Fri, 15 May 2020 13:16:24 +0200 Subject: [PATCH 2/2] Move up linguist syntax override in gitattributes --- .gitattributes | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index 40d7d4f39..cf8980ce9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,9 @@ # Set the default behavior, in case people don't have core.autocrlf set. * text=auto +# Override syntax highlighting +*.fypp linguist-language=fortran + # Explicitly declare text files you want to always be normalized and converted # to native line endings on checkout. *.c text @@ -28,7 +31,4 @@ codecov.yml export-ignore .github export-ignore # Perform substitutions when `git export`ing these files -.VERSION export-subst - -# Override syntax highlighting -*.fypp linguist-language=fortran +.VERSION export-subst