open-policy-agent / opa

Open Policy Agent (OPA) is an open source, general-purpose policy engine.
https://www.openpolicyagent.org
Apache License 2.0
9.31k stars 1.29k forks source link

Add remainder operator to grammar #6767

Closed anderseknert closed 1 month ago

anderseknert commented 1 month ago

Found via https://github.com/FallenAngel97/tree-sitter-rego , which used the OPA grammar for its tree-sitter implementation, and had this missing.

netlify[bot] commented 1 month ago

Deploy Preview for openpolicyagent ready!

Name Link
Latest commit 98d3172f9685cff4ba36c010ff6de17436cde0fc
Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/665622226414eb0008d1e03d
Deploy Preview https://deploy-preview-6767--openpolicyagent.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

anderseknert commented 1 month ago

@srenatus yeah, I'm just learning about it, but it's quite neat! I especially like how the grammar can be tested.