enhancement: add missing common file extensions to language detection
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 14.6k
- Forks
- 734
- Avg merge
- 8h 40m
- Merged PRs (30d)
- 4
Description
Some common file extensions are currently missing from the language definitions.
The following extensions could be added:
* C++ -> `.hh`, `.hxx`, `.ixx`
* F# -> `.fsscript`
* JSON -> `.jsonl`, `.ndjson`
* Markdown -> `.markdown`
* XML -> `.xhtml`
There is also a duplicate `.xml` entry in the XML language definition that can be removed.
These changes would allow `edit` to recognize more commonly used file types without changing the existing syntax highlighting behavior.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the language definitions used by edit's file-type detection, then find the XML definition and its duplicate .xml entry. Add the listed extensions without changing syntax highlighting behavior, remove the duplicate, and verify that edit recognizes each extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, fsharp, json, markdown, rust, xml
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 78/100