From 4d94c4c4600f42a7a3bb3d06ec879140bc259304 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 31 Dec 2020 16:48:50 -0800 Subject: linguist: update .gitattributes for better linguist parsing (#20639) This adds two lines to `.gitattributes`: - [x] exclude vendored code from GitHub's language calculation - [x] recognize `.lp` files as Prolog (closest language to ASP that linguist supports) It looks like there have been two attempts (https://github.com/github/linguist/issues/3867, https://github.com/github/linguist/issues/4860) to add ASP as a language to Linguist, but it's not widespread enough to be standard yet (or at least the people who submitted the PRs haven't been able to show enough stats to prove it). We'll settle for calling ASP "Prolog" for now as that'll get us some syntax highlighting for `concretize.lp`. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitattributes') diff --git a/.gitattributes b/.gitattributes index 95105a3731..5299044761 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ *.py diff=python +*.lp linguist-language=Prolog +lib/spack/external/* linguist-vendored -- cgit v1.2.3-70-g09d2