linguist
linguist copied to clipboard
Using guess_lexer_for_filename() in Pygments for detection of language
Why are we not using guess_lexer_for_filename()
or guess_lexer()
that's already available in Pygments for language-detection?
I'm trying to understand if there's any added advantage of having the same thing rewritten in the codebase.
Speed of execution matters.