Detect zig zon files by softprops · Pull Request #6820 · github-linguist/linguist · GitHub
Skip to content

Detect zig zon files#6820

Merged
lildude merged 2 commits into
github-linguist:masterfrom
softprops:detect-zig-zon-files
Jun 7, 2024
Merged

Detect zig zon files#6820
lildude merged 2 commits into
github-linguist:masterfrom
softprops:detect-zig-zon-files

Conversation

@softprops

@softprops softprops commented May 10, 2024

Copy link
Copy Markdown
Contributor

Add support for Zig package manager file extension .zig.zon files introduced in 0.11.0. Care was taken to be precise with the package managers file extension conventions, because I also found non-zig .zon files when doing a code search for just .zon files.

Description

Zig .zon files were introduced zig's 0.11.0 release to fulfill the zig build tool's declarative package management story for describing a project and its dependencies. Additional documentation on the format can be found here. It's syntax is valid zig, (essentially a these are struct files) so these files may be parsed and syntax highlighted the same as regular zig files. Today these have no syntax highlighting.

Screenshot 2024-05-11 at 11 47 43 AM

Checklist:

@softprops softprops requested a review from a team as a code owner May 10, 2024 15:01
@softprops

Copy link
Copy Markdown
Contributor Author

@lildude lildude 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.

LGTM. Thanks.

Note: this PR will not be merged until close to when the next release is made. See here for more details.

@lildude lildude added this pull request to the merge queue Jun 7, 2024
Merged via the queue into github-linguist:master with commit 712c4eb Jun 7, 2024
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants