Add STL support and enable STAR highlighting #5924
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull-request combines two unrelated changes that both depend on recent changes pushed to
language-etc
(so it would've been a hassle to split them into separate PRs).Description
Technically, GitHub already supports
.stl
files in the form of an interactive viewer (both in the file-viewer and in fenced code-blocks). However, Linguist currently classifies these files as text. This PR adds STL as a first-class language, improving discoverability in code-search and enabling syntax highlighting in source view).The colour I chose,
#373b5e
, was averaged from a thumbnail of the cover for Automated Fabrication, which was the book that first documented the STL format.A grammar for STAR files was added today in Alhadis/language-etc@42e30c8.
Checklist:
For once, I didn't bother doing a code-search. I'm going on a limb and assuming that if GitHub went out of their way to add 3D viewer functionality specifically for
.stl
files (even when other formats are more deserving), then STL is probably plenty relevant enough already.The various
cube*.stl
samples were all edited from the STL sample featured in GitHub's documentation.Because
.stl
is a very common extension spanning a broad variety of uses, I've added it as a generic extension.