add support for zig#6
Open
omkarbhad wants to merge 1 commit into
Open
Conversation
Register Zig as a development-stage language with .zig and .zon extensions. This only updates the shared language registry. It does not change opengrep behavior until the opengrep repo bumps this submodule and wires the matching Lang.Zig/parser dispatch. When opengrep consumes this change, the submodule bump must be paired with working Zig parser dispatch or an explicit rejection path so users do not get accepted -lang zig scans with empty parser results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Zig to the shared language registry as a development-stage language.
Registered extensions:
.zig.zonexample_extis set to.zigso snippet-to-file generation uses normal Zig source files rather than.zonbuild config files.Scope
This PR only updates
semgrep-interfaces.It does not change opengrep behavior until opengrep bumps this submodule and adds the matching parser/language wiring.
Future opengrep work is tracked in
omkarbhad/opengrep-zig, which provides the Zig tree-sitter language repo needed for the eventual full Zig support PR.Sequencing Note
When opengrep consumes this change, the submodule bump must be paired with working Zig parser dispatch or an explicit rejection path. Otherwise
-lang zigcould become accepted before Zig scans produce meaningful parser results.Verification
python3 ./generategenerate.pyLanguage.mlLanguage.mlilang.jsonopam exec -- ocamlc -c Language.mli && opam exec -- ocamlc -c Language.ml