Conversation
LLM use case: as "github syntax highlighter" doesn't give very good results when I try to find out what GitHub specifically uses, I turned to FastGPT.

Its answer ("Tree-sitter grammars are used for syntax highlighting") was wrong, while pointed to the correct SO answer (pointing to Linguist) as a reference:

https://stackoverflow.com/questions/8886360/what-javascript-syntax-highlighter-does-github-use
1
0
2

@buherator the accepted SO answer is wrong? Read the comments closely; they say linguist is used only for filetype detection.

The second answer says "tree-sitter" and links to a GH discussion with more implementation details from someone at GH:

https://github.com/github-linguist/linguist/discussions/5572#discussioncomment-1355712

1
1
0
@bradlarsen I (and SO) stand corrected then, thanks for the information!
0
0
1