Skip to content

How does linguist assign colors to the text mate scopes provided by the grammars? #5204

Answered by lildude
Animeshz asked this question in Q&A
Discussion options

You must be logged in to vote

Linguist doesn't assign the colours. This is entirely controlled by the stylesheet at https://github.com/primer/github-syntax-light (Lightshow uses this one) and https://github.com/primer/github-syntax-dark based on the grammar scopes applied by the grammar. @Alhadis provided a great summary of the grammar scopes to colour in his comment at #4568 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Alhadis
Comment options

Alhadis Feb 9, 2021
Collaborator

Answer selected by Animeshz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants