Skip to content

[typescript] regenerate parser for TS-specific Semgrep pattern positions#3

Draft
brandonspark wants to merge 1 commit into
mainfrom
fix/typescript-pattern-augmentation
Draft

[typescript] regenerate parser for TS-specific Semgrep pattern positions#3
brandonspark wants to merge 1 commit into
mainfrom
fix/typescript-pattern-augmentation

Conversation

@brandonspark
Copy link
Copy Markdown
Contributor

@brandonspark brandonspark commented Apr 30, 2026

Summary

Regenerated parser sources from the upstream grammar fix in semgrep/ocaml-tree-sitter-semgrep#588. The new parser admits decorator-only Semgrep patterns (LANG-477), bare types and type predicates plus .../metavariables in any type-position slot (LANG-489), ... inside interface bodies and object-type literals (LANG-500), ... inside enum bodies (LANG-502), and <...> in generic-parameter lists plus ... as a mapped-type value (LANG-504).

Companion PRs:

Test plan

  • Pull this submodule into semgrep and run make test.
  • Spot-check Semgrep rules using @$DEC, interface $I { ... }, type T = ..., enum $E { ... }, and function $F<...>(...) { ... } patterns.

🤖 Generated with Claude Code

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.

1 participant