Skip to content

[python] Semgrep grammar augmentation - pattern parsing fixes#2

Draft
brandonspark wants to merge 1 commit intomainfrom
fix/python-pattern-augmentation
Draft

[python] Semgrep grammar augmentation - pattern parsing fixes#2
brandonspark wants to merge 1 commit intomainfrom
fix/python-pattern-augmentation

Conversation

@brandonspark
Copy link
Copy Markdown
Contributor

Summary

Generated artifacts for Python grammar augmentation that fixes parsing of canonical Semgrep pattern idioms. Source change is in ocaml-tree-sitter-semgrep#577.

Tickets fixed

  • LANG-460 - ... in a function parameter list (def $F(...): ...)
  • LANG-461 - $...ARGS variadic metavariable in call argument lists
  • LANG-463 - typed metavariable ($X : T)
  • LANG-464 - ... inside match / case class/list/tuple/dict patterns
  • LANG-465 - ... as an element of a dict literal

Tickets deferred

  • LANG-462 - deep ellipsis (needs scanner work, tracked separately).

Provenance

Generated by ./release --branch fix/python-pattern-augmentation python from ocaml-tree-sitter-semgrep PR #577 (commit 246f276).

Test plan

  • CI green
  • Tracking PR in ocaml-tree-sitter-semgrep merges first

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