docs: highlight and/or keywords in Rego syntax (#9002)

Adds highlighting for the new and and or keywords in the docs.

Part of https://github.com/open-policy-agent/opa/issues/8999

Signed-off-by: Sebastian Spaink <sebastianspaink@gmail.com>
This commit is contained in:
Sebastian Spaink
2026-08-11 10:35:43 -05:00
committed by GitHub
parent d5164d893d
commit 5b9ffe3cf3
+2 -1
View File
@@ -12,8 +12,9 @@ export default function(Prism) {
},
// Keywords from tmLanguage: default, not, package, import, as, with, else, some, in, every, if, contains
// plus the logical operator keywords: and, or
"keyword": {
pattern: /\b(?:default|not|package|import|as|with|else|some|in|every|if|contains)\b/,
pattern: /\b(?:default|not|package|import|as|with|else|some|in|every|if|contains|and|or)\b/,
greedy: true,
},