Skip to content

enhancement: add missing common file extensions to language detection - #945

Open
Lakshay Chauhan (nos1dot618) wants to merge 1 commit into
microsoft:mainfrom
nos1dot618:enhancement/944-add-missing-extensions
Open

enhancement: add missing common file extensions to language detection#945
Lakshay Chauhan (nos1dot618) wants to merge 1 commit into
microsoft:mainfrom
nos1dot618:enhancement/944-add-missing-extensions

Conversation

@nos1dot618

Copy link
Copy Markdown

This adds support for several commonly used file extensions that are currently missing from the existing LSH language definitions.

Scope

The changes are limited to existing language definitions and do not introduce any new dependencies or syntax highlighting logic.

The changes include:

  • C++: add .hh, .hxx, and .ixx
  • F#: add .fsscript
  • JSON: add .jsonl and .ndjson
  • Markdown: add .markdown
  • XML: add .xhtml
  • remove the duplicate .xml path from the XML definition

Validation

  • cargo test -q

These changes only expand file extension detection for existing language definitions and should not affect the highlighting behavior of existing file types.

Notes

@nos1dot618

Copy link
Copy Markdown
Author

Hey Leonard Hecker (@lhecker), Dustin L. Howett (@DHowett), could you please review this PR.
Thanks

@nos1dot618 Lakshay Chauhan (nos1dot618) Aug 28, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related: This is missing highlighting support for multiple languages in fenced code block.
Not sure, whether this is relevant for this PR or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhancement: add missing common file extensions to language detection

1 participant