mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
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:
@@ -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,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user