diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-12-31 16:48:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 16:48:50 -0800 |
commit | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 (patch) | |
tree | 2e85f70e0fecf793ebce68c69d9751f711c49f42 | |
parent | a1cf000655d85c1f6105c83da1e8fb58a0074e9b (diff) | |
download | spack-4d94c4c4600f42a7a3bb3d06ec879140bc259304.tar.gz spack-4d94c4c4600f42a7a3bb3d06ec879140bc259304.tar.bz2 spack-4d94c4c4600f42a7a3bb3d06ec879140bc259304.tar.xz spack-4d94c4c4600f42a7a3bb3d06ec879140bc259304.zip |
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`.
-rw-r--r-- | .gitattributes | 2 |
1 files changed, 2 insertions, 0 deletions
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 |