Skip to content

Add Zig highlighting - #925

Open
Ibrahim (ibrahimalizade) wants to merge 2 commits into
microsoft:mainfrom
ibrahimalizade:main
Open

Add Zig highlighting#925
Ibrahim (ibrahimalizade) wants to merge 2 commits into
microsoft:mainfrom
ibrahimalizade:main

Conversation

@ibrahimalizade

Copy link
Copy Markdown

This PR adds initial LSH syntax highlighting support for Zig including .zon files (Zig Object Notation)

It also includes highlighting test file.

Scope

This is a lightweight LSH-only change with no new dependencies.

The changes are limited to syntax definitions and highlighting fixtures:

  • new LSH definition for the Zig
  • new highlighting test sample

Validation

  • cargo test -q

Notes

You may notice that this PR is heavily inspired by and modelled after #791 and #796. I don't really know how to do PRs and never done them so I decided that I will do that.

@ibrahimalizade
Ibrahim (ibrahimalizade) marked this pull request as draft August 19, 2026 18:52
@ibrahimalizade

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@ibrahimalizade
Ibrahim (ibrahimalizade) marked this pull request as ready for review August 20, 2026 18:12

@lhecker Leonard Hecker (lhecker) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't really know how to do PRs and never done them so I decided that I will do that.

I see. It would be trivial to fix for me, but it's better for you to learn the ropes!

If you check the other PR you'll find that the files have to go somewhere particular, not just in some random directory. So put that AI of yours away, install rustup and understand how this project works and can be tested locally. It will be difficult, but worthwhile!

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.

2 participants