I have been wondering about the performance difference between Pygments and alternatives like go-enry.
I am mainly concerned about the accuracy the guess_lexer_for_filename function in Pygments in identifying the correct programming languages by filename and file content. Is there any benchmark or general experiences from usage available?
I also notice that there's not a build-in way to customize the matching rules so advanced users would need to write some custom code, which is fine.
I have been wondering about the performance difference between Pygments and alternatives like go-enry.
I am mainly concerned about the accuracy the guess_lexer_for_filename function in Pygments in identifying the correct programming languages by filename and file content. Is there any benchmark or general experiences from usage available?
I also notice that there's not a build-in way to customize the matching rules so advanced users would need to write some custom code, which is fine.