Skip to content

Release files generated by ocaml-tree-sitter e36ced3.#2

Merged
malaverdiere merged 1 commit into
mainfrom
marc-andre/lang-578-goal-4-handle-necessary-semgrep-grammar-changes-step-4
Jul 6, 2026
Merged

Release files generated by ocaml-tree-sitter e36ced3.#2
malaverdiere merged 1 commit into
mainfrom
marc-andre/lang-578-goal-4-handle-necessary-semgrep-grammar-changes-step-4

Conversation

@malaverdiere

@malaverdiere malaverdiere commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Relates to LANG-584 but does NOT close it.

Security

  • Change has security implications (if so, ping the security team)

@malaverdiere malaverdiere merged commit e3f2833 into main Jul 6, 2026
3 checks passed
malaverdiere added a commit to semgrep/ocaml-tree-sitter-semgrep that referenced this pull request Jul 6, 2026
…in JSX (#619)

### Checklist

- [x] Any new parsing code was already published, integrated, and merged into Semgrep. DO NOT MERGE THIS PR BEFORE THE SEMGREP INTEGRATION WORK WAS COMPLETED.
- [x] Change has no security implications (otherwise, ping the security team)

### **Related PRs:**

- semgrep/semgrep-javascript#2
- **NOTE:** no integration in semgrep-proprietary at this stage.

### What

Closes LANG-584: an agent skill that repairs the semgrep extension grammar after an upstream tree-sitter bump, plus the JavaScript fix produced by running it.

- **`.agents/skills/fix-semgrep-grammar/SKILL.md`** — drives an agent through: preconditions, then a bounded fix loop with strict edit boundaries, and machine-readable exit statuses.
- **`doc/semgrep-constructs.md`** — inventory mapping user-facing semgrep pattern syntax to the grammar-level rule names used across the wrappers; linked from the doc index and referenced by the skill.
- **`doc/fix-semgrep-grammar-skill.md`** — short usage doc (inputs, where it operates, how to run it by hand, exit statuses), per LANG-584.
- **`lang/semgrep-grammars/src/semgrep-javascript/`** — We obtain parity with the Menhir parser by making `_jsx_child` to accept a bare `>` among JSX children and add a tree-sitter grammar test.

### Validation

- Ran the skill for java script, then `test-lang javascript` exits 0 with no Blank-node warnings.

The skill was trained on fixes required for JS as well as Solidity. The Solidity fix will be in a separate PR. This also relates to LANG-579 but does NOT close it.
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