Skip to content

Conversation

@charlieegan3
Copy link
Contributor

This adds a custom rego theme for prism since they are not accepting mainline updates right now.

Example in light and dark

Screenshot 2025-12-01 at 11 52 37 Screenshot 2025-12-01 at 11 52 45

@charlieegan3 charlieegan3 force-pushed the docs-string-interpol-formatting branch 3 times, most recently from e04b62a to a4d556b Compare December 1, 2025 12:00
@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 99ab5ed
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/692d82e8e6615f0007d8028a
😎 Deploy Preview https://deploy-preview-8092--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 project configuration.

@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 9812dbe
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/692d9666559a710008c2b033
😎 Deploy Preview https://deploy-preview-8092--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 project configuration.

Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

@srenatus
Copy link
Contributor

srenatus commented Dec 1, 2025

Hmm funny how dark mode has more italic 😎

@charlieegan3
Copy link
Contributor Author

Hmm funny how dark mode has more italic 😎

Indeed, there are some oddities with the default themes...

I looked into migrating to using https://shiki.style instead so we could use the same grammar as vscode-opa but that wasn't as simple as this and was further from the safe path of docusaurus so I went with this instead!

This adds a custom rego theme for prism since they are not accepting
mainline updates right now.

Signed-off-by: Charlie Egan <[email protected]>
@charlieegan3 charlieegan3 force-pushed the docs-string-interpol-formatting branch from a4d556b to 9812dbe Compare December 1, 2025 13:21
@charlieegan3 charlieegan3 enabled auto-merge (rebase) December 1, 2025 13:21
@charlieegan3 charlieegan3 merged commit f0cb938 into open-policy-agent:main Dec 1, 2025
19 of 20 checks passed
charlieegan3 added a commit to charlieegan3/tree-sitter-rego that referenced this pull request Jan 5, 2026
Implement string interpolation for both double-quoted and raw strings:
- $"{expr}" for double-quoted interpolated strings
- $`{expr}` for raw interpolated strings

Please see open-policy-agent/opa#8109 for the upstream
work on this same feature.

Other related merged PRs for other editors and projects:
- open-policy-agent/vscode-opa#375 (VS Code OPA ext)
- open-policy-agent/opa#8092 (OPA Docs)

Signed-off-by: Charlie Egan <[email protected]>
charlieegan3 added a commit to charlieegan3/tree-sitter-rego that referenced this pull request Jan 6, 2026
Implement string interpolation for both double-quoted and raw strings:
- $"{expr}" for double-quoted interpolated strings
- $`{expr}` for raw interpolated strings

Please see open-policy-agent/opa#8109 for the upstream
work on this same feature.

Other related merged PRs for other editors and projects:
- open-policy-agent/vscode-opa#375 (VS Code OPA ext)
- open-policy-agent/opa#8092 (OPA Docs)
FallenAngel97 pushed a commit to FallenAngel97/tree-sitter-rego that referenced this pull request Jan 14, 2026
* Updates to modernize project

- Run tree-sitter init to generate modern bindings for various languages.
- Add ESLint configuration based on eslint-config-treesitter.
- Update Node version to v24.11.1 in .nvmrc
- Update README with npm commands, I have migrated to npm as it's what other
  similar projects seem to be using.

I have used https://github.com/tree-sitter/tree-sitter-rust/tree/master, as
an example for a number of the updates.

* Add string interpolation support

Implement string interpolation for both double-quoted and raw strings:
- $"{expr}" for double-quoted interpolated strings
- $`{expr}` for raw interpolated strings

Please see open-policy-agent/opa#8109 for the upstream
work on this same feature.

Other related merged PRs for other editors and projects:
- open-policy-agent/vscode-opa#375 (VS Code OPA ext)
- open-policy-agent/opa#8092 (OPA Docs)

* Update CI workflow to Node.js 24 and npm

* Restore use of yarn for tasks and packaging

Requested from review comments on
#19
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.

2 participants