Skip to content

Add more languages to DetectLanguage() #1

@grainme

Description

@grainme

Description

DetectLanguage() only recognizes some languages but not all that we support (OCaml, Zig, C#, etc.).

Problem

For unsupported languages, it returns "UNKNOWN".

Solution

Add missing language patterns to the switch statement following the existing pattern.

Additional Context

  • Consider whether we should use case-insensitive comparisons
  • Should we handle version suffixes (e.g., python3, python3.9)?
  • Do we even need this function, or shall we leave this task to the user?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions