Skip to content

Reporting only real programming languages as such #1194

@pombredanne

Description

@pombredanne

We use the Pygments libraries to detect lexable text and report it as the programming language. But Pygments can lex many other types beyond programming langauges (e.g. INI files, etc).
We should instead:

  1. return the Pygments lexer name as a new, extra filetype attribute
  2. use a stricter, subset list of such types as real, actual programming languages AND confront that with the actual file extensions for improved accuracy.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions