-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add additional internal pattern combinator #180
feat: add additional internal pattern combinator #180
Conversation
Backwards compatability summary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is that? Is there some doc about it and about its motivation?
1367a74
to
bed2f96
Compare
Allows `semgrep-internal-patterns-allow-disjoint` to appear everywhere (other than taint) where a `patterns` may appear. See notion for semantics.
bed2f96
to
a9de831
Compare
@@ -685,6 +685,7 @@ type matching_operation <ocaml attr="deriving show { with_path = false}"> = [ | |||
| And | |||
| Or | |||
| Inside | |||
| Anywhere |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we usually try to indicate when something was introduced, like (* since semgrep 1.49 *)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll put up another PR to add a note.
Allows
semgrep-internal-patterns-allow-disjoint
to appear everywhere (other than taint) where apatterns
may appear. See notion for semantics.make setup && make
to update the generated code after editing a.atd
file (TODO: have a CI check)For example, the Semgrep backend need to still be able to consume data generated
by Semgrep 1.17.0.
See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades