Skip to content

[php] add Semgrep grammar augmentation (was empty)#4

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

[php] add Semgrep grammar augmentation (was empty)#4
brandonspark wants to merge 1 commit intomainfrom
fix/php-pattern-augmentation

Conversation

@brandonspark
Copy link
Copy Markdown
Contributor

Summary

Auto-generated release from semgrep/ocaml-tree-sitter-semgrep#583, which builds out the previously-empty PHP Semgrep grammar augmentation.

The augmentation adds:

  • semgrep_ellipsis (...) in expression / statement / class-body / enum-body / formal-parameter / match-arm positions
  • semgrep_deep_ellipsis (<... expr ...>)
  • semgrep_variadic_metavariable ($...ARGS) in formal-parameter and argument positions
  • semgrep_metavar_ident ($FOO) in class / interface / trait / enum / function / method names, named types, base/interface clauses, and attribute names

PHP variable-variable $$F keeps its native dynamic_variable_name parse — see linked PR for details.

Closes LANG-474, LANG-475.

Test plan

  • make build && make test passes upstream (105 tests).
  • Bump submodule SHA in semgrep-proprietary once both PRs are merged.

🤖 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