Skip to content

Is any benchmark/accurate for guess_lexer_for_filename available? #1950

@Zackhardtoname

Description

@Zackhardtoname

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions